google-apis-networkservices_v1beta1 0.8.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,8 +84,8 @@ module Google
84
84
  # The resource that owns the locations collection, if applicable.
85
85
  # @param [String] filter
86
86
  # A filter to narrow down results to a preferred subset. The filtering language
87
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
- # AIP-160](https://google.aip.dev/160).
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
89
  # @param [Fixnum] page_size
90
90
  # The maximum number of results to return. If not set, the service selects a
91
91
  # default.
@@ -420,17 +420,13 @@ module Google
420
420
  execute_or_queue_command(command, &block)
421
421
  end
422
422
 
423
- # Starts asynchronous cancellation on a long-running operation. The server makes
424
- # a best effort to cancel the operation, but success is not guaranteed. If the
425
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
426
- # Clients can use Operations.GetOperation or other methods to check whether the
427
- # cancellation succeeded or whether the operation completed despite cancellation.
428
- # On successful cancellation, the operation is not deleted; instead, it becomes
429
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
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::Empty] parsed result object
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::Empty]
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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
452
- command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
453
- command.request_representation = Google::Apis::NetworkservicesV1beta1::CancelOperationRequest::Representation
454
- command.request_object = cancel_operation_request_object
455
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
456
- command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
457
- command.params['name'] = name unless name.nil?
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 long-running operation. This method indicates that the client is no
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
- # The name of the operation resource to be deleted.
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::Empty] parsed result object
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::Empty]
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 delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
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::Empty::Representation
489
- command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
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 the latest state of a long-running operation. Clients can use this method
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
- # The name of the operation resource.
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::Operation] parsed result object
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::Operation]
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 get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
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::Operation::Representation
520
- command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
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
- # Lists operations that match the specified filter in the request. If the server
528
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
529
- # binding allows API services to override the binding to use different resource
530
- # name schemes, such as `users/*/operations`. To override the binding, API
531
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
532
- # service configuration. For backwards compatibility, the default name includes
533
- # the operations collection id, however overriding users must ensure the name
534
- # binding is the parent resource, without the operations collection id.
535
- # @param [String] name
536
- # The name of the operation's parent resource.
537
- # @param [String] filter
538
- # The standard list filter.
539
- # @param [Fixnum] page_size
540
- # The standard list page size.
541
- # @param [String] page_token
542
- # The standard list page token.
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::ListOperationsResponse] parsed result object
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::ListOperationsResponse]
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 list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
561
- command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
562
- command.response_representation = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse::Representation
563
- command.response_class = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse
564
- command.params['name'] = name unless name.nil?
565
- command.query['filter'] = filter unless filter.nil?
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
- # Creates a new ServiceBinding in a given project and location.
566
+ # Lists Gateways in a given project and location.
574
567
  # @param [String] parent
575
- # Required. The parent resource of the ServiceBinding. Must be in the format `
576
- # projects/*/locations/global`.
577
- # @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
578
- # @param [String] service_binding_id
579
- # Required. Short name of the ServiceBinding resource to be created.
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::Operation] parsed result object
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::Operation]
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 create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
598
- command = make_simple_command(:post, 'v1beta1/{+parent}/serviceBindings', options)
599
- command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
600
- command.request_object = service_binding_object
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['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
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
- # Deletes a single ServiceBinding.
605
+ # Updates the parameters of a single Gateway.
611
606
  # @param [String] name
612
- # Required. A name of the ServiceBinding to delete. Must be in the format `
613
- # projects/*/locations/global/serviceBindings/*`.
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 delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
632
- command = make_simple_command(:delete, 'v1beta1/{+name}', options)
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
- # Gets details of a single ServiceBinding.
642
- # @param [String] name
643
- # Required. A name of the ServiceBinding to get. Must be in the format `projects/
644
- # */locations/global/serviceBindings/*`.
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::ServiceBinding] parsed result object
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::ServiceBinding]
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 get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
663
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
664
- command.response_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
665
- command.response_class = Google::Apis::NetworkservicesV1beta1::ServiceBinding
666
- command.params['name'] = name unless name.nil?
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
- # Gets the access control policy for a resource. Returns an empty policy if the
673
- # resource exists and does not have a policy set.
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 [Fixnum] options_requested_policy_version
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::Policy] parsed result object
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::Policy]
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 get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
706
- command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
707
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
708
- command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
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
- # Lists ServiceBinding in a given project and location.
720
+ # Creates a new GrpcRoute in a given project and location.
717
721
  # @param [String] parent
718
- # Required. The project and location from which the ServiceBindings should be
719
- # listed, specified in the format `projects/*/locations/global`.
720
- # @param [Fixnum] page_size
721
- # Maximum number of ServiceBindings to return per call.
722
- # @param [String] page_token
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::ListServiceBindingsResponse] parsed result object
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::ListServiceBindingsResponse]
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 list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
744
- command = make_simple_command(:get, 'v1beta1/{+parent}/serviceBindings', options)
745
- command.response_representation = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse::Representation
746
- command.response_class = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse
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['pageSize'] = page_size unless page_size.nil?
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
- # Updates the parameters of a single ServiceBinding.
757
+ # Deletes a single GrpcRoute.
756
758
  # @param [String] name
757
- # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/
758
- # locations/global/serviceBindings/service_binding_name>`.
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 patch_project_location_service_binding(name, service_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
784
- command = make_simple_command(:patch, 'v1beta1/{+name}', options)
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
- # Sets the access control policy on the specified resource. Replaces any
797
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
798
- # PERMISSION_DENIED` errors.
799
- # @param [String] resource
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::Policy] parsed result object
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::Policy]
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 set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
821
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
822
- command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
823
- command.request_object = set_iam_policy_request_object
824
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
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
- # Returns permissions that a caller has on the specified resource. If the
833
- # resource does not exist, this will return an empty set of permissions, not a `
834
- # NOT_FOUND` error. Note: This operation is designed to be used for building
835
- # permission-aware UIs and command-line tools, not for authorization checking.
836
- # This operation may "fail open" without warning.
837
- # @param [String] resource
838
- # REQUIRED: The resource for which the policy detail is being requested. See the
839
- # operation documentation for the appropriate value for this field.
840
- # @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
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,18 +835,941 @@ 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::TestIamPermissionsResponse] parsed result object
838
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse] parsed result object
851
839
  # @yieldparam err [StandardError] error object if request failed
852
840
  #
853
- # @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
841
+ # @return [Google::Apis::NetworkservicesV1beta1::ListGrpcRoutesResponse]
854
842
  #
855
843
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
844
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
845
  # @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
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
+ # Sets the access control policy on the specified resource. Replaces any
1708
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1709
+ # PERMISSION_DENIED` errors.
1710
+ # @param [String] resource
1711
+ # REQUIRED: The resource for which the policy is being specified. See the
1712
+ # operation documentation for the appropriate value for this field.
1713
+ # @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1714
+ # @param [String] fields
1715
+ # Selector specifying which fields to include in a partial response.
1716
+ # @param [String] quota_user
1717
+ # Available to use for quota purposes for server-side applications. Can be any
1718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1719
+ # @param [Google::Apis::RequestOptions] options
1720
+ # Request-specific options
1721
+ #
1722
+ # @yield [result, err] Result & error if block supplied
1723
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
1724
+ # @yieldparam err [StandardError] error object if request failed
1725
+ #
1726
+ # @return [Google::Apis::NetworkservicesV1beta1::Policy]
1727
+ #
1728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1731
+ def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1732
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1733
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
1734
+ command.request_object = set_iam_policy_request_object
1735
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
1736
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
1737
+ command.params['resource'] = resource unless resource.nil?
1738
+ command.query['fields'] = fields unless fields.nil?
1739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1740
+ execute_or_queue_command(command, &block)
1741
+ end
1742
+
1743
+ # Returns permissions that a caller has on the specified resource. If the
1744
+ # resource does not exist, this will return an empty set of permissions, not a `
1745
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1746
+ # permission-aware UIs and command-line tools, not for authorization checking.
1747
+ # This operation may "fail open" without warning.
1748
+ # @param [String] resource
1749
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1750
+ # operation documentation for the appropriate value for this field.
1751
+ # @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1752
+ # @param [String] fields
1753
+ # Selector specifying which fields to include in a partial response.
1754
+ # @param [String] quota_user
1755
+ # Available to use for quota purposes for server-side applications. Can be any
1756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1757
+ # @param [Google::Apis::RequestOptions] options
1758
+ # Request-specific options
1759
+ #
1760
+ # @yield [result, err] Result & error if block supplied
1761
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
1762
+ # @yieldparam err [StandardError] error object if request failed
1763
+ #
1764
+ # @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
1765
+ #
1766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1769
+ def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1770
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1771
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
1772
+ command.request_object = test_iam_permissions_request_object
862
1773
  command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
863
1774
  command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
864
1775
  command.params['resource'] = resource unless resource.nil?
@@ -866,6 +1777,366 @@ module Google
866
1777
  command.query['quotaUser'] = quota_user unless quota_user.nil?
867
1778
  execute_or_queue_command(command, &block)
868
1779
  end
1780
+
1781
+ # Creates a new TcpRoute in a given project and location.
1782
+ # @param [String] parent
1783
+ # Required. The parent resource of the TcpRoute. Must be in the format `projects/
1784
+ # */locations/global`.
1785
+ # @param [Google::Apis::NetworkservicesV1beta1::TcpRoute] tcp_route_object
1786
+ # @param [String] tcp_route_id
1787
+ # Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an
1788
+ # example).
1789
+ # @param [String] fields
1790
+ # Selector specifying which fields to include in a partial response.
1791
+ # @param [String] quota_user
1792
+ # Available to use for quota purposes for server-side applications. Can be any
1793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1794
+ # @param [Google::Apis::RequestOptions] options
1795
+ # Request-specific options
1796
+ #
1797
+ # @yield [result, err] Result & error if block supplied
1798
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
1799
+ # @yieldparam err [StandardError] error object if request failed
1800
+ #
1801
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
1802
+ #
1803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1806
+ def create_project_location_tcp_route(parent, tcp_route_object = nil, tcp_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1807
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tcpRoutes', options)
1808
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
1809
+ command.request_object = tcp_route_object
1810
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
1811
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
1812
+ command.params['parent'] = parent unless parent.nil?
1813
+ command.query['tcpRouteId'] = tcp_route_id unless tcp_route_id.nil?
1814
+ command.query['fields'] = fields unless fields.nil?
1815
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1816
+ execute_or_queue_command(command, &block)
1817
+ end
1818
+
1819
+ # Deletes a single TcpRoute.
1820
+ # @param [String] name
1821
+ # Required. A name of the TcpRoute to delete. Must be in the format `projects/*/
1822
+ # locations/global/tcpRoutes/*`.
1823
+ # @param [String] fields
1824
+ # Selector specifying which fields to include in a partial response.
1825
+ # @param [String] quota_user
1826
+ # Available to use for quota purposes for server-side applications. Can be any
1827
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1828
+ # @param [Google::Apis::RequestOptions] options
1829
+ # Request-specific options
1830
+ #
1831
+ # @yield [result, err] Result & error if block supplied
1832
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
1833
+ # @yieldparam err [StandardError] error object if request failed
1834
+ #
1835
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
1836
+ #
1837
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1838
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1839
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1840
+ def delete_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
1841
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1842
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
1843
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
1844
+ command.params['name'] = name unless name.nil?
1845
+ command.query['fields'] = fields unless fields.nil?
1846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1847
+ execute_or_queue_command(command, &block)
1848
+ end
1849
+
1850
+ # Gets details of a single TcpRoute.
1851
+ # @param [String] name
1852
+ # Required. A name of the TcpRoute to get. Must be in the format `projects/*/
1853
+ # locations/global/tcpRoutes/*`.
1854
+ # @param [String] fields
1855
+ # Selector specifying which fields to include in a partial response.
1856
+ # @param [String] quota_user
1857
+ # Available to use for quota purposes for server-side applications. Can be any
1858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1859
+ # @param [Google::Apis::RequestOptions] options
1860
+ # Request-specific options
1861
+ #
1862
+ # @yield [result, err] Result & error if block supplied
1863
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::TcpRoute] parsed result object
1864
+ # @yieldparam err [StandardError] error object if request failed
1865
+ #
1866
+ # @return [Google::Apis::NetworkservicesV1beta1::TcpRoute]
1867
+ #
1868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1871
+ def get_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
1872
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1873
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
1874
+ command.response_class = Google::Apis::NetworkservicesV1beta1::TcpRoute
1875
+ command.params['name'] = name unless name.nil?
1876
+ command.query['fields'] = fields unless fields.nil?
1877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1878
+ execute_or_queue_command(command, &block)
1879
+ end
1880
+
1881
+ # Lists TcpRoute in a given project and location.
1882
+ # @param [String] parent
1883
+ # Required. The project and location from which the TcpRoutes should be listed,
1884
+ # specified in the format `projects/*/locations/global`.
1885
+ # @param [Fixnum] page_size
1886
+ # Maximum number of TcpRoutes to return per call.
1887
+ # @param [String] page_token
1888
+ # The value returned by the last `ListTcpRoutesResponse` Indicates that this is
1889
+ # a continuation of a prior `ListRouters` call, and that the system should
1890
+ # return the next page of data.
1891
+ # @param [String] fields
1892
+ # Selector specifying which fields to include in a partial response.
1893
+ # @param [String] quota_user
1894
+ # Available to use for quota purposes for server-side applications. Can be any
1895
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1896
+ # @param [Google::Apis::RequestOptions] options
1897
+ # Request-specific options
1898
+ #
1899
+ # @yield [result, err] Result & error if block supplied
1900
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse] parsed result object
1901
+ # @yieldparam err [StandardError] error object if request failed
1902
+ #
1903
+ # @return [Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse]
1904
+ #
1905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1908
+ def list_project_location_tcp_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1909
+ command = make_simple_command(:get, 'v1beta1/{+parent}/tcpRoutes', options)
1910
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse::Representation
1911
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListTcpRoutesResponse
1912
+ command.params['parent'] = parent unless parent.nil?
1913
+ command.query['pageSize'] = page_size unless page_size.nil?
1914
+ command.query['pageToken'] = page_token unless page_token.nil?
1915
+ command.query['fields'] = fields unless fields.nil?
1916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1917
+ execute_or_queue_command(command, &block)
1918
+ end
1919
+
1920
+ # Updates the parameters of a single TcpRoute.
1921
+ # @param [String] name
1922
+ # Required. Name of the TcpRoute resource. It matches pattern `projects/*/
1923
+ # locations/global/tcpRoutes/tcp_route_name>`.
1924
+ # @param [Google::Apis::NetworkservicesV1beta1::TcpRoute] tcp_route_object
1925
+ # @param [String] update_mask
1926
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1927
+ # TcpRoute resource by the update. The fields specified in the update_mask are
1928
+ # relative to the resource, not the full request. A field will be overwritten if
1929
+ # it is in the mask. If the user does not provide a mask then all fields will be
1930
+ # overwritten.
1931
+ # @param [String] fields
1932
+ # Selector specifying which fields to include in a partial response.
1933
+ # @param [String] quota_user
1934
+ # Available to use for quota purposes for server-side applications. Can be any
1935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1936
+ # @param [Google::Apis::RequestOptions] options
1937
+ # Request-specific options
1938
+ #
1939
+ # @yield [result, err] Result & error if block supplied
1940
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
1941
+ # @yieldparam err [StandardError] error object if request failed
1942
+ #
1943
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
1944
+ #
1945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1948
+ def patch_project_location_tcp_route(name, tcp_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1949
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1950
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TcpRoute::Representation
1951
+ command.request_object = tcp_route_object
1952
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
1953
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
1954
+ command.params['name'] = name unless name.nil?
1955
+ command.query['updateMask'] = update_mask unless update_mask.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
+ # Creates a new TlsRoute in a given project and location.
1962
+ # @param [String] parent
1963
+ # Required. The parent resource of the TlsRoute. Must be in the format `projects/
1964
+ # */locations/global`.
1965
+ # @param [Google::Apis::NetworkservicesV1beta1::TlsRoute] tls_route_object
1966
+ # @param [String] tls_route_id
1967
+ # Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an
1968
+ # example).
1969
+ # @param [String] fields
1970
+ # Selector specifying which fields to include in a partial response.
1971
+ # @param [String] quota_user
1972
+ # Available to use for quota purposes for server-side applications. Can be any
1973
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1974
+ # @param [Google::Apis::RequestOptions] options
1975
+ # Request-specific options
1976
+ #
1977
+ # @yield [result, err] Result & error if block supplied
1978
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
1979
+ # @yieldparam err [StandardError] error object if request failed
1980
+ #
1981
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
1982
+ #
1983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1986
+ def create_project_location_tls_route(parent, tls_route_object = nil, tls_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1987
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tlsRoutes', options)
1988
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
1989
+ command.request_object = tls_route_object
1990
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
1991
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
1992
+ command.params['parent'] = parent unless parent.nil?
1993
+ command.query['tlsRouteId'] = tls_route_id unless tls_route_id.nil?
1994
+ command.query['fields'] = fields unless fields.nil?
1995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1996
+ execute_or_queue_command(command, &block)
1997
+ end
1998
+
1999
+ # Deletes a single TlsRoute.
2000
+ # @param [String] name
2001
+ # Required. A name of the TlsRoute to delete. Must be in the format `projects/*/
2002
+ # locations/global/tlsRoutes/*`.
2003
+ # @param [String] fields
2004
+ # Selector specifying which fields to include in a partial response.
2005
+ # @param [String] quota_user
2006
+ # Available to use for quota purposes for server-side applications. Can be any
2007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2008
+ # @param [Google::Apis::RequestOptions] options
2009
+ # Request-specific options
2010
+ #
2011
+ # @yield [result, err] Result & error if block supplied
2012
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2013
+ # @yieldparam err [StandardError] error object if request failed
2014
+ #
2015
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2016
+ #
2017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2020
+ def delete_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
2021
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2022
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2023
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2024
+ command.params['name'] = name unless name.nil?
2025
+ command.query['fields'] = fields unless fields.nil?
2026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2027
+ execute_or_queue_command(command, &block)
2028
+ end
2029
+
2030
+ # Gets details of a single TlsRoute.
2031
+ # @param [String] name
2032
+ # Required. A name of the TlsRoute to get. Must be in the format `projects/*/
2033
+ # locations/global/tlsRoutes/*`.
2034
+ # @param [String] fields
2035
+ # Selector specifying which fields to include in a partial response.
2036
+ # @param [String] quota_user
2037
+ # Available to use for quota purposes for server-side applications. Can be any
2038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2039
+ # @param [Google::Apis::RequestOptions] options
2040
+ # Request-specific options
2041
+ #
2042
+ # @yield [result, err] Result & error if block supplied
2043
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::TlsRoute] parsed result object
2044
+ # @yieldparam err [StandardError] error object if request failed
2045
+ #
2046
+ # @return [Google::Apis::NetworkservicesV1beta1::TlsRoute]
2047
+ #
2048
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2049
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2050
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2051
+ def get_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
2052
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2053
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
2054
+ command.response_class = Google::Apis::NetworkservicesV1beta1::TlsRoute
2055
+ command.params['name'] = name unless name.nil?
2056
+ command.query['fields'] = fields unless fields.nil?
2057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2058
+ execute_or_queue_command(command, &block)
2059
+ end
2060
+
2061
+ # Lists TlsRoute in a given project and location.
2062
+ # @param [String] parent
2063
+ # Required. The project and location from which the TlsRoutes should be listed,
2064
+ # specified in the format `projects/*/locations/global`.
2065
+ # @param [Fixnum] page_size
2066
+ # Maximum number of TlsRoutes to return per call.
2067
+ # @param [String] page_token
2068
+ # The value returned by the last `ListTlsRoutesResponse` Indicates that this is
2069
+ # a continuation of a prior `ListRouters` call, and that the system should
2070
+ # return the next page of data.
2071
+ # @param [String] fields
2072
+ # Selector specifying which fields to include in a partial response.
2073
+ # @param [String] quota_user
2074
+ # Available to use for quota purposes for server-side applications. Can be any
2075
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2076
+ # @param [Google::Apis::RequestOptions] options
2077
+ # Request-specific options
2078
+ #
2079
+ # @yield [result, err] Result & error if block supplied
2080
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse] parsed result object
2081
+ # @yieldparam err [StandardError] error object if request failed
2082
+ #
2083
+ # @return [Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse]
2084
+ #
2085
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2086
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2087
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2088
+ def list_project_location_tls_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2089
+ command = make_simple_command(:get, 'v1beta1/{+parent}/tlsRoutes', options)
2090
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse::Representation
2091
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListTlsRoutesResponse
2092
+ command.params['parent'] = parent unless parent.nil?
2093
+ command.query['pageSize'] = page_size unless page_size.nil?
2094
+ command.query['pageToken'] = page_token unless page_token.nil?
2095
+ command.query['fields'] = fields unless fields.nil?
2096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2097
+ execute_or_queue_command(command, &block)
2098
+ end
2099
+
2100
+ # Updates the parameters of a single TlsRoute.
2101
+ # @param [String] name
2102
+ # Required. Name of the TlsRoute resource. It matches pattern `projects/*/
2103
+ # locations/global/tlsRoutes/tls_route_name>`.
2104
+ # @param [Google::Apis::NetworkservicesV1beta1::TlsRoute] tls_route_object
2105
+ # @param [String] update_mask
2106
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2107
+ # TlsRoute resource by the update. The fields specified in the update_mask are
2108
+ # relative to the resource, not the full request. A field will be overwritten if
2109
+ # it is in the mask. If the user does not provide a mask then all fields will be
2110
+ # overwritten.
2111
+ # @param [String] fields
2112
+ # Selector specifying which fields to include in a partial response.
2113
+ # @param [String] quota_user
2114
+ # Available to use for quota purposes for server-side applications. Can be any
2115
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2116
+ # @param [Google::Apis::RequestOptions] options
2117
+ # Request-specific options
2118
+ #
2119
+ # @yield [result, err] Result & error if block supplied
2120
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2121
+ # @yieldparam err [StandardError] error object if request failed
2122
+ #
2123
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2124
+ #
2125
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2126
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2127
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2128
+ def patch_project_location_tls_route(name, tls_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2129
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2130
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TlsRoute::Representation
2131
+ command.request_object = tls_route_object
2132
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2133
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2134
+ command.params['name'] = name unless name.nil?
2135
+ command.query['updateMask'] = update_mask unless update_mask.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
869
2140
 
870
2141
  protected
871
2142