def Args(parser): """Set up arguments for this command. Args: parser: An argparse.ArgumentParser. """ super(ScpBeta, ScpBeta).Args(parser) mutex_scope = parser.add_mutually_exclusive_group() mutex_scope.add_argument('--internal-ip', default=False, action='store_true', help="""\ Connect to instances using their internal IP addresses rather than their external IP addresses. Use this to connect from one instance to another on the same VPC network, over a VPN connection, or between two peered VPC networks. For this connection to work, you must configure your networks and firewall to allow SSH connections to the internal IP address of the instance to which you want to connect. To learn how to use this flag, see [](https://cloud.google.com/compute/docs/instances/connecting-advanced#sshbetweeninstances). """) iap_tunnel.AddConnectionHelperArgs(parser, mutex_scope)
def Args(parser): """Set up arguments for this command. Args: parser: An argparse.ArgumentParser. """ super(ScpAlpha, ScpAlpha).Args(parser) iap_tunnel.AddConnectionHelperArgs(parser)
def Args(parser): ssh_utils.BaseSSHCLIHelper.Args(parser) AddCommandArg(parser) AddSSHArgs(parser) AddContainerArg(parser) flags.AddZoneFlag(parser, resource_type='instance', operation_type='connect to') mutex_scope = parser.add_mutually_exclusive_group() AddInternalIPArg(mutex_scope) iap_tunnel.AddConnectionHelperArgs(parser, mutex_scope)
def Args(parser): super(SshAlpha, SshAlpha).Args(parser) iap_tunnel.AddConnectionHelperArgs(parser)