google-apis-networkservices_v1beta1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/networkservices_v1beta1/classes.rb +1923 -13
- data/lib/google/apis/networkservices_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/networkservices_v1beta1/representations.rb +854 -90
- data/lib/google/apis/networkservices_v1beta1/service.rb +1493 -181
- metadata +3 -3
@@ -420,17 +420,13 @@ module Google
|
|
420
420
|
execute_or_queue_command(command, &block)
|
421
421
|
end
|
422
422
|
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
# corresponding to `Code.CANCELLED`.
|
431
|
-
# @param [String] name
|
432
|
-
# The name of the operation resource to be cancelled.
|
433
|
-
# @param [Google::Apis::NetworkservicesV1beta1::CancelOperationRequest] cancel_operation_request_object
|
423
|
+
# Creates a new Gateway in a given project and location.
|
424
|
+
# @param [String] parent
|
425
|
+
# Required. The parent resource of the Gateway. Must be in the format `projects/*
|
426
|
+
# /locations/global`.
|
427
|
+
# @param [Google::Apis::NetworkservicesV1beta1::Gateway] gateway_object
|
428
|
+
# @param [String] gateway_id
|
429
|
+
# Required. Short name of the Gateway resource to be created.
|
434
430
|
# @param [String] fields
|
435
431
|
# Selector specifying which fields to include in a partial response.
|
436
432
|
# @param [String] quota_user
|
@@ -440,32 +436,31 @@ module Google
|
|
440
436
|
# Request-specific options
|
441
437
|
#
|
442
438
|
# @yield [result, err] Result & error if block supplied
|
443
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
439
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
444
440
|
# @yieldparam err [StandardError] error object if request failed
|
445
441
|
#
|
446
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
442
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
447
443
|
#
|
448
444
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
449
445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
450
446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
451
|
-
def
|
452
|
-
command = make_simple_command(:post, 'v1beta1/{+
|
453
|
-
command.request_representation = Google::Apis::NetworkservicesV1beta1::
|
454
|
-
command.request_object =
|
455
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::
|
456
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::
|
457
|
-
command.params['
|
447
|
+
def create_project_location_gateway(parent, gateway_object = nil, gateway_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
448
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/gateways', options)
|
449
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::Gateway::Representation
|
450
|
+
command.request_object = gateway_object
|
451
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
452
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
453
|
+
command.params['parent'] = parent unless parent.nil?
|
454
|
+
command.query['gatewayId'] = gateway_id unless gateway_id.nil?
|
458
455
|
command.query['fields'] = fields unless fields.nil?
|
459
456
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
460
457
|
execute_or_queue_command(command, &block)
|
461
458
|
end
|
462
459
|
|
463
|
-
# Deletes a
|
464
|
-
# longer interested in the operation result. It does not cancel the operation.
|
465
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
466
|
-
# UNIMPLEMENTED`.
|
460
|
+
# Deletes a single Gateway.
|
467
461
|
# @param [String] name
|
468
|
-
#
|
462
|
+
# Required. A name of the Gateway to delete. Must be in the format `projects/*/
|
463
|
+
# locations/global/gateways/*`.
|
469
464
|
# @param [String] fields
|
470
465
|
# Selector specifying which fields to include in a partial response.
|
471
466
|
# @param [String] quota_user
|
@@ -475,28 +470,28 @@ module Google
|
|
475
470
|
# Request-specific options
|
476
471
|
#
|
477
472
|
# @yield [result, err] Result & error if block supplied
|
478
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
473
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
479
474
|
# @yieldparam err [StandardError] error object if request failed
|
480
475
|
#
|
481
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
476
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
482
477
|
#
|
483
478
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
484
479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
485
480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
486
|
-
def
|
481
|
+
def delete_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
|
487
482
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
488
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::
|
489
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::
|
483
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
484
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
490
485
|
command.params['name'] = name unless name.nil?
|
491
486
|
command.query['fields'] = fields unless fields.nil?
|
492
487
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
493
488
|
execute_or_queue_command(command, &block)
|
494
489
|
end
|
495
490
|
|
496
|
-
# Gets
|
497
|
-
# to poll the operation result at intervals as recommended by the API service.
|
491
|
+
# Gets details of a single Gateway.
|
498
492
|
# @param [String] name
|
499
|
-
#
|
493
|
+
# Required. A name of the Gateway to get. Must be in the format `projects/*/
|
494
|
+
# locations/global/gateways/*`.
|
500
495
|
# @param [String] fields
|
501
496
|
# Selector specifying which fields to include in a partial response.
|
502
497
|
# @param [String] quota_user
|
@@ -506,40 +501,40 @@ module Google
|
|
506
501
|
# Request-specific options
|
507
502
|
#
|
508
503
|
# @yield [result, err] Result & error if block supplied
|
509
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
504
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Gateway] parsed result object
|
510
505
|
# @yieldparam err [StandardError] error object if request failed
|
511
506
|
#
|
512
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
507
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Gateway]
|
513
508
|
#
|
514
509
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
510
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
511
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
-
def
|
512
|
+
def get_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
|
518
513
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
519
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::
|
520
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::
|
514
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Gateway::Representation
|
515
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Gateway
|
521
516
|
command.params['name'] = name unless name.nil?
|
522
517
|
command.query['fields'] = fields unless fields.nil?
|
523
518
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
524
519
|
execute_or_queue_command(command, &block)
|
525
520
|
end
|
526
521
|
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
#
|
522
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
523
|
+
# resource exists and does not have a policy set.
|
524
|
+
# @param [String] resource
|
525
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
526
|
+
# operation documentation for the appropriate value for this field.
|
527
|
+
# @param [Fixnum] options_requested_policy_version
|
528
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
529
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
530
|
+
# rejected. Requests for policies with any conditional role bindings must
|
531
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
532
|
+
# valid value or leave the field unset. The policy in the response might use the
|
533
|
+
# policy version that you specified, or it might use a lower policy version. For
|
534
|
+
# example, if you specify version 3, but the policy has no conditional role
|
535
|
+
# bindings, the response uses version 1. To learn which resources support
|
536
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
537
|
+
# google.com/iam/help/conditions/resource-policies).
|
543
538
|
# @param [String] fields
|
544
539
|
# Selector specifying which fields to include in a partial response.
|
545
540
|
# @param [String] quota_user
|
@@ -549,34 +544,35 @@ module Google
|
|
549
544
|
# Request-specific options
|
550
545
|
#
|
551
546
|
# @yield [result, err] Result & error if block supplied
|
552
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
547
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
553
548
|
# @yieldparam err [StandardError] error object if request failed
|
554
549
|
#
|
555
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
550
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
556
551
|
#
|
557
552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
-
def
|
561
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
562
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::
|
563
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::
|
564
|
-
command.params['
|
565
|
-
command.query['
|
566
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
567
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
555
|
+
def get_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
556
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
557
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
558
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
559
|
+
command.params['resource'] = resource unless resource.nil?
|
560
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
568
561
|
command.query['fields'] = fields unless fields.nil?
|
569
562
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
570
563
|
execute_or_queue_command(command, &block)
|
571
564
|
end
|
572
565
|
|
573
|
-
#
|
566
|
+
# Lists Gateways in a given project and location.
|
574
567
|
# @param [String] parent
|
575
|
-
# Required. The
|
576
|
-
# projects/*/locations/global`.
|
577
|
-
# @param [
|
578
|
-
#
|
579
|
-
#
|
568
|
+
# Required. The project and location from which the Gateways should be listed,
|
569
|
+
# specified in the format `projects/*/locations/global`.
|
570
|
+
# @param [Fixnum] page_size
|
571
|
+
# Maximum number of Gateways to return per call.
|
572
|
+
# @param [String] page_token
|
573
|
+
# The value returned by the last `ListGatewaysResponse` Indicates that this is a
|
574
|
+
# continuation of a prior `ListGateways` call, and that the system should return
|
575
|
+
# the next page of data.
|
580
576
|
# @param [String] fields
|
581
577
|
# Selector specifying which fields to include in a partial response.
|
582
578
|
# @param [String] quota_user
|
@@ -586,31 +582,37 @@ module Google
|
|
586
582
|
# Request-specific options
|
587
583
|
#
|
588
584
|
# @yield [result, err] Result & error if block supplied
|
589
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
585
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListGatewaysResponse] parsed result object
|
590
586
|
# @yieldparam err [StandardError] error object if request failed
|
591
587
|
#
|
592
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
588
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListGatewaysResponse]
|
593
589
|
#
|
594
590
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
595
591
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
596
592
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
597
|
-
def
|
598
|
-
command = make_simple_command(:
|
599
|
-
command.
|
600
|
-
command.
|
601
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
602
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
593
|
+
def list_project_location_gateways(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
594
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/gateways', options)
|
595
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListGatewaysResponse::Representation
|
596
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListGatewaysResponse
|
603
597
|
command.params['parent'] = parent unless parent.nil?
|
604
|
-
command.query['
|
598
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
599
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
605
600
|
command.query['fields'] = fields unless fields.nil?
|
606
601
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
607
602
|
execute_or_queue_command(command, &block)
|
608
603
|
end
|
609
604
|
|
610
|
-
#
|
605
|
+
# Updates the parameters of a single Gateway.
|
611
606
|
# @param [String] name
|
612
|
-
# Required.
|
613
|
-
#
|
607
|
+
# Required. Name of the Gateway resource. It matches pattern `projects/*/
|
608
|
+
# locations/global/gateways/`.
|
609
|
+
# @param [Google::Apis::NetworkservicesV1beta1::Gateway] gateway_object
|
610
|
+
# @param [String] update_mask
|
611
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
612
|
+
# Gateway resource by the update. The fields specified in the update_mask are
|
613
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
614
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
615
|
+
# overwritten.
|
614
616
|
# @param [String] fields
|
615
617
|
# Selector specifying which fields to include in a partial response.
|
616
618
|
# @param [String] quota_user
|
@@ -628,20 +630,26 @@ module Google
|
|
628
630
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
629
631
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
630
632
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
631
|
-
def
|
632
|
-
command = make_simple_command(:
|
633
|
+
def patch_project_location_gateway(name, gateway_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
634
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
635
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::Gateway::Representation
|
636
|
+
command.request_object = gateway_object
|
633
637
|
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
634
638
|
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
635
639
|
command.params['name'] = name unless name.nil?
|
640
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
636
641
|
command.query['fields'] = fields unless fields.nil?
|
637
642
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
643
|
execute_or_queue_command(command, &block)
|
639
644
|
end
|
640
645
|
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
644
|
-
#
|
646
|
+
# Sets the access control policy on the specified resource. Replaces any
|
647
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
648
|
+
# PERMISSION_DENIED` errors.
|
649
|
+
# @param [String] resource
|
650
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
651
|
+
# operation documentation for the appropriate value for this field.
|
652
|
+
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
645
653
|
# @param [String] fields
|
646
654
|
# Selector specifying which fields to include in a partial response.
|
647
655
|
# @param [String] quota_user
|
@@ -651,40 +659,35 @@ module Google
|
|
651
659
|
# Request-specific options
|
652
660
|
#
|
653
661
|
# @yield [result, err] Result & error if block supplied
|
654
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
662
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
655
663
|
# @yieldparam err [StandardError] error object if request failed
|
656
664
|
#
|
657
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
665
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
658
666
|
#
|
659
667
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
660
668
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
661
669
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
662
|
-
def
|
663
|
-
command = make_simple_command(:
|
664
|
-
command.
|
665
|
-
command.
|
666
|
-
command.
|
670
|
+
def set_gateway_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
671
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
672
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
|
673
|
+
command.request_object = set_iam_policy_request_object
|
674
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
675
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
676
|
+
command.params['resource'] = resource unless resource.nil?
|
667
677
|
command.query['fields'] = fields unless fields.nil?
|
668
678
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
669
679
|
execute_or_queue_command(command, &block)
|
670
680
|
end
|
671
681
|
|
672
|
-
#
|
673
|
-
# resource
|
682
|
+
# Returns permissions that a caller has on the specified resource. If the
|
683
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
684
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
685
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
686
|
+
# This operation may "fail open" without warning.
|
674
687
|
# @param [String] resource
|
675
|
-
# REQUIRED: The resource for which the policy is being requested. See the
|
688
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
676
689
|
# operation documentation for the appropriate value for this field.
|
677
|
-
# @param [
|
678
|
-
# Optional. The maximum policy version that will be used to format the policy.
|
679
|
-
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
680
|
-
# rejected. Requests for policies with any conditional role bindings must
|
681
|
-
# specify version 3. Policies with no conditional role bindings may specify any
|
682
|
-
# valid value or leave the field unset. The policy in the response might use the
|
683
|
-
# policy version that you specified, or it might use a lower policy version. For
|
684
|
-
# example, if you specify version 3, but the policy has no conditional role
|
685
|
-
# bindings, the response uses version 1. To learn which resources support
|
686
|
-
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
687
|
-
# google.com/iam/help/conditions/resource-policies).
|
690
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
688
691
|
# @param [String] fields
|
689
692
|
# Selector specifying which fields to include in a partial response.
|
690
693
|
# @param [String] quota_user
|
@@ -694,35 +697,33 @@ module Google
|
|
694
697
|
# Request-specific options
|
695
698
|
#
|
696
699
|
# @yield [result, err] Result & error if block supplied
|
697
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
700
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
|
698
701
|
# @yieldparam err [StandardError] error object if request failed
|
699
702
|
#
|
700
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
703
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
|
701
704
|
#
|
702
705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
703
706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
704
707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
705
|
-
def
|
706
|
-
command = make_simple_command(:
|
707
|
-
command.
|
708
|
-
command.
|
708
|
+
def test_gateway_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
709
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
710
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
711
|
+
command.request_object = test_iam_permissions_request_object
|
712
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
713
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
709
714
|
command.params['resource'] = resource unless resource.nil?
|
710
|
-
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
711
715
|
command.query['fields'] = fields unless fields.nil?
|
712
716
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
717
|
execute_or_queue_command(command, &block)
|
714
718
|
end
|
715
719
|
|
716
|
-
#
|
720
|
+
# Creates a new GrpcRoute in a given project and location.
|
717
721
|
# @param [String] parent
|
718
|
-
# Required. The
|
719
|
-
#
|
720
|
-
# @param [
|
721
|
-
#
|
722
|
-
#
|
723
|
-
# The value returned by the last `ListServiceBindingsResponse` Indicates that
|
724
|
-
# this is a continuation of a prior `ListRouters` call, and that the system
|
725
|
-
# should return the next page of data.
|
722
|
+
# Required. The parent resource of the GrpcRoute. Must be in the format `
|
723
|
+
# projects/*/locations/global`.
|
724
|
+
# @param [Google::Apis::NetworkservicesV1beta1::GrpcRoute] grpc_route_object
|
725
|
+
# @param [String] grpc_route_id
|
726
|
+
# Required. Short name of the GrpcRoute resource to be created.
|
726
727
|
# @param [String] fields
|
727
728
|
# Selector specifying which fields to include in a partial response.
|
728
729
|
# @param [String] quota_user
|
@@ -732,37 +733,31 @@ module Google
|
|
732
733
|
# Request-specific options
|
733
734
|
#
|
734
735
|
# @yield [result, err] Result & error if block supplied
|
735
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
736
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
736
737
|
# @yieldparam err [StandardError] error object if request failed
|
737
738
|
#
|
738
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
739
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
739
740
|
#
|
740
741
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
741
742
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
742
743
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
743
|
-
def
|
744
|
-
command = make_simple_command(:
|
745
|
-
command.
|
746
|
-
command.
|
744
|
+
def create_project_location_grpc_route(parent, grpc_route_object = nil, grpc_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
745
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/grpcRoutes', options)
|
746
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::GrpcRoute::Representation
|
747
|
+
command.request_object = grpc_route_object
|
748
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
749
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
747
750
|
command.params['parent'] = parent unless parent.nil?
|
748
|
-
command.query['
|
749
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
751
|
+
command.query['grpcRouteId'] = grpc_route_id unless grpc_route_id.nil?
|
750
752
|
command.query['fields'] = fields unless fields.nil?
|
751
753
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
752
754
|
execute_or_queue_command(command, &block)
|
753
755
|
end
|
754
756
|
|
755
|
-
#
|
757
|
+
# Deletes a single GrpcRoute.
|
756
758
|
# @param [String] name
|
757
|
-
# Required.
|
758
|
-
# locations/global/
|
759
|
-
# @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
|
760
|
-
# @param [String] update_mask
|
761
|
-
# Optional. Field mask is used to specify the fields to be overwritten in the
|
762
|
-
# ServiceBinding resource by the update. The fields specified in the update_mask
|
763
|
-
# are relative to the resource, not the full request. A field will be
|
764
|
-
# overwritten if it is in the mask. If the user does not provide a mask then all
|
765
|
-
# fields will be overwritten.
|
759
|
+
# Required. A name of the GrpcRoute to delete. Must be in the format `projects/*/
|
760
|
+
# locations/global/grpcRoutes/*`.
|
766
761
|
# @param [String] fields
|
767
762
|
# Selector specifying which fields to include in a partial response.
|
768
763
|
# @param [String] quota_user
|
@@ -780,26 +775,20 @@ module Google
|
|
780
775
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
776
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
777
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
-
def
|
784
|
-
command = make_simple_command(:
|
785
|
-
command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
|
786
|
-
command.request_object = service_binding_object
|
778
|
+
def delete_project_location_grpc_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
779
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
787
780
|
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
788
781
|
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
789
782
|
command.params['name'] = name unless name.nil?
|
790
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
791
783
|
command.query['fields'] = fields unless fields.nil?
|
792
784
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
793
785
|
execute_or_queue_command(command, &block)
|
794
786
|
end
|
795
787
|
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
# REQUIRED: The resource for which the policy is being specified. See the
|
801
|
-
# operation documentation for the appropriate value for this field.
|
802
|
-
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
788
|
+
# Gets details of a single GrpcRoute.
|
789
|
+
# @param [String] name
|
790
|
+
# Required. A name of the GrpcRoute to get. Must be in the format `projects/*/
|
791
|
+
# locations/global/grpcRoutes/*`.
|
803
792
|
# @param [String] fields
|
804
793
|
# Selector specifying which fields to include in a partial response.
|
805
794
|
# @param [String] quota_user
|
@@ -809,35 +798,34 @@ module Google
|
|
809
798
|
# Request-specific options
|
810
799
|
#
|
811
800
|
# @yield [result, err] Result & error if block supplied
|
812
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
801
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::GrpcRoute] parsed result object
|
813
802
|
# @yieldparam err [StandardError] error object if request failed
|
814
803
|
#
|
815
|
-
# @return [Google::Apis::NetworkservicesV1beta1::
|
804
|
+
# @return [Google::Apis::NetworkservicesV1beta1::GrpcRoute]
|
816
805
|
#
|
817
806
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
818
807
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
819
808
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
820
|
-
def
|
821
|
-
command = make_simple_command(:
|
822
|
-
command.
|
823
|
-
command.
|
824
|
-
command.
|
825
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
826
|
-
command.params['resource'] = resource unless resource.nil?
|
809
|
+
def get_project_location_grpc_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
810
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
811
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::GrpcRoute::Representation
|
812
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::GrpcRoute
|
813
|
+
command.params['name'] = name unless name.nil?
|
827
814
|
command.query['fields'] = fields unless fields.nil?
|
828
815
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
829
816
|
execute_or_queue_command(command, &block)
|
830
817
|
end
|
831
818
|
|
832
|
-
#
|
833
|
-
#
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
838
|
-
#
|
839
|
-
#
|
840
|
-
#
|
819
|
+
# Lists GrpcRoutes in a given project and location.
|
820
|
+
# @param [String] parent
|
821
|
+
# Required. The project and location from which the GrpcRoutes should be listed,
|
822
|
+
# specified in the format `projects/*/locations/global`.
|
823
|
+
# @param [Fixnum] page_size
|
824
|
+
# Maximum number of GrpcRoutes to return per call.
|
825
|
+
# @param [String] page_token
|
826
|
+
# The value returned by the last `ListGrpcRoutesResponse` Indicates that this is
|
827
|
+
# a continuation of a prior `ListGrpcRoutes` call, and that the system should
|
828
|
+
# return the next page of data.
|
841
829
|
# @param [String] fields
|
842
830
|
# Selector specifying which fields to include in a partial response.
|
843
831
|
# @param [String] quota_user
|
@@ -847,7 +835,971 @@ module Google
|
|
847
835
|
# Request-specific options
|
848
836
|
#
|
849
837
|
# @yield [result, err] Result & error if block supplied
|
850
|
-
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::
|
838
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse] parsed result object
|
839
|
+
# @yieldparam err [StandardError] error object if request failed
|
840
|
+
#
|
841
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse]
|
842
|
+
#
|
843
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
844
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
845
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
846
|
+
def list_project_location_grpc_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
847
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/grpcRoutes', options)
|
848
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse::Representation
|
849
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse
|
850
|
+
command.params['parent'] = parent unless parent.nil?
|
851
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
852
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
853
|
+
command.query['fields'] = fields unless fields.nil?
|
854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
855
|
+
execute_or_queue_command(command, &block)
|
856
|
+
end
|
857
|
+
|
858
|
+
# Updates the parameters of a single GrpcRoute.
|
859
|
+
# @param [String] name
|
860
|
+
# Required. Name of the GrpcRoute resource. It matches pattern `projects/*/
|
861
|
+
# locations/global/grpcRoutes/`
|
862
|
+
# @param [Google::Apis::NetworkservicesV1beta1::GrpcRoute] grpc_route_object
|
863
|
+
# @param [String] update_mask
|
864
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
865
|
+
# GrpcRoute resource by the update. The fields specified in the update_mask are
|
866
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
867
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
868
|
+
# overwritten.
|
869
|
+
# @param [String] fields
|
870
|
+
# Selector specifying which fields to include in a partial response.
|
871
|
+
# @param [String] quota_user
|
872
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
873
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
874
|
+
# @param [Google::Apis::RequestOptions] options
|
875
|
+
# Request-specific options
|
876
|
+
#
|
877
|
+
# @yield [result, err] Result & error if block supplied
|
878
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
879
|
+
# @yieldparam err [StandardError] error object if request failed
|
880
|
+
#
|
881
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
882
|
+
#
|
883
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
884
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
885
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
886
|
+
def patch_project_location_grpc_route(name, grpc_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
887
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
888
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::GrpcRoute::Representation
|
889
|
+
command.request_object = grpc_route_object
|
890
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
891
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
892
|
+
command.params['name'] = name unless name.nil?
|
893
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
894
|
+
command.query['fields'] = fields unless fields.nil?
|
895
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
896
|
+
execute_or_queue_command(command, &block)
|
897
|
+
end
|
898
|
+
|
899
|
+
# Creates a new HttpRoute in a given project and location.
|
900
|
+
# @param [String] parent
|
901
|
+
# Required. The parent resource of the HttpRoute. Must be in the format `
|
902
|
+
# projects/*/locations/global`.
|
903
|
+
# @param [Google::Apis::NetworkservicesV1beta1::HttpRoute] http_route_object
|
904
|
+
# @param [String] http_route_id
|
905
|
+
# Required. Short name of the HttpRoute resource to be created.
|
906
|
+
# @param [String] fields
|
907
|
+
# Selector specifying which fields to include in a partial response.
|
908
|
+
# @param [String] quota_user
|
909
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
910
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
911
|
+
# @param [Google::Apis::RequestOptions] options
|
912
|
+
# Request-specific options
|
913
|
+
#
|
914
|
+
# @yield [result, err] Result & error if block supplied
|
915
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
916
|
+
# @yieldparam err [StandardError] error object if request failed
|
917
|
+
#
|
918
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
919
|
+
#
|
920
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
921
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
922
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
923
|
+
def create_project_location_http_route(parent, http_route_object = nil, http_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
924
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/httpRoutes', options)
|
925
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::HttpRoute::Representation
|
926
|
+
command.request_object = http_route_object
|
927
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
928
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
929
|
+
command.params['parent'] = parent unless parent.nil?
|
930
|
+
command.query['httpRouteId'] = http_route_id unless http_route_id.nil?
|
931
|
+
command.query['fields'] = fields unless fields.nil?
|
932
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
933
|
+
execute_or_queue_command(command, &block)
|
934
|
+
end
|
935
|
+
|
936
|
+
# Deletes a single HttpRoute.
|
937
|
+
# @param [String] name
|
938
|
+
# Required. A name of the HttpRoute to delete. Must be in the format `projects/*/
|
939
|
+
# locations/global/httpRoutes/*`.
|
940
|
+
# @param [String] fields
|
941
|
+
# Selector specifying which fields to include in a partial response.
|
942
|
+
# @param [String] quota_user
|
943
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
944
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
945
|
+
# @param [Google::Apis::RequestOptions] options
|
946
|
+
# Request-specific options
|
947
|
+
#
|
948
|
+
# @yield [result, err] Result & error if block supplied
|
949
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
950
|
+
# @yieldparam err [StandardError] error object if request failed
|
951
|
+
#
|
952
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
953
|
+
#
|
954
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
955
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
956
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
957
|
+
def delete_project_location_http_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
958
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
959
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
960
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
961
|
+
command.params['name'] = name unless name.nil?
|
962
|
+
command.query['fields'] = fields unless fields.nil?
|
963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
964
|
+
execute_or_queue_command(command, &block)
|
965
|
+
end
|
966
|
+
|
967
|
+
# Gets details of a single HttpRoute.
|
968
|
+
# @param [String] name
|
969
|
+
# Required. A name of the HttpRoute to get. Must be in the format `projects/*/
|
970
|
+
# locations/global/httpRoutes/*`.
|
971
|
+
# @param [String] fields
|
972
|
+
# Selector specifying which fields to include in a partial response.
|
973
|
+
# @param [String] quota_user
|
974
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
975
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
976
|
+
# @param [Google::Apis::RequestOptions] options
|
977
|
+
# Request-specific options
|
978
|
+
#
|
979
|
+
# @yield [result, err] Result & error if block supplied
|
980
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::HttpRoute] parsed result object
|
981
|
+
# @yieldparam err [StandardError] error object if request failed
|
982
|
+
#
|
983
|
+
# @return [Google::Apis::NetworkservicesV1beta1::HttpRoute]
|
984
|
+
#
|
985
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
986
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
987
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
988
|
+
def get_project_location_http_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
989
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
990
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::HttpRoute::Representation
|
991
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::HttpRoute
|
992
|
+
command.params['name'] = name unless name.nil?
|
993
|
+
command.query['fields'] = fields unless fields.nil?
|
994
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
995
|
+
execute_or_queue_command(command, &block)
|
996
|
+
end
|
997
|
+
|
998
|
+
# Lists HttpRoute in a given project and location.
|
999
|
+
# @param [String] parent
|
1000
|
+
# Required. The project and location from which the HttpRoutes should be listed,
|
1001
|
+
# specified in the format `projects/*/locations/global`.
|
1002
|
+
# @param [Fixnum] page_size
|
1003
|
+
# Maximum number of HttpRoutes to return per call.
|
1004
|
+
# @param [String] page_token
|
1005
|
+
# The value returned by the last `ListHttpRoutesResponse` Indicates that this is
|
1006
|
+
# a continuation of a prior `ListRouters` call, and that the system should
|
1007
|
+
# return the next page of data.
|
1008
|
+
# @param [String] fields
|
1009
|
+
# Selector specifying which fields to include in a partial response.
|
1010
|
+
# @param [String] quota_user
|
1011
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1012
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1013
|
+
# @param [Google::Apis::RequestOptions] options
|
1014
|
+
# Request-specific options
|
1015
|
+
#
|
1016
|
+
# @yield [result, err] Result & error if block supplied
|
1017
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListHttpRoutesResponse] parsed result object
|
1018
|
+
# @yieldparam err [StandardError] error object if request failed
|
1019
|
+
#
|
1020
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListHttpRoutesResponse]
|
1021
|
+
#
|
1022
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1023
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1024
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1025
|
+
def list_project_location_http_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1026
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/httpRoutes', options)
|
1027
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListHttpRoutesResponse::Representation
|
1028
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListHttpRoutesResponse
|
1029
|
+
command.params['parent'] = parent unless parent.nil?
|
1030
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1031
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1032
|
+
command.query['fields'] = fields unless fields.nil?
|
1033
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1034
|
+
execute_or_queue_command(command, &block)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
# Updates the parameters of a single HttpRoute.
|
1038
|
+
# @param [String] name
|
1039
|
+
# Required. Name of the HttpRoute resource. It matches pattern `projects/*/
|
1040
|
+
# locations/global/httpRoutes/http_route_name>`.
|
1041
|
+
# @param [Google::Apis::NetworkservicesV1beta1::HttpRoute] http_route_object
|
1042
|
+
# @param [String] update_mask
|
1043
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1044
|
+
# HttpRoute resource by the update. The fields specified in the update_mask are
|
1045
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
1046
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
1047
|
+
# overwritten.
|
1048
|
+
# @param [String] fields
|
1049
|
+
# Selector specifying which fields to include in a partial response.
|
1050
|
+
# @param [String] quota_user
|
1051
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1052
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1053
|
+
# @param [Google::Apis::RequestOptions] options
|
1054
|
+
# Request-specific options
|
1055
|
+
#
|
1056
|
+
# @yield [result, err] Result & error if block supplied
|
1057
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1058
|
+
# @yieldparam err [StandardError] error object if request failed
|
1059
|
+
#
|
1060
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1061
|
+
#
|
1062
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1063
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1064
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1065
|
+
def patch_project_location_http_route(name, http_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1066
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1067
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::HttpRoute::Representation
|
1068
|
+
command.request_object = http_route_object
|
1069
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1070
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1071
|
+
command.params['name'] = name unless name.nil?
|
1072
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1073
|
+
command.query['fields'] = fields unless fields.nil?
|
1074
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1075
|
+
execute_or_queue_command(command, &block)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Creates a new Mesh in a given project and location.
|
1079
|
+
# @param [String] parent
|
1080
|
+
# Required. The parent resource of the Mesh. Must be in the format `projects/*/
|
1081
|
+
# locations/global`.
|
1082
|
+
# @param [Google::Apis::NetworkservicesV1beta1::Mesh] mesh_object
|
1083
|
+
# @param [String] mesh_id
|
1084
|
+
# Required. Short name of the Mesh resource to be created.
|
1085
|
+
# @param [String] fields
|
1086
|
+
# Selector specifying which fields to include in a partial response.
|
1087
|
+
# @param [String] quota_user
|
1088
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1089
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1090
|
+
# @param [Google::Apis::RequestOptions] options
|
1091
|
+
# Request-specific options
|
1092
|
+
#
|
1093
|
+
# @yield [result, err] Result & error if block supplied
|
1094
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1095
|
+
# @yieldparam err [StandardError] error object if request failed
|
1096
|
+
#
|
1097
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1098
|
+
#
|
1099
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1102
|
+
def create_project_location_mesh(parent, mesh_object = nil, mesh_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1103
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/meshes', options)
|
1104
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::Mesh::Representation
|
1105
|
+
command.request_object = mesh_object
|
1106
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1107
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1108
|
+
command.params['parent'] = parent unless parent.nil?
|
1109
|
+
command.query['meshId'] = mesh_id unless mesh_id.nil?
|
1110
|
+
command.query['fields'] = fields unless fields.nil?
|
1111
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1112
|
+
execute_or_queue_command(command, &block)
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# Deletes a single Mesh.
|
1116
|
+
# @param [String] name
|
1117
|
+
# Required. A name of the Mesh to delete. Must be in the format `projects/*/
|
1118
|
+
# locations/global/meshes/*`.
|
1119
|
+
# @param [String] fields
|
1120
|
+
# Selector specifying which fields to include in a partial response.
|
1121
|
+
# @param [String] quota_user
|
1122
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1123
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1124
|
+
# @param [Google::Apis::RequestOptions] options
|
1125
|
+
# Request-specific options
|
1126
|
+
#
|
1127
|
+
# @yield [result, err] Result & error if block supplied
|
1128
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1129
|
+
# @yieldparam err [StandardError] error object if request failed
|
1130
|
+
#
|
1131
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1132
|
+
#
|
1133
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1134
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1135
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1136
|
+
def delete_project_location_mesh(name, fields: nil, quota_user: nil, options: nil, &block)
|
1137
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1138
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1139
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1140
|
+
command.params['name'] = name unless name.nil?
|
1141
|
+
command.query['fields'] = fields unless fields.nil?
|
1142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1143
|
+
execute_or_queue_command(command, &block)
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# Gets details of a single Mesh.
|
1147
|
+
# @param [String] name
|
1148
|
+
# Required. A name of the Mesh to get. Must be in the format `projects/*/
|
1149
|
+
# locations/global/meshes/*`.
|
1150
|
+
# @param [String] fields
|
1151
|
+
# Selector specifying which fields to include in a partial response.
|
1152
|
+
# @param [String] quota_user
|
1153
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1154
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1155
|
+
# @param [Google::Apis::RequestOptions] options
|
1156
|
+
# Request-specific options
|
1157
|
+
#
|
1158
|
+
# @yield [result, err] Result & error if block supplied
|
1159
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Mesh] parsed result object
|
1160
|
+
# @yieldparam err [StandardError] error object if request failed
|
1161
|
+
#
|
1162
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Mesh]
|
1163
|
+
#
|
1164
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1165
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1166
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1167
|
+
def get_project_location_mesh(name, fields: nil, quota_user: nil, options: nil, &block)
|
1168
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1169
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Mesh::Representation
|
1170
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Mesh
|
1171
|
+
command.params['name'] = name unless name.nil?
|
1172
|
+
command.query['fields'] = fields unless fields.nil?
|
1173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1174
|
+
execute_or_queue_command(command, &block)
|
1175
|
+
end
|
1176
|
+
|
1177
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1178
|
+
# resource exists and does not have a policy set.
|
1179
|
+
# @param [String] resource
|
1180
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1181
|
+
# operation documentation for the appropriate value for this field.
|
1182
|
+
# @param [Fixnum] options_requested_policy_version
|
1183
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1184
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1185
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1186
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1187
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1188
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1189
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1190
|
+
# bindings, the response uses version 1. To learn which resources support
|
1191
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1192
|
+
# google.com/iam/help/conditions/resource-policies).
|
1193
|
+
# @param [String] fields
|
1194
|
+
# Selector specifying which fields to include in a partial response.
|
1195
|
+
# @param [String] quota_user
|
1196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1198
|
+
# @param [Google::Apis::RequestOptions] options
|
1199
|
+
# Request-specific options
|
1200
|
+
#
|
1201
|
+
# @yield [result, err] Result & error if block supplied
|
1202
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
1203
|
+
# @yieldparam err [StandardError] error object if request failed
|
1204
|
+
#
|
1205
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
1206
|
+
#
|
1207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1210
|
+
def get_project_location_mesh_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1211
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
1212
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
1213
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
1214
|
+
command.params['resource'] = resource unless resource.nil?
|
1215
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1216
|
+
command.query['fields'] = fields unless fields.nil?
|
1217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1218
|
+
execute_or_queue_command(command, &block)
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# Lists Meshes in a given project and location.
|
1222
|
+
# @param [String] parent
|
1223
|
+
# Required. The project and location from which the Meshes should be listed,
|
1224
|
+
# specified in the format `projects/*/locations/global`.
|
1225
|
+
# @param [Fixnum] page_size
|
1226
|
+
# Maximum number of Meshes to return per call.
|
1227
|
+
# @param [String] page_token
|
1228
|
+
# The value returned by the last `ListMeshesResponse` Indicates that this is a
|
1229
|
+
# continuation of a prior `ListMeshes` call, and that the system should return
|
1230
|
+
# the next page of data.
|
1231
|
+
# @param [String] fields
|
1232
|
+
# Selector specifying which fields to include in a partial response.
|
1233
|
+
# @param [String] quota_user
|
1234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1236
|
+
# @param [Google::Apis::RequestOptions] options
|
1237
|
+
# Request-specific options
|
1238
|
+
#
|
1239
|
+
# @yield [result, err] Result & error if block supplied
|
1240
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListMeshesResponse] parsed result object
|
1241
|
+
# @yieldparam err [StandardError] error object if request failed
|
1242
|
+
#
|
1243
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListMeshesResponse]
|
1244
|
+
#
|
1245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1248
|
+
def list_project_location_meshes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1249
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/meshes', options)
|
1250
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListMeshesResponse::Representation
|
1251
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListMeshesResponse
|
1252
|
+
command.params['parent'] = parent unless parent.nil?
|
1253
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1254
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1255
|
+
command.query['fields'] = fields unless fields.nil?
|
1256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1257
|
+
execute_or_queue_command(command, &block)
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
# Updates the parameters of a single Mesh.
|
1261
|
+
# @param [String] name
|
1262
|
+
# Required. Name of the Mesh resource. It matches pattern `projects/*/locations/
|
1263
|
+
# global/meshes/`.
|
1264
|
+
# @param [Google::Apis::NetworkservicesV1beta1::Mesh] mesh_object
|
1265
|
+
# @param [String] update_mask
|
1266
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1267
|
+
# Mesh resource by the update. The fields specified in the update_mask are
|
1268
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
1269
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
1270
|
+
# overwritten.
|
1271
|
+
# @param [String] fields
|
1272
|
+
# Selector specifying which fields to include in a partial response.
|
1273
|
+
# @param [String] quota_user
|
1274
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1275
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1276
|
+
# @param [Google::Apis::RequestOptions] options
|
1277
|
+
# Request-specific options
|
1278
|
+
#
|
1279
|
+
# @yield [result, err] Result & error if block supplied
|
1280
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1281
|
+
# @yieldparam err [StandardError] error object if request failed
|
1282
|
+
#
|
1283
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1284
|
+
#
|
1285
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1286
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1287
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1288
|
+
def patch_project_location_mesh(name, mesh_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1289
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1290
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::Mesh::Representation
|
1291
|
+
command.request_object = mesh_object
|
1292
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1293
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1294
|
+
command.params['name'] = name unless name.nil?
|
1295
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1296
|
+
command.query['fields'] = fields unless fields.nil?
|
1297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1298
|
+
execute_or_queue_command(command, &block)
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1302
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1303
|
+
# PERMISSION_DENIED` errors.
|
1304
|
+
# @param [String] resource
|
1305
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1306
|
+
# operation documentation for the appropriate value for this field.
|
1307
|
+
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
1308
|
+
# @param [String] fields
|
1309
|
+
# Selector specifying which fields to include in a partial response.
|
1310
|
+
# @param [String] quota_user
|
1311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1313
|
+
# @param [Google::Apis::RequestOptions] options
|
1314
|
+
# Request-specific options
|
1315
|
+
#
|
1316
|
+
# @yield [result, err] Result & error if block supplied
|
1317
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
1318
|
+
# @yieldparam err [StandardError] error object if request failed
|
1319
|
+
#
|
1320
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
1321
|
+
#
|
1322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1325
|
+
def set_mesh_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1326
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
1327
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
|
1328
|
+
command.request_object = set_iam_policy_request_object
|
1329
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
1330
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
1331
|
+
command.params['resource'] = resource unless resource.nil?
|
1332
|
+
command.query['fields'] = fields unless fields.nil?
|
1333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1334
|
+
execute_or_queue_command(command, &block)
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1338
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1339
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1340
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1341
|
+
# This operation may "fail open" without warning.
|
1342
|
+
# @param [String] resource
|
1343
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1344
|
+
# operation documentation for the appropriate value for this field.
|
1345
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1346
|
+
# @param [String] fields
|
1347
|
+
# Selector specifying which fields to include in a partial response.
|
1348
|
+
# @param [String] quota_user
|
1349
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1350
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1351
|
+
# @param [Google::Apis::RequestOptions] options
|
1352
|
+
# Request-specific options
|
1353
|
+
#
|
1354
|
+
# @yield [result, err] Result & error if block supplied
|
1355
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
|
1356
|
+
# @yieldparam err [StandardError] error object if request failed
|
1357
|
+
#
|
1358
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
|
1359
|
+
#
|
1360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1363
|
+
def test_mesh_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1364
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
1365
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
1366
|
+
command.request_object = test_iam_permissions_request_object
|
1367
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
1368
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
1369
|
+
command.params['resource'] = resource unless resource.nil?
|
1370
|
+
command.query['fields'] = fields unless fields.nil?
|
1371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1372
|
+
execute_or_queue_command(command, &block)
|
1373
|
+
end
|
1374
|
+
|
1375
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
1376
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
1377
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
1378
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
1379
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
1380
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
1381
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
1382
|
+
# corresponding to `Code.CANCELLED`.
|
1383
|
+
# @param [String] name
|
1384
|
+
# The name of the operation resource to be cancelled.
|
1385
|
+
# @param [Google::Apis::NetworkservicesV1beta1::CancelOperationRequest] cancel_operation_request_object
|
1386
|
+
# @param [String] fields
|
1387
|
+
# Selector specifying which fields to include in a partial response.
|
1388
|
+
# @param [String] quota_user
|
1389
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1390
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1391
|
+
# @param [Google::Apis::RequestOptions] options
|
1392
|
+
# Request-specific options
|
1393
|
+
#
|
1394
|
+
# @yield [result, err] Result & error if block supplied
|
1395
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Empty] parsed result object
|
1396
|
+
# @yieldparam err [StandardError] error object if request failed
|
1397
|
+
#
|
1398
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Empty]
|
1399
|
+
#
|
1400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1403
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1404
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
1405
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::CancelOperationRequest::Representation
|
1406
|
+
command.request_object = cancel_operation_request_object
|
1407
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
|
1408
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
|
1409
|
+
command.params['name'] = name unless name.nil?
|
1410
|
+
command.query['fields'] = fields unless fields.nil?
|
1411
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1412
|
+
execute_or_queue_command(command, &block)
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
1416
|
+
# longer interested in the operation result. It does not cancel the operation.
|
1417
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
1418
|
+
# UNIMPLEMENTED`.
|
1419
|
+
# @param [String] name
|
1420
|
+
# The name of the operation resource to be deleted.
|
1421
|
+
# @param [String] fields
|
1422
|
+
# Selector specifying which fields to include in a partial response.
|
1423
|
+
# @param [String] quota_user
|
1424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1426
|
+
# @param [Google::Apis::RequestOptions] options
|
1427
|
+
# Request-specific options
|
1428
|
+
#
|
1429
|
+
# @yield [result, err] Result & error if block supplied
|
1430
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Empty] parsed result object
|
1431
|
+
# @yieldparam err [StandardError] error object if request failed
|
1432
|
+
#
|
1433
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Empty]
|
1434
|
+
#
|
1435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1438
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1439
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1440
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
|
1441
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
|
1442
|
+
command.params['name'] = name unless name.nil?
|
1443
|
+
command.query['fields'] = fields unless fields.nil?
|
1444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1445
|
+
execute_or_queue_command(command, &block)
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1449
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1450
|
+
# @param [String] name
|
1451
|
+
# The name of the operation resource.
|
1452
|
+
# @param [String] fields
|
1453
|
+
# Selector specifying which fields to include in a partial response.
|
1454
|
+
# @param [String] quota_user
|
1455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1457
|
+
# @param [Google::Apis::RequestOptions] options
|
1458
|
+
# Request-specific options
|
1459
|
+
#
|
1460
|
+
# @yield [result, err] Result & error if block supplied
|
1461
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1462
|
+
# @yieldparam err [StandardError] error object if request failed
|
1463
|
+
#
|
1464
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1465
|
+
#
|
1466
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1467
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1468
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1469
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1470
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1471
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1472
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1473
|
+
command.params['name'] = name unless name.nil?
|
1474
|
+
command.query['fields'] = fields unless fields.nil?
|
1475
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1476
|
+
execute_or_queue_command(command, &block)
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# Lists operations that match the specified filter in the request. If the server
|
1480
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1481
|
+
# binding allows API services to override the binding to use different resource
|
1482
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
1483
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1484
|
+
# service configuration. For backwards compatibility, the default name includes
|
1485
|
+
# the operations collection id, however overriding users must ensure the name
|
1486
|
+
# binding is the parent resource, without the operations collection id.
|
1487
|
+
# @param [String] name
|
1488
|
+
# The name of the operation's parent resource.
|
1489
|
+
# @param [String] filter
|
1490
|
+
# The standard list filter.
|
1491
|
+
# @param [Fixnum] page_size
|
1492
|
+
# The standard list page size.
|
1493
|
+
# @param [String] page_token
|
1494
|
+
# The standard list page token.
|
1495
|
+
# @param [String] fields
|
1496
|
+
# Selector specifying which fields to include in a partial response.
|
1497
|
+
# @param [String] quota_user
|
1498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1500
|
+
# @param [Google::Apis::RequestOptions] options
|
1501
|
+
# Request-specific options
|
1502
|
+
#
|
1503
|
+
# @yield [result, err] Result & error if block supplied
|
1504
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListOperationsResponse] parsed result object
|
1505
|
+
# @yieldparam err [StandardError] error object if request failed
|
1506
|
+
#
|
1507
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListOperationsResponse]
|
1508
|
+
#
|
1509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1512
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1513
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
1514
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse::Representation
|
1515
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse
|
1516
|
+
command.params['name'] = name unless name.nil?
|
1517
|
+
command.query['filter'] = filter unless filter.nil?
|
1518
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1519
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1520
|
+
command.query['fields'] = fields unless fields.nil?
|
1521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1522
|
+
execute_or_queue_command(command, &block)
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
# Creates a new ServiceBinding in a given project and location.
|
1526
|
+
# @param [String] parent
|
1527
|
+
# Required. The parent resource of the ServiceBinding. Must be in the format `
|
1528
|
+
# projects/*/locations/global`.
|
1529
|
+
# @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
|
1530
|
+
# @param [String] service_binding_id
|
1531
|
+
# Required. Short name of the ServiceBinding resource to be created.
|
1532
|
+
# @param [String] fields
|
1533
|
+
# Selector specifying which fields to include in a partial response.
|
1534
|
+
# @param [String] quota_user
|
1535
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1536
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1537
|
+
# @param [Google::Apis::RequestOptions] options
|
1538
|
+
# Request-specific options
|
1539
|
+
#
|
1540
|
+
# @yield [result, err] Result & error if block supplied
|
1541
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1542
|
+
# @yieldparam err [StandardError] error object if request failed
|
1543
|
+
#
|
1544
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1545
|
+
#
|
1546
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1547
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1548
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1549
|
+
def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1550
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/serviceBindings', options)
|
1551
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
|
1552
|
+
command.request_object = service_binding_object
|
1553
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1554
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1555
|
+
command.params['parent'] = parent unless parent.nil?
|
1556
|
+
command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
|
1557
|
+
command.query['fields'] = fields unless fields.nil?
|
1558
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1559
|
+
execute_or_queue_command(command, &block)
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
# Deletes a single ServiceBinding.
|
1563
|
+
# @param [String] name
|
1564
|
+
# Required. A name of the ServiceBinding to delete. Must be in the format `
|
1565
|
+
# projects/*/locations/global/serviceBindings/*`.
|
1566
|
+
# @param [String] fields
|
1567
|
+
# Selector specifying which fields to include in a partial response.
|
1568
|
+
# @param [String] quota_user
|
1569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1571
|
+
# @param [Google::Apis::RequestOptions] options
|
1572
|
+
# Request-specific options
|
1573
|
+
#
|
1574
|
+
# @yield [result, err] Result & error if block supplied
|
1575
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1576
|
+
# @yieldparam err [StandardError] error object if request failed
|
1577
|
+
#
|
1578
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1579
|
+
#
|
1580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1583
|
+
def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
1584
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1585
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1586
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1587
|
+
command.params['name'] = name unless name.nil?
|
1588
|
+
command.query['fields'] = fields unless fields.nil?
|
1589
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1590
|
+
execute_or_queue_command(command, &block)
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
# Gets details of a single ServiceBinding.
|
1594
|
+
# @param [String] name
|
1595
|
+
# Required. A name of the ServiceBinding to get. Must be in the format `projects/
|
1596
|
+
# */locations/global/serviceBindings/*`.
|
1597
|
+
# @param [String] fields
|
1598
|
+
# Selector specifying which fields to include in a partial response.
|
1599
|
+
# @param [String] quota_user
|
1600
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1601
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1602
|
+
# @param [Google::Apis::RequestOptions] options
|
1603
|
+
# Request-specific options
|
1604
|
+
#
|
1605
|
+
# @yield [result, err] Result & error if block supplied
|
1606
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ServiceBinding] parsed result object
|
1607
|
+
# @yieldparam err [StandardError] error object if request failed
|
1608
|
+
#
|
1609
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ServiceBinding]
|
1610
|
+
#
|
1611
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1612
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1613
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1614
|
+
def get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
1615
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1616
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
|
1617
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ServiceBinding
|
1618
|
+
command.params['name'] = name unless name.nil?
|
1619
|
+
command.query['fields'] = fields unless fields.nil?
|
1620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1621
|
+
execute_or_queue_command(command, &block)
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1625
|
+
# resource exists and does not have a policy set.
|
1626
|
+
# @param [String] resource
|
1627
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1628
|
+
# operation documentation for the appropriate value for this field.
|
1629
|
+
# @param [Fixnum] options_requested_policy_version
|
1630
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1631
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1632
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1633
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1634
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1635
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1636
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1637
|
+
# bindings, the response uses version 1. To learn which resources support
|
1638
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1639
|
+
# google.com/iam/help/conditions/resource-policies).
|
1640
|
+
# @param [String] fields
|
1641
|
+
# Selector specifying which fields to include in a partial response.
|
1642
|
+
# @param [String] quota_user
|
1643
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1644
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1645
|
+
# @param [Google::Apis::RequestOptions] options
|
1646
|
+
# Request-specific options
|
1647
|
+
#
|
1648
|
+
# @yield [result, err] Result & error if block supplied
|
1649
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
1650
|
+
# @yieldparam err [StandardError] error object if request failed
|
1651
|
+
#
|
1652
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
1653
|
+
#
|
1654
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1655
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1656
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1657
|
+
def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1658
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
1659
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
1660
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
1661
|
+
command.params['resource'] = resource unless resource.nil?
|
1662
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1663
|
+
command.query['fields'] = fields unless fields.nil?
|
1664
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1665
|
+
execute_or_queue_command(command, &block)
|
1666
|
+
end
|
1667
|
+
|
1668
|
+
# Lists ServiceBinding in a given project and location.
|
1669
|
+
# @param [String] parent
|
1670
|
+
# Required. The project and location from which the ServiceBindings should be
|
1671
|
+
# listed, specified in the format `projects/*/locations/global`.
|
1672
|
+
# @param [Fixnum] page_size
|
1673
|
+
# Maximum number of ServiceBindings to return per call.
|
1674
|
+
# @param [String] page_token
|
1675
|
+
# The value returned by the last `ListServiceBindingsResponse` Indicates that
|
1676
|
+
# this is a continuation of a prior `ListRouters` call, and that the system
|
1677
|
+
# should return the next page of data.
|
1678
|
+
# @param [String] fields
|
1679
|
+
# Selector specifying which fields to include in a partial response.
|
1680
|
+
# @param [String] quota_user
|
1681
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1682
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1683
|
+
# @param [Google::Apis::RequestOptions] options
|
1684
|
+
# Request-specific options
|
1685
|
+
#
|
1686
|
+
# @yield [result, err] Result & error if block supplied
|
1687
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse] parsed result object
|
1688
|
+
# @yieldparam err [StandardError] error object if request failed
|
1689
|
+
#
|
1690
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse]
|
1691
|
+
#
|
1692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1695
|
+
def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1696
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/serviceBindings', options)
|
1697
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse::Representation
|
1698
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse
|
1699
|
+
command.params['parent'] = parent unless parent.nil?
|
1700
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1701
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1702
|
+
command.query['fields'] = fields unless fields.nil?
|
1703
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1704
|
+
execute_or_queue_command(command, &block)
|
1705
|
+
end
|
1706
|
+
|
1707
|
+
# Updates the parameters of a single ServiceBinding.
|
1708
|
+
# @param [String] name
|
1709
|
+
# Required. Name of the ServiceBinding resource. It matches pattern `projects/*/
|
1710
|
+
# locations/global/serviceBindings/service_binding_name>`.
|
1711
|
+
# @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
|
1712
|
+
# @param [String] update_mask
|
1713
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1714
|
+
# ServiceBinding resource by the update. The fields specified in the update_mask
|
1715
|
+
# are relative to the resource, not the full request. A field will be
|
1716
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
1717
|
+
# fields will be overwritten.
|
1718
|
+
# @param [String] fields
|
1719
|
+
# Selector specifying which fields to include in a partial response.
|
1720
|
+
# @param [String] quota_user
|
1721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1723
|
+
# @param [Google::Apis::RequestOptions] options
|
1724
|
+
# Request-specific options
|
1725
|
+
#
|
1726
|
+
# @yield [result, err] Result & error if block supplied
|
1727
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1728
|
+
# @yieldparam err [StandardError] error object if request failed
|
1729
|
+
#
|
1730
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1731
|
+
#
|
1732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1735
|
+
def patch_project_location_service_binding(name, service_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1736
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1737
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
|
1738
|
+
command.request_object = service_binding_object
|
1739
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1740
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1741
|
+
command.params['name'] = name unless name.nil?
|
1742
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1743
|
+
command.query['fields'] = fields unless fields.nil?
|
1744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1745
|
+
execute_or_queue_command(command, &block)
|
1746
|
+
end
|
1747
|
+
|
1748
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1749
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1750
|
+
# PERMISSION_DENIED` errors.
|
1751
|
+
# @param [String] resource
|
1752
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1753
|
+
# operation documentation for the appropriate value for this field.
|
1754
|
+
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
1755
|
+
# @param [String] fields
|
1756
|
+
# Selector specifying which fields to include in a partial response.
|
1757
|
+
# @param [String] quota_user
|
1758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1760
|
+
# @param [Google::Apis::RequestOptions] options
|
1761
|
+
# Request-specific options
|
1762
|
+
#
|
1763
|
+
# @yield [result, err] Result & error if block supplied
|
1764
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
1765
|
+
# @yieldparam err [StandardError] error object if request failed
|
1766
|
+
#
|
1767
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
1768
|
+
#
|
1769
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1770
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1771
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1772
|
+
def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1773
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
1774
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
|
1775
|
+
command.request_object = set_iam_policy_request_object
|
1776
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
1777
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
1778
|
+
command.params['resource'] = resource unless resource.nil?
|
1779
|
+
command.query['fields'] = fields unless fields.nil?
|
1780
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1781
|
+
execute_or_queue_command(command, &block)
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1785
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1786
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1787
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1788
|
+
# This operation may "fail open" without warning.
|
1789
|
+
# @param [String] resource
|
1790
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1791
|
+
# operation documentation for the appropriate value for this field.
|
1792
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1793
|
+
# @param [String] fields
|
1794
|
+
# Selector specifying which fields to include in a partial response.
|
1795
|
+
# @param [String] quota_user
|
1796
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1797
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1798
|
+
# @param [Google::Apis::RequestOptions] options
|
1799
|
+
# Request-specific options
|
1800
|
+
#
|
1801
|
+
# @yield [result, err] Result & error if block supplied
|
1802
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
|
851
1803
|
# @yieldparam err [StandardError] error object if request failed
|
852
1804
|
#
|
853
1805
|
# @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
|
@@ -855,13 +1807,373 @@ module Google
|
|
855
1807
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
856
1808
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
857
1809
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
858
|
-
def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
859
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
860
|
-
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
861
|
-
command.request_object = test_iam_permissions_request_object
|
862
|
-
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
863
|
-
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
864
|
-
command.params['resource'] = resource unless resource.nil?
|
1810
|
+
def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1811
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
1812
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
1813
|
+
command.request_object = test_iam_permissions_request_object
|
1814
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
1815
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
1816
|
+
command.params['resource'] = resource unless resource.nil?
|
1817
|
+
command.query['fields'] = fields unless fields.nil?
|
1818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1819
|
+
execute_or_queue_command(command, &block)
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
# Creates a new TcpRoute in a given project and location.
|
1823
|
+
# @param [String] parent
|
1824
|
+
# Required. The parent resource of the TcpRoute. Must be in the format `projects/
|
1825
|
+
# */locations/global`.
|
1826
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TcpRoute] tcp_route_object
|
1827
|
+
# @param [String] tcp_route_id
|
1828
|
+
# Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an
|
1829
|
+
# example).
|
1830
|
+
# @param [String] fields
|
1831
|
+
# Selector specifying which fields to include in a partial response.
|
1832
|
+
# @param [String] quota_user
|
1833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1835
|
+
# @param [Google::Apis::RequestOptions] options
|
1836
|
+
# Request-specific options
|
1837
|
+
#
|
1838
|
+
# @yield [result, err] Result & error if block supplied
|
1839
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1840
|
+
# @yieldparam err [StandardError] error object if request failed
|
1841
|
+
#
|
1842
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1843
|
+
#
|
1844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1847
|
+
def create_project_location_tcp_route(parent, tcp_route_object = nil, tcp_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1848
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/tcpRoutes', options)
|
1849
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
|
1850
|
+
command.request_object = tcp_route_object
|
1851
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1852
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1853
|
+
command.params['parent'] = parent unless parent.nil?
|
1854
|
+
command.query['tcpRouteId'] = tcp_route_id unless tcp_route_id.nil?
|
1855
|
+
command.query['fields'] = fields unless fields.nil?
|
1856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1857
|
+
execute_or_queue_command(command, &block)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
# Deletes a single TcpRoute.
|
1861
|
+
# @param [String] name
|
1862
|
+
# Required. A name of the TcpRoute to delete. Must be in the format `projects/*/
|
1863
|
+
# locations/global/tcpRoutes/*`.
|
1864
|
+
# @param [String] fields
|
1865
|
+
# Selector specifying which fields to include in a partial response.
|
1866
|
+
# @param [String] quota_user
|
1867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1869
|
+
# @param [Google::Apis::RequestOptions] options
|
1870
|
+
# Request-specific options
|
1871
|
+
#
|
1872
|
+
# @yield [result, err] Result & error if block supplied
|
1873
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1874
|
+
# @yieldparam err [StandardError] error object if request failed
|
1875
|
+
#
|
1876
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1877
|
+
#
|
1878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1881
|
+
def delete_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
1882
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
1883
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1884
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1885
|
+
command.params['name'] = name unless name.nil?
|
1886
|
+
command.query['fields'] = fields unless fields.nil?
|
1887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1888
|
+
execute_or_queue_command(command, &block)
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
# Gets details of a single TcpRoute.
|
1892
|
+
# @param [String] name
|
1893
|
+
# Required. A name of the TcpRoute to get. Must be in the format `projects/*/
|
1894
|
+
# locations/global/tcpRoutes/*`.
|
1895
|
+
# @param [String] fields
|
1896
|
+
# Selector specifying which fields to include in a partial response.
|
1897
|
+
# @param [String] quota_user
|
1898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1900
|
+
# @param [Google::Apis::RequestOptions] options
|
1901
|
+
# Request-specific options
|
1902
|
+
#
|
1903
|
+
# @yield [result, err] Result & error if block supplied
|
1904
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TcpRoute] parsed result object
|
1905
|
+
# @yieldparam err [StandardError] error object if request failed
|
1906
|
+
#
|
1907
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TcpRoute]
|
1908
|
+
#
|
1909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1912
|
+
def get_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
1913
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1914
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
|
1915
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TcpRoute
|
1916
|
+
command.params['name'] = name unless name.nil?
|
1917
|
+
command.query['fields'] = fields unless fields.nil?
|
1918
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1919
|
+
execute_or_queue_command(command, &block)
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
# Lists TcpRoute in a given project and location.
|
1923
|
+
# @param [String] parent
|
1924
|
+
# Required. The project and location from which the TcpRoutes should be listed,
|
1925
|
+
# specified in the format `projects/*/locations/global`.
|
1926
|
+
# @param [Fixnum] page_size
|
1927
|
+
# Maximum number of TcpRoutes to return per call.
|
1928
|
+
# @param [String] page_token
|
1929
|
+
# The value returned by the last `ListTcpRoutesResponse` Indicates that this is
|
1930
|
+
# a continuation of a prior `ListRouters` call, and that the system should
|
1931
|
+
# return the next page of data.
|
1932
|
+
# @param [String] fields
|
1933
|
+
# Selector specifying which fields to include in a partial response.
|
1934
|
+
# @param [String] quota_user
|
1935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1937
|
+
# @param [Google::Apis::RequestOptions] options
|
1938
|
+
# Request-specific options
|
1939
|
+
#
|
1940
|
+
# @yield [result, err] Result & error if block supplied
|
1941
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse] parsed result object
|
1942
|
+
# @yieldparam err [StandardError] error object if request failed
|
1943
|
+
#
|
1944
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse]
|
1945
|
+
#
|
1946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1949
|
+
def list_project_location_tcp_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1950
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/tcpRoutes', options)
|
1951
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse::Representation
|
1952
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse
|
1953
|
+
command.params['parent'] = parent unless parent.nil?
|
1954
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1955
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1956
|
+
command.query['fields'] = fields unless fields.nil?
|
1957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1958
|
+
execute_or_queue_command(command, &block)
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
# Updates the parameters of a single TcpRoute.
|
1962
|
+
# @param [String] name
|
1963
|
+
# Required. Name of the TcpRoute resource. It matches pattern `projects/*/
|
1964
|
+
# locations/global/tcpRoutes/tcp_route_name>`.
|
1965
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TcpRoute] tcp_route_object
|
1966
|
+
# @param [String] update_mask
|
1967
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1968
|
+
# TcpRoute resource by the update. The fields specified in the update_mask are
|
1969
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
1970
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
1971
|
+
# overwritten.
|
1972
|
+
# @param [String] fields
|
1973
|
+
# Selector specifying which fields to include in a partial response.
|
1974
|
+
# @param [String] quota_user
|
1975
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1976
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1977
|
+
# @param [Google::Apis::RequestOptions] options
|
1978
|
+
# Request-specific options
|
1979
|
+
#
|
1980
|
+
# @yield [result, err] Result & error if block supplied
|
1981
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
1982
|
+
# @yieldparam err [StandardError] error object if request failed
|
1983
|
+
#
|
1984
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
1985
|
+
#
|
1986
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1987
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1988
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1989
|
+
def patch_project_location_tcp_route(name, tcp_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1990
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1991
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
|
1992
|
+
command.request_object = tcp_route_object
|
1993
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
1994
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
1995
|
+
command.params['name'] = name unless name.nil?
|
1996
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1997
|
+
command.query['fields'] = fields unless fields.nil?
|
1998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1999
|
+
execute_or_queue_command(command, &block)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# Creates a new TlsRoute in a given project and location.
|
2003
|
+
# @param [String] parent
|
2004
|
+
# Required. The parent resource of the TlsRoute. Must be in the format `projects/
|
2005
|
+
# */locations/global`.
|
2006
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TlsRoute] tls_route_object
|
2007
|
+
# @param [String] tls_route_id
|
2008
|
+
# Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an
|
2009
|
+
# example).
|
2010
|
+
# @param [String] fields
|
2011
|
+
# Selector specifying which fields to include in a partial response.
|
2012
|
+
# @param [String] quota_user
|
2013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2015
|
+
# @param [Google::Apis::RequestOptions] options
|
2016
|
+
# Request-specific options
|
2017
|
+
#
|
2018
|
+
# @yield [result, err] Result & error if block supplied
|
2019
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
2020
|
+
# @yieldparam err [StandardError] error object if request failed
|
2021
|
+
#
|
2022
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
2023
|
+
#
|
2024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2027
|
+
def create_project_location_tls_route(parent, tls_route_object = nil, tls_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2028
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/tlsRoutes', options)
|
2029
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
|
2030
|
+
command.request_object = tls_route_object
|
2031
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
2032
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
2033
|
+
command.params['parent'] = parent unless parent.nil?
|
2034
|
+
command.query['tlsRouteId'] = tls_route_id unless tls_route_id.nil?
|
2035
|
+
command.query['fields'] = fields unless fields.nil?
|
2036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2037
|
+
execute_or_queue_command(command, &block)
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
# Deletes a single TlsRoute.
|
2041
|
+
# @param [String] name
|
2042
|
+
# Required. A name of the TlsRoute to delete. Must be in the format `projects/*/
|
2043
|
+
# locations/global/tlsRoutes/*`.
|
2044
|
+
# @param [String] fields
|
2045
|
+
# Selector specifying which fields to include in a partial response.
|
2046
|
+
# @param [String] quota_user
|
2047
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2048
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2049
|
+
# @param [Google::Apis::RequestOptions] options
|
2050
|
+
# Request-specific options
|
2051
|
+
#
|
2052
|
+
# @yield [result, err] Result & error if block supplied
|
2053
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
2054
|
+
# @yieldparam err [StandardError] error object if request failed
|
2055
|
+
#
|
2056
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
2057
|
+
#
|
2058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2061
|
+
def delete_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
2062
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
2063
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
2064
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
2065
|
+
command.params['name'] = name unless name.nil?
|
2066
|
+
command.query['fields'] = fields unless fields.nil?
|
2067
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2068
|
+
execute_or_queue_command(command, &block)
|
2069
|
+
end
|
2070
|
+
|
2071
|
+
# Gets details of a single TlsRoute.
|
2072
|
+
# @param [String] name
|
2073
|
+
# Required. A name of the TlsRoute to get. Must be in the format `projects/*/
|
2074
|
+
# locations/global/tlsRoutes/*`.
|
2075
|
+
# @param [String] fields
|
2076
|
+
# Selector specifying which fields to include in a partial response.
|
2077
|
+
# @param [String] quota_user
|
2078
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2079
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2080
|
+
# @param [Google::Apis::RequestOptions] options
|
2081
|
+
# Request-specific options
|
2082
|
+
#
|
2083
|
+
# @yield [result, err] Result & error if block supplied
|
2084
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TlsRoute] parsed result object
|
2085
|
+
# @yieldparam err [StandardError] error object if request failed
|
2086
|
+
#
|
2087
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TlsRoute]
|
2088
|
+
#
|
2089
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2090
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2091
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2092
|
+
def get_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
|
2093
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
2094
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
|
2095
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TlsRoute
|
2096
|
+
command.params['name'] = name unless name.nil?
|
2097
|
+
command.query['fields'] = fields unless fields.nil?
|
2098
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2099
|
+
execute_or_queue_command(command, &block)
|
2100
|
+
end
|
2101
|
+
|
2102
|
+
# Lists TlsRoute in a given project and location.
|
2103
|
+
# @param [String] parent
|
2104
|
+
# Required. The project and location from which the TlsRoutes should be listed,
|
2105
|
+
# specified in the format `projects/*/locations/global`.
|
2106
|
+
# @param [Fixnum] page_size
|
2107
|
+
# Maximum number of TlsRoutes to return per call.
|
2108
|
+
# @param [String] page_token
|
2109
|
+
# The value returned by the last `ListTlsRoutesResponse` Indicates that this is
|
2110
|
+
# a continuation of a prior `ListRouters` call, and that the system should
|
2111
|
+
# return the next page of data.
|
2112
|
+
# @param [String] fields
|
2113
|
+
# Selector specifying which fields to include in a partial response.
|
2114
|
+
# @param [String] quota_user
|
2115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2117
|
+
# @param [Google::Apis::RequestOptions] options
|
2118
|
+
# Request-specific options
|
2119
|
+
#
|
2120
|
+
# @yield [result, err] Result & error if block supplied
|
2121
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse] parsed result object
|
2122
|
+
# @yieldparam err [StandardError] error object if request failed
|
2123
|
+
#
|
2124
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse]
|
2125
|
+
#
|
2126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2129
|
+
def list_project_location_tls_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2130
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/tlsRoutes', options)
|
2131
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse::Representation
|
2132
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse
|
2133
|
+
command.params['parent'] = parent unless parent.nil?
|
2134
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2135
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2136
|
+
command.query['fields'] = fields unless fields.nil?
|
2137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2138
|
+
execute_or_queue_command(command, &block)
|
2139
|
+
end
|
2140
|
+
|
2141
|
+
# Updates the parameters of a single TlsRoute.
|
2142
|
+
# @param [String] name
|
2143
|
+
# Required. Name of the TlsRoute resource. It matches pattern `projects/*/
|
2144
|
+
# locations/global/tlsRoutes/tls_route_name>`.
|
2145
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TlsRoute] tls_route_object
|
2146
|
+
# @param [String] update_mask
|
2147
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
2148
|
+
# TlsRoute resource by the update. The fields specified in the update_mask are
|
2149
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
2150
|
+
# it is in the mask. If the user does not provide a mask then all fields will be
|
2151
|
+
# overwritten.
|
2152
|
+
# @param [String] fields
|
2153
|
+
# Selector specifying which fields to include in a partial response.
|
2154
|
+
# @param [String] quota_user
|
2155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2157
|
+
# @param [Google::Apis::RequestOptions] options
|
2158
|
+
# Request-specific options
|
2159
|
+
#
|
2160
|
+
# @yield [result, err] Result & error if block supplied
|
2161
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
2162
|
+
# @yieldparam err [StandardError] error object if request failed
|
2163
|
+
#
|
2164
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
2165
|
+
#
|
2166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2169
|
+
def patch_project_location_tls_route(name, tls_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2170
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
2171
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
|
2172
|
+
command.request_object = tls_route_object
|
2173
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
2174
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
2175
|
+
command.params['name'] = name unless name.nil?
|
2176
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
865
2177
|
command.query['fields'] = fields unless fields.nil?
|
866
2178
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
867
2179
|
execute_or_queue_command(command, &block)
|