Example #1
0
 def Args(parser):
     flags.AddBackendServiceName(parser)
     backend_flags.AddDescription(parser)
     backend_flags.AddInstanceGroup(parser, multizonal=False)
     backend_flags.AddBalancingMode(parser)
     backend_flags.AddMaxUtilization(parser)
     backend_flags.AddRate(parser)
     backend_flags.AddCapacityScalar(parser)
Example #2
0
 def Args(parser):
     flags.AddBackendServiceName(parser)
     flags.AddDescription(parser)
     flags.AddHttpHealthChecks(parser)
     flags.AddHttpsHealthChecks(parser)
     flags.AddTimeout(parser)
     flags.AddPortName(parser)
     flags.AddProtocol(parser)
Example #3
0
def _ArgsGA(parser):
    """Common arguments to create commands for each release track."""
    flags.AddBackendServiceName(parser)
    flags.AddDescription(parser)
    flags.AddHttpHealthChecks(parser)
    flags.AddHttpsHealthChecks(parser)
    flags.AddTimeout(parser, default=None)
    flags.AddPortName(parser)
    flags.AddProtocol(parser, default=None)
Example #4
0
    def Args(parser):
        flags.AddBackendServiceName(parser)
        flags.AddDescription(parser)
        flags.AddHttpHealthChecks(parser)
        flags.AddHttpsHealthChecks(parser)
        flags.AddTimeout(parser)
        flags.AddPortName(parser)
        flags.AddProtocol(parser)

        # These are added for beta
        flags.AddEnableCdn(parser)
Example #5
0
    def Args(parser):
        flags.AddBackendServiceName(parser)
        flags.AddDescription(parser)
        flags.AddHttpHealthChecks(parser)
        flags.AddHttpsHealthChecks(parser)
        flags.AddTimeout(parser, default=None)
        flags.AddPortName(parser)
        flags.AddProtocol(parser, default=None)

        flags.AddConnectionDrainingTimeout(parser)
        flags.AddEnableCdn(parser)
        flags.AddHealthChecks(parser)
        flags.AddSessionAffinity(parser, default=None)
        flags.AddAffinityCookieTtl(parser, default=None)
Example #6
0
    def Args(parser):
        flags.AddBackendServiceName(parser)
        flags.AddDescription(parser)
        flags.AddHttpHealthChecks(parser)
        flags.AddHttpsHealthChecks(parser)
        flags.AddTimeout(parser)
        flags.AddPortName(parser)
        flags.AddProtocol(parser)

        # These are in beta
        flags.AddEnableCdn(parser)

        # These are added for alpha
        flags.AddConnectionDrainingTimeout(parser)
        flags.AddHealthChecks(parser)
        flags.AddSessionAffinity(parser)
        flags.AddAffinityCookieTtl(parser)
Example #7
0
def _AddArgs(parser, multizonal=False):
    """Adds args."""
    g = parser.add_mutually_exclusive_group(required=True)
    g.add_argument('--group',
                   help=('The name of the legacy instance group '
                         '(deprecated resourceViews API) to remove. '
                         'Use --instance-group flag instead.'))
    g.add_argument('--instance-group',
                   help='The name or URI of the instance group to remove.')

    scope_parser = parser
    if multizonal:
        scope_parser = parser.add_mutually_exclusive_group()
        flags.AddRegionFlag(scope_parser,
                            resource_type='instance group',
                            operation_type='remove from the backend service')
    flags.AddZoneFlag(parser,
                      resource_type='instance group',
                      operation_type='remove from the backend service')

    bs_flags.AddBackendServiceName(parser)
Example #8
0
 def Args(parser):
     base_classes.BaseEdit.Args(parser)
     flags.AddBackendServiceName(parser)
Example #9
0
def _AddArgs(parser, multizonal=False):
    """Adds args."""
    backend_flags.AddInstanceGroup(parser,
                                   operation_type='remove from',
                                   multizonal=multizonal)
    flags.AddBackendServiceName(parser)
Example #10
0
 def Args(parser):
     flags.AddBackendServiceName(parser)