
    \"                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  Sr	S	\	-  r
S
\	-  rS\	-  rS\	-  rSSSSS.rSS jrS rS rg)z3Set up flags for creating or updating a workerpool.    )absolute_import)division)unicode_literals)actions)arg_parsers)basezPhttps://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schemaz[File that contains the configuration for the worker pool to be created. See %s for options.zXFile that contains updates to the configuration for the worker pool. See %s for options.zeFile that contains the configuration for the worker pool to be created.

Private pool options:

 %s

zlFile that contains updates to the configuration for worker pool to be created.

Private pool options:

 %s

CACHING_DISABLED60GBz4.0GBg      ?)BUILDER_IMAGE_CACHING	DISK_SIZEMEMORY
VCPU_COUNTc                    U(       a  SOSnU R                  SSU-  S9  U R                  SSU-  S9  U R                  US9nU[        R                  R                  :w  a@  U[        R                  R
                  :w  a"  UR                  S	U(       a  [        O[        S9  O!UR                  S	U(       a  [        O[        S9  UR                  S
5      nUR                  5       nUR                  S5      nU(       d  UR                  SSS9  UR                  SSS9  U[        R                  R                  :X  d  U[        R                  R
                  :X  aC  UR                  S5      nUR                  SSS9  UR                  SSSS9  UR                  SSSS9  UR                  S5      n	U	R                  SSS9  U	R                  S[        R                  " SS9SS 9  U[        R                  R                  :X  aB  U	R                  S!U[        R                  R                  :H  [        R                  " S!S"S#SS$9SS%9  U(       a!  UR                  S&[        R                   S'S9  U $ UR                  S(SS)S9  U $ )*au  Set up all the argparse flags for creating or updating a workerpool.

Args:
  parser: An argparse.ArgumentParser-like object.
  release_track: A base.ReleaseTrack-like object.
  update: If true, use the version of the flags for updating a workerpool.
    Otherwise, use the version for creating a workerpool.

Returns:
  The parser argument with workerpool flags added in.
updatecreateWORKER_POOLzwUnique identifier for the worker pool to %s. This value should be 1-63 characters, and valid characters are [a-z][0-9]-)helpz--regionzuCloud region where the worker pool is %sd. See https://cloud.google.com/build/docs/locations for available locations.)requiredz--config-from-filez1Command-line flags to configure the private pool:z-Network configuration for Service Networking:z--peered-networkzExisting network to which workers are peered. The network is specified in
resource URL format
projects/{network_project}/global/networks/{network_name}.

If not specified, the workers are not peered to any network.
z--peered-network-ip-rangea  An IP range for your peered network. Specify the IP range using Classless
Inter-Domain Routing (CIDR) notation with a slash and the subnet prefix size,
such as `/29`.

Your subnet prefix size must be between 1 and 29.  Optional: you can specify an
IP address before the subnet prefix value - for example `192.168.0.0/24`.

If no IP address is specified, your VPC automatically determines the starting
IP for the range. If no IP range is specified, Cloud Build uses `/24` as the
default network IP range.
z<Network configuration for Private Service Connect interface:z--network-attachmenta`    The network attachment that the worker network interface is peered to. The
  network attachment is specified in resource URL format
  projects/{project}/regions/{region}/networkAttachments/{name}.
  The region of network attachment must be the same as the worker pool.
  See https://cloud.google.com/vpc/docs/about-network-attachments for details.
  z--route-all-traffic
store_trueaG    Route all traffic through PSC interface. Enable this if you want full control
  of traffic in the private pool. Configure Cloud NAT for the subnet of network
  attachment if you need to access public Internet.

  If unset, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12,
  and 192.168.0.0/16 through PSC interface.
  )actionr   z--disable-public-ip-addressz  If set, workers in the worker pool are created without an external IP address.

  If the worker pool is within a VPC Service Control perimeter, use this flag.
  zAConfiguration to be used for creating workers in the worker pool:z--worker-machine-typezjCompute Engine machine type for a worker pool.

If unspecified, Cloud Build uses a standard machine type.
z--worker-disk-size100GB)lower_boundzaSize of the disk attached to the worker.

If unspecified, Cloud Build uses a standard disk size.
)typer   z--no-external-ipzgThe `--no-external-ip` option is deprecated; use `--no-public-egress` and/or `--public-egress instead`.F)warnremovedr   )hiddenr   r   z--public-egressa*          If set to true, workers in the worker pool are created with an external
        IP address.

        If set to false, workers in the worker pool are created without an
        external IP address. If the worker pool is within a VPC Service Control
        perimeter, use this flag.
        z--no-public-egresszIf set, workers in the worker pool are created without an external IP address.

If the worker pool is within a VPC Service Control perimeter, use this flag.
)add_argumentadd_mutually_exclusive_groupr   ReleaseTrackALPHABETA_UPDATE_FILE_DESC_CREATE_FILE_DESC_UPDATE_FILE_DESC_ALPHA_BETA_CREATE_FILE_DESC_ALPHA_BETAadd_argument_groupr   
BinarySizeGAr   DeprecationActionStoreTrueFalseAction)
parserrelease_trackr   verbfile_or_flagsflagsnetwork_flagsservice_network_flagsprivate_service_connect_flagsworker_flagss
             =lib/googlecloudsdk/command_lib/cloudbuild/workerpool_flags.pyAddWorkerpoolArgsr5   6   s    $C 		   	 	   55v5F-t((...
4,,11
1#)/@  
   )-   
*
*9% 446-'::5 
&& ' 	 &&# '   	**000D--222&3&F&F
H'# $00
  1 	 $00
 1  $00
' 1  ))I,    !!g6   d''*** 1 1 4 44((J 
  & &&// ' . 
- && '  
-    c                     [        XSS9$ )zSet up all the argparse flags for creating a workerpool.

Args:
  parser: An argparse.ArgumentParser-like object.
  release_track: A base.ReleaseTrack-like object.

Returns:
  The parser argument with workerpool flags added in.
Fr   r5   r+   r,   s     r4   AddWorkerpoolCreateArgsr;      s     
6	??r6   c                     [        XSS9$ )zSet up all the argparse flags for updating a workerpool.

Args:
  parser: An argparse.ArgumentParser-like object.
  release_track: A base.ReleaseTrack-like object.

Returns:
  The parser argument with workerpool flags added in.
Tr8   r9   r:   s     r4   AddWorkerpoolUpdateArgsr=      s     
6	>>r6   N)F)__doc__
__future__r   r   r   googlecloudsdk.callioper   r   r   _PWP_CONFIG_LINKr#   r"   r%   r$   DEFAULT_FLAG_VALUESr5   r;   r=    r6   r4   <module>rD      s    : &  ' + / (e 68HI 
,.>? 36FH 
'*:<  0	 yx
@
?r6   