ó
    €Ï  ã                   óJ  • 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SKJr  \R                  \R                  " \R                   R"                  \R                   R$                  \R                   R&                  5       " S	 S
\R(                  5      5       5       rg)z7services vpc-peerings get-vpc-service-controls command.é    )Úabsolute_import)Údivision)Úunicode_literals)Úpeering)Úbase)Úutil)Ú
propertiesc                   ó8   • \ rS rSrSrSSS.r\S 5       rS rSr	g	)
ÚGetVpcServiceControlsé   z=Get VPC state of Service Controls for the peering connection.a#          This command provides the state of the VPC Service Controls for a
        connection.  The state can be enabled or disabled.

        When enabled, Google Cloud makes the following route configuration
        changes in the service producer VPC network: Google Cloud removes the
        IPv4 default route (destination 0.0.0.0/0, next hop default internet
        gateway), Google Cloud then creates an IPv4 route for destination
        199.36.153.4/30 using the default internet gateway next hop.

        When enabled, Google Cloud also creates Cloud DNS managed private
        zones and authorizes those zones for the service producer VPC network.
        The zones include googleapis.com, gcr.io, pkg.dev,
        notebooks.cloud.google.com, kernels.googleusercontent.com,
        backupdr.cloud.google.com, and backupdr.googleusercontent.com
        as necessary domains or host names for Google APIs and services that are
        compatible with VPC Service Controls. Record data in the zones resolves
        all host names to 199.36.153.4, 199.36.153.5, 199.36.153.6, and
        199.36.153.7.

        When disabled, Google Cloud makes the following route configuration
        changes in the service producer VPC network: Google Cloud restores a
        default route (destination 0.0.0.0/0, next hop default internet
        gateway), Google Cloud also deletes the Cloud DNS managed private
        zones that provided the host name overrides.

        While enabled, the service producer VPC network can still import
        static and dynamic routes from the peered customer network if you
        enable custom route export. These custom routes can include a default
        route. For this reason, this command is not to be used solely as a
        means for preventing access to the internet.
        a          To get the status of the VPC Service Controls for a connection peering
        a network called `my-network` on the current project to a service called
        `your-service`, run:

          $ {command} --network=my-network --service=your-service
        )ÚDESCRIPTIONÚEXAMPLESc                 óL   • U R                  SSSSS9  U R                  SSSS	S
9  g)zÝArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that can be used to add arguments that go on
    the command line after this command. Positional arguments are allowed.
z	--networkÚNETWORKTzCThe network in the current project that is peered with the service.)ÚmetavarÚrequiredÚhelpz	--serviceÚSERVICEz servicenetworking.googleapis.comz,The service to get VPC service controls for.)r   Údefaultr   N)Úadd_argument)Úparsers    Ú=lib/surface/services/vpc_peerings/get_vpc_service_controls.pyÚArgsÚGetVpcServiceControls.ArgsL   sF   € ð ×ÑØØØðð ñ ð ×ÑØØØ2Ø;ð	 ò ó    c                 óæ   • [         R                  R                  R                  R	                  SS9n[
        R                  " U5      n[        R                  " X1R                  UR                  5      $ )zßRun 'services vpc-peerings get-vpc-service-controls'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
    with.

Returns:
  The state of the Vpc Service Controls, that is enabled or disabled.
T)r   )r	   ÚVALUESÚcoreÚprojectÚGetÚprojects_utilÚGetProjectNumberr   r   ÚserviceÚnetwork)ÚselfÚargsr   Úproject_numbers       r   ÚRunÚGetVpcServiceControls.Rund   sY   € ô ×Ñ×$Ñ$×,Ñ,×0Ñ0¸$Ð0Ð?€GÜ"×3Ò3°GÓ<€NÜ×(Ò(ØŸ™ d§l¡lóð r   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Údetailed_helpÚstaticmethodr   r(   Ú__static_attributes__r*   r   r   r   r      s5   † ñ
 Fðð@ñC(€-ðT ñó ðõ.r   r   N)r/   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.servicesr   Úgooglecloudsdk.callioper   Ú#googlecloudsdk.command_lib.projectsr   r!   Úgooglecloudsdk.corer	   ÚDefaultUniverseOnlyÚReleaseTracksÚReleaseTrackÚALPHAÚBETAÚGAÚDescribeCommandr   r*   r   r   Ú<module>r?      s‡   ðñ >å &Ý Ý 'å 3Ý (Ý EÝ *ð ×ÑØ×ÒØ×Ñ×Ñ˜T×.Ñ.×3Ñ3°T×5FÑ5F×5IÑ5IóôS˜D×0Ñ0ó Sóó ñSr   