
                             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 rS rS rS rS rS rS rS rS rg)z.Flags for the config controller command group.    )absolute_import)division)unicode_literals)actions)arg_parsers)basec                 B    [         R                  R                  U 5        g)zAdds --async flag.N)r   
ASYNC_FLAGAddToParserparsers    @lib/googlecloudsdk/command_lib/anthos/config/controller/flags.pyAddAsyncFlagr      s    //f%    c                 $    U R                  SSS9  g)z#Adds --master-ipv4-cidr-block flag.z--master-ipv4-cidr-blockzgThe /28 network that the control plane will use. Defaults to '172.16.0.128/28' if flag is not provided.helpNadd_argumentr   s    r   AddMasterIPv4CIDRBlockr      s     E  Gr   c                 $    U R                  SSS9  g)zAdds --network flag.z	--networkzExisting VPC Network to put the GKE cluster and nodes in. Defaults to 'default' if flag is not provided. If `--subnet=SUBNET` is also specified, subnet must be a subnetwork of the network specified by this `--network=NETWORK` flag.r   Nr   r   s    r   AddNetworkFlagr   '   s    I  Kr   c                 $    U R                  SSS9  g)zAdds --subnet flag.z--subnetzSpecifies the subnet that the VM instances are a part of. `--network=NETWORK` must also be specified, subnet must be a subnetwork of the network specified by the `--network=NETWORK` flag.r   Nr   r   s    r   AddSubnetFlagr   1   s      r   c                 $    U R                  SSS9  g)Adds --man-block flag.--man-blockzMaster Authorized Network. Allows access to the Kubernetes control plane from this block. Defaults to '0.0.0.0/0' if flag is not provided.r   Nr   r   s    r   AddManBlockFlagr   ;   s    ?  Ar   c           
      N    U R                  SS[        R                  " SSSS9S9  g)r   r   zMaster Authorized Network. Allows access to the Kubernetes control plane from this block. Defaults to `0.0.0.0/0` if flag is not provided.z?The {flag_name} option is deprecated; use --man-blocks instead.F)warnremoved)r   actionN)r   r   DeprecationActionr   s    r   AddManBlockFlagDeprecatedr$   D   s6    ? &&
P  r   c                 N    U R                  S[        R                  " 5       SSS9  g)zAdds --man-blocks flag.z--man-blocksBLOCKzMaster Authorized Network. Allows users to specify multiple blocks to access the Kubernetescontrol plane from this block. Defaults to `0.0.0.0/0` if flag is not provided.typemetavarr   Nr   r   ArgListr   s    r   AddManBlocksFlagr,   Q   s-     ?	  Ar   c                 $    U R                  SSS9  g)z$Adds --cluster-ipv4-cidr-block flag.z--cluster-ipv4-cidr-blockzThe IP address range for the cluster pod IPs. Can be specified as a netmask size (e.g. '/14') or as in CIDR notation (e.g. '10.100.0.0/20'). Defaults to '/20' if flag is not provided.r   Nr   r   s    r   AddClusterIPv4CIDRBlockr.   ]   s    !  r   c                 $    U R                  SSS9  g)z%Adds --services-ipv4-cidr-block flag.z--services-ipv4-cidr-blockzThe IP address range for the cluster service IPs. Can be specified as a netmask size (e.g. '/14') or as in CIDR notation (e.g. '10.100.0.0/20'). Defaults to '/24' if flag is not provided.r   Nr   r   s    r   AddServicesIPv4CIDRBlackr0   g   s    "  r   c                 $    U R                  SSS9  g)z Adds --cluster-named-range flag.z--cluster-named-rangezThe name of the existing secondary range in the clusters subnetwork to use for pod IP addresses. Alternatively, `--cluster_cidr_block` can be used to automatically create a GKE-managed one.r   Nr   r   s    r   AddClusterNamedRangeFlagr2   q   s      !r   c                 $    U R                  SSS9  g)z!Adds --services-named-range flag.z--services-named-rangezThe name of the existing secondary range in the clusters subnetwork to use for service ClusterIPs. Alternatively, `--services_cidr_block` can be used to automatically create a GKE-managed one.r   Nr   r   s    r   AddServicesNamedRanger4   {   s      !r   c                 (    U R                  SSSSS9  g)zAdds --full-management flag.z--full-managementstore_constTz$Enable full cluster management type.)r"   constr   Nr   r   s    r   AddFullManagementr8      s#     2  5r   c                 &    U R                  SSSS9  g)z!Adds --use-private-endpoint flag.z--use-private-endpoint
store_truez6Only allow access to the master's private endpoint IP.)r"   r   Nr   r   s    r   AddUsePrivateEndpointr;      s    D  Gr   c                 N    U R                  S[        R                  " 5       SSS9  g)z"Adds --experimental-features flag.z--experimental-featuresFEATUREzFEnable experimental features. It can only be enabled in ALPHA version.r'   Nr*   r   s    r   AddExperimentalFeaturesFlagr>      s,     	  r   N)__doc__
__future__r   r   r   googlecloudsdk.callioper   r   r   r   r   r   r   r   r$   r,   r.   r0   r2   r4   r8   r;   r>    r   r   <module>rC      sg    5 &  ' + / (&
GKA
	A!!	5Gr   