google-apis-networkservices_v1 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -786,17 +786,13 @@ module Google
786
786
  execute_or_queue_command(command, &block)
787
787
  end
788
788
 
789
- # Starts asynchronous cancellation on a long-running operation. The server makes
790
- # a best effort to cancel the operation, but success is not guaranteed. If the
791
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
792
- # Clients can use Operations.GetOperation or other methods to check whether the
793
- # cancellation succeeded or whether the operation completed despite cancellation.
794
- # On successful cancellation, the operation is not deleted; instead, it becomes
795
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
796
- # corresponding to `Code.CANCELLED`.
797
- # @param [String] name
798
- # The name of the operation resource to be cancelled.
799
- # @param [Google::Apis::NetworkservicesV1::CancelOperationRequest] cancel_operation_request_object
789
+ # Creates a new Gateway in a given project and location.
790
+ # @param [String] parent
791
+ # Required. The parent resource of the Gateway. Must be in the format `projects/*
792
+ # /locations/*`.
793
+ # @param [Google::Apis::NetworkservicesV1::Gateway] gateway_object
794
+ # @param [String] gateway_id
795
+ # Required. Short name of the Gateway resource to be created.
800
796
  # @param [String] fields
801
797
  # Selector specifying which fields to include in a partial response.
802
798
  # @param [String] quota_user
@@ -806,32 +802,31 @@ module Google
806
802
  # Request-specific options
807
803
  #
808
804
  # @yield [result, err] Result & error if block supplied
809
- # @yieldparam result [Google::Apis::NetworkservicesV1::Empty] parsed result object
805
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
810
806
  # @yieldparam err [StandardError] error object if request failed
811
807
  #
812
- # @return [Google::Apis::NetworkservicesV1::Empty]
808
+ # @return [Google::Apis::NetworkservicesV1::Operation]
813
809
  #
814
810
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
811
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
812
  # @raise [Google::Apis::AuthorizationError] Authorization is required
817
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
818
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
819
- command.request_representation = Google::Apis::NetworkservicesV1::CancelOperationRequest::Representation
820
- command.request_object = cancel_operation_request_object
821
- command.response_representation = Google::Apis::NetworkservicesV1::Empty::Representation
822
- command.response_class = Google::Apis::NetworkservicesV1::Empty
823
- command.params['name'] = name unless name.nil?
813
+ def create_project_location_gateway(parent, gateway_object = nil, gateway_id: nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:post, 'v1/{+parent}/gateways', options)
815
+ command.request_representation = Google::Apis::NetworkservicesV1::Gateway::Representation
816
+ command.request_object = gateway_object
817
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
818
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
819
+ command.params['parent'] = parent unless parent.nil?
820
+ command.query['gatewayId'] = gateway_id unless gateway_id.nil?
824
821
  command.query['fields'] = fields unless fields.nil?
825
822
  command.query['quotaUser'] = quota_user unless quota_user.nil?
826
823
  execute_or_queue_command(command, &block)
827
824
  end
828
825
 
829
- # Deletes a long-running operation. This method indicates that the client is no
830
- # longer interested in the operation result. It does not cancel the operation.
831
- # If the server doesn't support this method, it returns `google.rpc.Code.
832
- # UNIMPLEMENTED`.
826
+ # Deletes a single Gateway.
833
827
  # @param [String] name
834
- # The name of the operation resource to be deleted.
828
+ # Required. A name of the Gateway to delete. Must be in the format `projects/*/
829
+ # locations/*/gateways/*`.
835
830
  # @param [String] fields
836
831
  # Selector specifying which fields to include in a partial response.
837
832
  # @param [String] quota_user
@@ -841,28 +836,28 @@ module Google
841
836
  # Request-specific options
842
837
  #
843
838
  # @yield [result, err] Result & error if block supplied
844
- # @yieldparam result [Google::Apis::NetworkservicesV1::Empty] parsed result object
839
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
845
840
  # @yieldparam err [StandardError] error object if request failed
846
841
  #
847
- # @return [Google::Apis::NetworkservicesV1::Empty]
842
+ # @return [Google::Apis::NetworkservicesV1::Operation]
848
843
  #
849
844
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
845
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
846
  # @raise [Google::Apis::AuthorizationError] Authorization is required
852
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
847
+ def delete_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
853
848
  command = make_simple_command(:delete, 'v1/{+name}', options)
854
- command.response_representation = Google::Apis::NetworkservicesV1::Empty::Representation
855
- command.response_class = Google::Apis::NetworkservicesV1::Empty
849
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
850
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
856
851
  command.params['name'] = name unless name.nil?
857
852
  command.query['fields'] = fields unless fields.nil?
858
853
  command.query['quotaUser'] = quota_user unless quota_user.nil?
859
854
  execute_or_queue_command(command, &block)
860
855
  end
861
856
 
862
- # Gets the latest state of a long-running operation. Clients can use this method
863
- # to poll the operation result at intervals as recommended by the API service.
857
+ # Gets details of a single Gateway.
864
858
  # @param [String] name
865
- # The name of the operation resource.
859
+ # Required. A name of the Gateway to get. Must be in the format `projects/*/
860
+ # locations/*/gateways/*`.
866
861
  # @param [String] fields
867
862
  # Selector specifying which fields to include in a partial response.
868
863
  # @param [String] quota_user
@@ -872,40 +867,41 @@ module Google
872
867
  # Request-specific options
873
868
  #
874
869
  # @yield [result, err] Result & error if block supplied
875
- # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
870
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Gateway] parsed result object
876
871
  # @yieldparam err [StandardError] error object if request failed
877
872
  #
878
- # @return [Google::Apis::NetworkservicesV1::Operation]
873
+ # @return [Google::Apis::NetworkservicesV1::Gateway]
879
874
  #
880
875
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
881
876
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
882
877
  # @raise [Google::Apis::AuthorizationError] Authorization is required
883
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
878
+ def get_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
884
879
  command = make_simple_command(:get, 'v1/{+name}', options)
885
- command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
886
- command.response_class = Google::Apis::NetworkservicesV1::Operation
880
+ command.response_representation = Google::Apis::NetworkservicesV1::Gateway::Representation
881
+ command.response_class = Google::Apis::NetworkservicesV1::Gateway
887
882
  command.params['name'] = name unless name.nil?
888
883
  command.query['fields'] = fields unless fields.nil?
889
884
  command.query['quotaUser'] = quota_user unless quota_user.nil?
890
885
  execute_or_queue_command(command, &block)
891
886
  end
892
887
 
893
- # Lists operations that match the specified filter in the request. If the server
894
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
895
- # binding allows API services to override the binding to use different resource
896
- # name schemes, such as `users/*/operations`. To override the binding, API
897
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
898
- # service configuration. For backwards compatibility, the default name includes
899
- # the operations collection id, however overriding users must ensure the name
900
- # binding is the parent resource, without the operations collection id.
901
- # @param [String] name
902
- # The name of the operation's parent resource.
903
- # @param [String] filter
904
- # The standard list filter.
905
- # @param [Fixnum] page_size
906
- # The standard list page size.
907
- # @param [String] page_token
908
- # The standard list page token.
888
+ # Gets the access control policy for a resource. Returns an empty policy if the
889
+ # resource exists and does not have a policy set.
890
+ # @param [String] resource
891
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
892
+ # names](https://cloud.google.com/apis/design/resource_names) for the
893
+ # appropriate value for this field.
894
+ # @param [Fixnum] options_requested_policy_version
895
+ # Optional. The maximum policy version that will be used to format the policy.
896
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
897
+ # rejected. Requests for policies with any conditional role bindings must
898
+ # specify version 3. Policies with no conditional role bindings may specify any
899
+ # valid value or leave the field unset. The policy in the response might use the
900
+ # policy version that you specified, or it might use a lower policy version. For
901
+ # example, if you specify version 3, but the policy has no conditional role
902
+ # bindings, the response uses version 1. To learn which resources support
903
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
904
+ # google.com/iam/help/conditions/resource-policies).
909
905
  # @param [String] fields
910
906
  # Selector specifying which fields to include in a partial response.
911
907
  # @param [String] quota_user
@@ -915,34 +911,35 @@ module Google
915
911
  # Request-specific options
916
912
  #
917
913
  # @yield [result, err] Result & error if block supplied
918
- # @yieldparam result [Google::Apis::NetworkservicesV1::ListOperationsResponse] parsed result object
914
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
919
915
  # @yieldparam err [StandardError] error object if request failed
920
916
  #
921
- # @return [Google::Apis::NetworkservicesV1::ListOperationsResponse]
917
+ # @return [Google::Apis::NetworkservicesV1::Policy]
922
918
  #
923
919
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
920
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
921
  # @raise [Google::Apis::AuthorizationError] Authorization is required
926
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
927
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
928
- command.response_representation = Google::Apis::NetworkservicesV1::ListOperationsResponse::Representation
929
- command.response_class = Google::Apis::NetworkservicesV1::ListOperationsResponse
930
- command.params['name'] = name unless name.nil?
931
- command.query['filter'] = filter unless filter.nil?
932
- command.query['pageSize'] = page_size unless page_size.nil?
933
- command.query['pageToken'] = page_token unless page_token.nil?
922
+ def get_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
923
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
924
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
925
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
926
+ command.params['resource'] = resource unless resource.nil?
927
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
934
928
  command.query['fields'] = fields unless fields.nil?
935
929
  command.query['quotaUser'] = quota_user unless quota_user.nil?
936
930
  execute_or_queue_command(command, &block)
937
931
  end
938
932
 
939
- # Creates a new ServiceBinding in a given project and location.
933
+ # Lists Gateways in a given project and location.
940
934
  # @param [String] parent
941
- # Required. The parent resource of the ServiceBinding. Must be in the format `
942
- # projects/*/locations/global`.
943
- # @param [Google::Apis::NetworkservicesV1::ServiceBinding] service_binding_object
944
- # @param [String] service_binding_id
945
- # Required. Short name of the ServiceBinding resource to be created.
935
+ # Required. The project and location from which the Gateways should be listed,
936
+ # specified in the format `projects/*/locations/*`.
937
+ # @param [Fixnum] page_size
938
+ # Maximum number of Gateways to return per call.
939
+ # @param [String] page_token
940
+ # The value returned by the last `ListGatewaysResponse` Indicates that this is a
941
+ # continuation of a prior `ListGateways` call, and that the system should return
942
+ # the next page of data.
946
943
  # @param [String] fields
947
944
  # Selector specifying which fields to include in a partial response.
948
945
  # @param [String] quota_user
@@ -952,31 +949,37 @@ module Google
952
949
  # Request-specific options
953
950
  #
954
951
  # @yield [result, err] Result & error if block supplied
955
- # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
952
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListGatewaysResponse] parsed result object
956
953
  # @yieldparam err [StandardError] error object if request failed
957
954
  #
958
- # @return [Google::Apis::NetworkservicesV1::Operation]
955
+ # @return [Google::Apis::NetworkservicesV1::ListGatewaysResponse]
959
956
  #
960
957
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
958
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
959
  # @raise [Google::Apis::AuthorizationError] Authorization is required
963
- def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
964
- command = make_simple_command(:post, 'v1/{+parent}/serviceBindings', options)
965
- command.request_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
966
- command.request_object = service_binding_object
967
- command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
968
- command.response_class = Google::Apis::NetworkservicesV1::Operation
960
+ def list_project_location_gateways(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
961
+ command = make_simple_command(:get, 'v1/{+parent}/gateways', options)
962
+ command.response_representation = Google::Apis::NetworkservicesV1::ListGatewaysResponse::Representation
963
+ command.response_class = Google::Apis::NetworkservicesV1::ListGatewaysResponse
969
964
  command.params['parent'] = parent unless parent.nil?
970
- command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
965
+ command.query['pageSize'] = page_size unless page_size.nil?
966
+ command.query['pageToken'] = page_token unless page_token.nil?
971
967
  command.query['fields'] = fields unless fields.nil?
972
968
  command.query['quotaUser'] = quota_user unless quota_user.nil?
973
969
  execute_or_queue_command(command, &block)
974
970
  end
975
971
 
976
- # Deletes a single ServiceBinding.
972
+ # Updates the parameters of a single Gateway.
977
973
  # @param [String] name
978
- # Required. A name of the ServiceBinding to delete. Must be in the format `
979
- # projects/*/locations/global/serviceBindings/*`.
974
+ # Required. Name of the Gateway resource. It matches pattern `projects/*/
975
+ # locations/*/gateways/`.
976
+ # @param [Google::Apis::NetworkservicesV1::Gateway] gateway_object
977
+ # @param [String] update_mask
978
+ # Optional. Field mask is used to specify the fields to be overwritten in the
979
+ # Gateway resource by the update. The fields specified in the update_mask are
980
+ # relative to the resource, not the full request. A field will be overwritten if
981
+ # it is in the mask. If the user does not provide a mask then all fields will be
982
+ # overwritten.
980
983
  # @param [String] fields
981
984
  # Selector specifying which fields to include in a partial response.
982
985
  # @param [String] quota_user
@@ -994,20 +997,27 @@ module Google
994
997
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
995
998
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
996
999
  # @raise [Google::Apis::AuthorizationError] Authorization is required
997
- def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
998
- command = make_simple_command(:delete, 'v1/{+name}', options)
1000
+ def patch_project_location_gateway(name, gateway_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1001
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1002
+ command.request_representation = Google::Apis::NetworkservicesV1::Gateway::Representation
1003
+ command.request_object = gateway_object
999
1004
  command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1000
1005
  command.response_class = Google::Apis::NetworkservicesV1::Operation
1001
1006
  command.params['name'] = name unless name.nil?
1007
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1002
1008
  command.query['fields'] = fields unless fields.nil?
1003
1009
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
1010
  execute_or_queue_command(command, &block)
1005
1011
  end
1006
1012
 
1007
- # Gets details of a single ServiceBinding.
1008
- # @param [String] name
1009
- # Required. A name of the ServiceBinding to get. Must be in the format `projects/
1010
- # */locations/global/serviceBindings/*`.
1013
+ # Sets the access control policy on the specified resource. Replaces any
1014
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1015
+ # PERMISSION_DENIED` errors.
1016
+ # @param [String] resource
1017
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1018
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1019
+ # appropriate value for this field.
1020
+ # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
1011
1021
  # @param [String] fields
1012
1022
  # Selector specifying which fields to include in a partial response.
1013
1023
  # @param [String] quota_user
@@ -1017,41 +1027,36 @@ module Google
1017
1027
  # Request-specific options
1018
1028
  #
1019
1029
  # @yield [result, err] Result & error if block supplied
1020
- # @yieldparam result [Google::Apis::NetworkservicesV1::ServiceBinding] parsed result object
1030
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1021
1031
  # @yieldparam err [StandardError] error object if request failed
1022
1032
  #
1023
- # @return [Google::Apis::NetworkservicesV1::ServiceBinding]
1033
+ # @return [Google::Apis::NetworkservicesV1::Policy]
1024
1034
  #
1025
1035
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1026
1036
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1027
1037
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1028
- def get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1029
- command = make_simple_command(:get, 'v1/{+name}', options)
1030
- command.response_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
1031
- command.response_class = Google::Apis::NetworkservicesV1::ServiceBinding
1032
- command.params['name'] = name unless name.nil?
1038
+ def set_gateway_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1039
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1040
+ command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
1041
+ command.request_object = set_iam_policy_request_object
1042
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1043
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
1044
+ command.params['resource'] = resource unless resource.nil?
1033
1045
  command.query['fields'] = fields unless fields.nil?
1034
1046
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1035
1047
  execute_or_queue_command(command, &block)
1036
1048
  end
1037
1049
 
1038
- # Gets the access control policy for a resource. Returns an empty policy if the
1039
- # resource exists and does not have a policy set.
1050
+ # Returns permissions that a caller has on the specified resource. If the
1051
+ # resource does not exist, this will return an empty set of permissions, not a `
1052
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1053
+ # permission-aware UIs and command-line tools, not for authorization checking.
1054
+ # This operation may "fail open" without warning.
1040
1055
  # @param [String] resource
1041
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1042
- # names](https://cloud.google.com/apis/design/resource_names) for the
1056
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1057
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1043
1058
  # appropriate value for this field.
1044
- # @param [Fixnum] options_requested_policy_version
1045
- # Optional. The maximum policy version that will be used to format the policy.
1046
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1047
- # rejected. Requests for policies with any conditional role bindings must
1048
- # specify version 3. Policies with no conditional role bindings may specify any
1049
- # valid value or leave the field unset. The policy in the response might use the
1050
- # policy version that you specified, or it might use a lower policy version. For
1051
- # example, if you specify version 3, but the policy has no conditional role
1052
- # bindings, the response uses version 1. To learn which resources support
1053
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1054
- # google.com/iam/help/conditions/resource-policies).
1059
+ # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1055
1060
  # @param [String] fields
1056
1061
  # Selector specifying which fields to include in a partial response.
1057
1062
  # @param [String] quota_user
@@ -1061,35 +1066,33 @@ module Google
1061
1066
  # Request-specific options
1062
1067
  #
1063
1068
  # @yield [result, err] Result & error if block supplied
1064
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1069
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
1065
1070
  # @yieldparam err [StandardError] error object if request failed
1066
1071
  #
1067
- # @return [Google::Apis::NetworkservicesV1::Policy]
1072
+ # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
1068
1073
  #
1069
1074
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1070
1075
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1071
1076
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1072
- def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1073
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1074
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1075
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1077
+ def test_gateway_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1078
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1079
+ command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
1080
+ command.request_object = test_iam_permissions_request_object
1081
+ command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
1082
+ command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
1076
1083
  command.params['resource'] = resource unless resource.nil?
1077
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1078
1084
  command.query['fields'] = fields unless fields.nil?
1079
1085
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1080
1086
  execute_or_queue_command(command, &block)
1081
1087
  end
1082
1088
 
1083
- # Lists ServiceBinding in a given project and location.
1089
+ # Creates a new GrpcRoute in a given project and location.
1084
1090
  # @param [String] parent
1085
- # Required. The project and location from which the ServiceBindings should be
1086
- # listed, specified in the format `projects/*/locations/global`.
1087
- # @param [Fixnum] page_size
1088
- # Maximum number of ServiceBindings to return per call.
1089
- # @param [String] page_token
1090
- # The value returned by the last `ListServiceBindingsResponse` Indicates that
1091
- # this is a continuation of a prior `ListRouters` call, and that the system
1092
- # should return the next page of data.
1091
+ # Required. The parent resource of the GrpcRoute. Must be in the format `
1092
+ # projects/*/locations/global`.
1093
+ # @param [Google::Apis::NetworkservicesV1::GrpcRoute] grpc_route_object
1094
+ # @param [String] grpc_route_id
1095
+ # Required. Short name of the GrpcRoute resource to be created.
1093
1096
  # @param [String] fields
1094
1097
  # Selector specifying which fields to include in a partial response.
1095
1098
  # @param [String] quota_user
@@ -1099,34 +1102,31 @@ module Google
1099
1102
  # Request-specific options
1100
1103
  #
1101
1104
  # @yield [result, err] Result & error if block supplied
1102
- # @yieldparam result [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse] parsed result object
1105
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1103
1106
  # @yieldparam err [StandardError] error object if request failed
1104
1107
  #
1105
- # @return [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse]
1108
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1106
1109
  #
1107
1110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1108
1111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1109
1112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1110
- def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1111
- command = make_simple_command(:get, 'v1/{+parent}/serviceBindings', options)
1112
- command.response_representation = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse::Representation
1113
- command.response_class = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse
1113
+ def create_project_location_grpc_route(parent, grpc_route_object = nil, grpc_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1114
+ command = make_simple_command(:post, 'v1/{+parent}/grpcRoutes', options)
1115
+ command.request_representation = Google::Apis::NetworkservicesV1::GrpcRoute::Representation
1116
+ command.request_object = grpc_route_object
1117
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1118
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1114
1119
  command.params['parent'] = parent unless parent.nil?
1115
- command.query['pageSize'] = page_size unless page_size.nil?
1116
- command.query['pageToken'] = page_token unless page_token.nil?
1120
+ command.query['grpcRouteId'] = grpc_route_id unless grpc_route_id.nil?
1117
1121
  command.query['fields'] = fields unless fields.nil?
1118
1122
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1119
1123
  execute_or_queue_command(command, &block)
1120
1124
  end
1121
1125
 
1122
- # Sets the access control policy on the specified resource. Replaces any
1123
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1124
- # PERMISSION_DENIED` errors.
1125
- # @param [String] resource
1126
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1127
- # names](https://cloud.google.com/apis/design/resource_names) for the
1128
- # appropriate value for this field.
1129
- # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
1126
+ # Deletes a single GrpcRoute.
1127
+ # @param [String] name
1128
+ # Required. A name of the GrpcRoute to delete. Must be in the format `projects/*/
1129
+ # locations/global/grpcRoutes/*`.
1130
1130
  # @param [String] fields
1131
1131
  # Selector specifying which fields to include in a partial response.
1132
1132
  # @param [String] quota_user
@@ -1136,36 +1136,28 @@ module Google
1136
1136
  # Request-specific options
1137
1137
  #
1138
1138
  # @yield [result, err] Result & error if block supplied
1139
- # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1139
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1140
1140
  # @yieldparam err [StandardError] error object if request failed
1141
1141
  #
1142
- # @return [Google::Apis::NetworkservicesV1::Policy]
1142
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1143
1143
  #
1144
1144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
1145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
1146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
- def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1148
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1149
- command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
1150
- command.request_object = set_iam_policy_request_object
1151
- command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1152
- command.response_class = Google::Apis::NetworkservicesV1::Policy
1153
- command.params['resource'] = resource unless resource.nil?
1147
+ def delete_project_location_grpc_route(name, fields: nil, quota_user: nil, options: nil, &block)
1148
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1149
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1150
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1151
+ command.params['name'] = name unless name.nil?
1154
1152
  command.query['fields'] = fields unless fields.nil?
1155
1153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
1154
  execute_or_queue_command(command, &block)
1157
1155
  end
1158
1156
 
1159
- # Returns permissions that a caller has on the specified resource. If the
1160
- # resource does not exist, this will return an empty set of permissions, not a `
1161
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1162
- # permission-aware UIs and command-line tools, not for authorization checking.
1163
- # This operation may "fail open" without warning.
1164
- # @param [String] resource
1165
- # REQUIRED: The resource for which the policy detail is being requested. See [
1166
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1167
- # appropriate value for this field.
1168
- # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1157
+ # Gets details of a single GrpcRoute.
1158
+ # @param [String] name
1159
+ # Required. A name of the GrpcRoute to get. Must be in the format `projects/*/
1160
+ # locations/global/grpcRoutes/*`.
1169
1161
  # @param [String] fields
1170
1162
  # Selector specifying which fields to include in a partial response.
1171
1163
  # @param [String] quota_user
@@ -1175,21 +1167,1347 @@ module Google
1175
1167
  # Request-specific options
1176
1168
  #
1177
1169
  # @yield [result, err] Result & error if block supplied
1178
- # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
1170
+ # @yieldparam result [Google::Apis::NetworkservicesV1::GrpcRoute] parsed result object
1179
1171
  # @yieldparam err [StandardError] error object if request failed
1180
1172
  #
1181
- # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
1173
+ # @return [Google::Apis::NetworkservicesV1::GrpcRoute]
1182
1174
  #
1183
1175
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1184
1176
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1185
1177
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1186
- def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1187
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1188
- command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
1189
- command.request_object = test_iam_permissions_request_object
1190
- command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
1191
- command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
1192
- command.params['resource'] = resource unless resource.nil?
1178
+ def get_project_location_grpc_route(name, fields: nil, quota_user: nil, options: nil, &block)
1179
+ command = make_simple_command(:get, 'v1/{+name}', options)
1180
+ command.response_representation = Google::Apis::NetworkservicesV1::GrpcRoute::Representation
1181
+ command.response_class = Google::Apis::NetworkservicesV1::GrpcRoute
1182
+ command.params['name'] = name unless name.nil?
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
+ execute_or_queue_command(command, &block)
1186
+ end
1187
+
1188
+ # Lists GrpcRoutes in a given project and location.
1189
+ # @param [String] parent
1190
+ # Required. The project and location from which the GrpcRoutes should be listed,
1191
+ # specified in the format `projects/*/locations/global`.
1192
+ # @param [Fixnum] page_size
1193
+ # Maximum number of GrpcRoutes to return per call.
1194
+ # @param [String] page_token
1195
+ # The value returned by the last `ListGrpcRoutesResponse` Indicates that this is
1196
+ # a continuation of a prior `ListGrpcRoutes` call, and that the system should
1197
+ # return the next page of data.
1198
+ # @param [String] fields
1199
+ # Selector specifying which fields to include in a partial response.
1200
+ # @param [String] quota_user
1201
+ # Available to use for quota purposes for server-side applications. Can be any
1202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1203
+ # @param [Google::Apis::RequestOptions] options
1204
+ # Request-specific options
1205
+ #
1206
+ # @yield [result, err] Result & error if block supplied
1207
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListGrpcRoutesResponse] parsed result object
1208
+ # @yieldparam err [StandardError] error object if request failed
1209
+ #
1210
+ # @return [Google::Apis::NetworkservicesV1::ListGrpcRoutesResponse]
1211
+ #
1212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
+ def list_project_location_grpc_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1216
+ command = make_simple_command(:get, 'v1/{+parent}/grpcRoutes', options)
1217
+ command.response_representation = Google::Apis::NetworkservicesV1::ListGrpcRoutesResponse::Representation
1218
+ command.response_class = Google::Apis::NetworkservicesV1::ListGrpcRoutesResponse
1219
+ command.params['parent'] = parent unless parent.nil?
1220
+ command.query['pageSize'] = page_size unless page_size.nil?
1221
+ command.query['pageToken'] = page_token unless page_token.nil?
1222
+ command.query['fields'] = fields unless fields.nil?
1223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1224
+ execute_or_queue_command(command, &block)
1225
+ end
1226
+
1227
+ # Updates the parameters of a single GrpcRoute.
1228
+ # @param [String] name
1229
+ # Required. Name of the GrpcRoute resource. It matches pattern `projects/*/
1230
+ # locations/global/grpcRoutes/`
1231
+ # @param [Google::Apis::NetworkservicesV1::GrpcRoute] grpc_route_object
1232
+ # @param [String] update_mask
1233
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1234
+ # GrpcRoute resource by the update. The fields specified in the update_mask are
1235
+ # relative to the resource, not the full request. A field will be overwritten if
1236
+ # it is in the mask. If the user does not provide a mask then all fields will be
1237
+ # overwritten.
1238
+ # @param [String] fields
1239
+ # Selector specifying which fields to include in a partial response.
1240
+ # @param [String] quota_user
1241
+ # Available to use for quota purposes for server-side applications. Can be any
1242
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1243
+ # @param [Google::Apis::RequestOptions] options
1244
+ # Request-specific options
1245
+ #
1246
+ # @yield [result, err] Result & error if block supplied
1247
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1248
+ # @yieldparam err [StandardError] error object if request failed
1249
+ #
1250
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1251
+ #
1252
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1253
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1254
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1255
+ def patch_project_location_grpc_route(name, grpc_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1256
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1257
+ command.request_representation = Google::Apis::NetworkservicesV1::GrpcRoute::Representation
1258
+ command.request_object = grpc_route_object
1259
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1260
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1261
+ command.params['name'] = name unless name.nil?
1262
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1263
+ command.query['fields'] = fields unless fields.nil?
1264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1265
+ execute_or_queue_command(command, &block)
1266
+ end
1267
+
1268
+ # Creates a new HttpRoute in a given project and location.
1269
+ # @param [String] parent
1270
+ # Required. The parent resource of the HttpRoute. Must be in the format `
1271
+ # projects/*/locations/global`.
1272
+ # @param [Google::Apis::NetworkservicesV1::HttpRoute] http_route_object
1273
+ # @param [String] http_route_id
1274
+ # Required. Short name of the HttpRoute resource to be created.
1275
+ # @param [String] fields
1276
+ # Selector specifying which fields to include in a partial response.
1277
+ # @param [String] quota_user
1278
+ # Available to use for quota purposes for server-side applications. Can be any
1279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1280
+ # @param [Google::Apis::RequestOptions] options
1281
+ # Request-specific options
1282
+ #
1283
+ # @yield [result, err] Result & error if block supplied
1284
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1285
+ # @yieldparam err [StandardError] error object if request failed
1286
+ #
1287
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1288
+ #
1289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1292
+ def create_project_location_http_route(parent, http_route_object = nil, http_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1293
+ command = make_simple_command(:post, 'v1/{+parent}/httpRoutes', options)
1294
+ command.request_representation = Google::Apis::NetworkservicesV1::HttpRoute::Representation
1295
+ command.request_object = http_route_object
1296
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1297
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1298
+ command.params['parent'] = parent unless parent.nil?
1299
+ command.query['httpRouteId'] = http_route_id unless http_route_id.nil?
1300
+ command.query['fields'] = fields unless fields.nil?
1301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1302
+ execute_or_queue_command(command, &block)
1303
+ end
1304
+
1305
+ # Deletes a single HttpRoute.
1306
+ # @param [String] name
1307
+ # Required. A name of the HttpRoute to delete. Must be in the format `projects/*/
1308
+ # locations/global/httpRoutes/*`.
1309
+ # @param [String] fields
1310
+ # Selector specifying which fields to include in a partial response.
1311
+ # @param [String] quota_user
1312
+ # Available to use for quota purposes for server-side applications. Can be any
1313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1314
+ # @param [Google::Apis::RequestOptions] options
1315
+ # Request-specific options
1316
+ #
1317
+ # @yield [result, err] Result & error if block supplied
1318
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1319
+ # @yieldparam err [StandardError] error object if request failed
1320
+ #
1321
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1322
+ #
1323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1326
+ def delete_project_location_http_route(name, fields: nil, quota_user: nil, options: nil, &block)
1327
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1328
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1329
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1330
+ command.params['name'] = name unless name.nil?
1331
+ command.query['fields'] = fields unless fields.nil?
1332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1333
+ execute_or_queue_command(command, &block)
1334
+ end
1335
+
1336
+ # Gets details of a single HttpRoute.
1337
+ # @param [String] name
1338
+ # Required. A name of the HttpRoute to get. Must be in the format `projects/*/
1339
+ # locations/global/httpRoutes/*`.
1340
+ # @param [String] fields
1341
+ # Selector specifying which fields to include in a partial response.
1342
+ # @param [String] quota_user
1343
+ # Available to use for quota purposes for server-side applications. Can be any
1344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1345
+ # @param [Google::Apis::RequestOptions] options
1346
+ # Request-specific options
1347
+ #
1348
+ # @yield [result, err] Result & error if block supplied
1349
+ # @yieldparam result [Google::Apis::NetworkservicesV1::HttpRoute] parsed result object
1350
+ # @yieldparam err [StandardError] error object if request failed
1351
+ #
1352
+ # @return [Google::Apis::NetworkservicesV1::HttpRoute]
1353
+ #
1354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1357
+ def get_project_location_http_route(name, fields: nil, quota_user: nil, options: nil, &block)
1358
+ command = make_simple_command(:get, 'v1/{+name}', options)
1359
+ command.response_representation = Google::Apis::NetworkservicesV1::HttpRoute::Representation
1360
+ command.response_class = Google::Apis::NetworkservicesV1::HttpRoute
1361
+ command.params['name'] = name unless name.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ execute_or_queue_command(command, &block)
1365
+ end
1366
+
1367
+ # Lists HttpRoute in a given project and location.
1368
+ # @param [String] parent
1369
+ # Required. The project and location from which the HttpRoutes should be listed,
1370
+ # specified in the format `projects/*/locations/global`.
1371
+ # @param [Fixnum] page_size
1372
+ # Maximum number of HttpRoutes to return per call.
1373
+ # @param [String] page_token
1374
+ # The value returned by the last `ListHttpRoutesResponse` Indicates that this is
1375
+ # a continuation of a prior `ListRouters` call, and that the system should
1376
+ # return the next page of data.
1377
+ # @param [String] fields
1378
+ # Selector specifying which fields to include in a partial response.
1379
+ # @param [String] quota_user
1380
+ # Available to use for quota purposes for server-side applications. Can be any
1381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1382
+ # @param [Google::Apis::RequestOptions] options
1383
+ # Request-specific options
1384
+ #
1385
+ # @yield [result, err] Result & error if block supplied
1386
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListHttpRoutesResponse] parsed result object
1387
+ # @yieldparam err [StandardError] error object if request failed
1388
+ #
1389
+ # @return [Google::Apis::NetworkservicesV1::ListHttpRoutesResponse]
1390
+ #
1391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1394
+ def list_project_location_http_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1395
+ command = make_simple_command(:get, 'v1/{+parent}/httpRoutes', options)
1396
+ command.response_representation = Google::Apis::NetworkservicesV1::ListHttpRoutesResponse::Representation
1397
+ command.response_class = Google::Apis::NetworkservicesV1::ListHttpRoutesResponse
1398
+ command.params['parent'] = parent unless parent.nil?
1399
+ command.query['pageSize'] = page_size unless page_size.nil?
1400
+ command.query['pageToken'] = page_token unless page_token.nil?
1401
+ command.query['fields'] = fields unless fields.nil?
1402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1403
+ execute_or_queue_command(command, &block)
1404
+ end
1405
+
1406
+ # Updates the parameters of a single HttpRoute.
1407
+ # @param [String] name
1408
+ # Required. Name of the HttpRoute resource. It matches pattern `projects/*/
1409
+ # locations/global/httpRoutes/http_route_name>`.
1410
+ # @param [Google::Apis::NetworkservicesV1::HttpRoute] http_route_object
1411
+ # @param [String] update_mask
1412
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1413
+ # HttpRoute resource by the update. The fields specified in the update_mask are
1414
+ # relative to the resource, not the full request. A field will be overwritten if
1415
+ # it is in the mask. If the user does not provide a mask then all fields will be
1416
+ # overwritten.
1417
+ # @param [String] fields
1418
+ # Selector specifying which fields to include in a partial response.
1419
+ # @param [String] quota_user
1420
+ # Available to use for quota purposes for server-side applications. Can be any
1421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1422
+ # @param [Google::Apis::RequestOptions] options
1423
+ # Request-specific options
1424
+ #
1425
+ # @yield [result, err] Result & error if block supplied
1426
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1427
+ # @yieldparam err [StandardError] error object if request failed
1428
+ #
1429
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1430
+ #
1431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1434
+ def patch_project_location_http_route(name, http_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1435
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1436
+ command.request_representation = Google::Apis::NetworkservicesV1::HttpRoute::Representation
1437
+ command.request_object = http_route_object
1438
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1439
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1440
+ command.params['name'] = name unless name.nil?
1441
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1442
+ command.query['fields'] = fields unless fields.nil?
1443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1444
+ execute_or_queue_command(command, &block)
1445
+ end
1446
+
1447
+ # Creates a new Mesh in a given project and location.
1448
+ # @param [String] parent
1449
+ # Required. The parent resource of the Mesh. Must be in the format `projects/*/
1450
+ # locations/global`.
1451
+ # @param [Google::Apis::NetworkservicesV1::Mesh] mesh_object
1452
+ # @param [String] mesh_id
1453
+ # Required. Short name of the Mesh resource to be created.
1454
+ # @param [String] fields
1455
+ # Selector specifying which fields to include in a partial response.
1456
+ # @param [String] quota_user
1457
+ # Available to use for quota purposes for server-side applications. Can be any
1458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1459
+ # @param [Google::Apis::RequestOptions] options
1460
+ # Request-specific options
1461
+ #
1462
+ # @yield [result, err] Result & error if block supplied
1463
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1464
+ # @yieldparam err [StandardError] error object if request failed
1465
+ #
1466
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1467
+ #
1468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1471
+ def create_project_location_mesh(parent, mesh_object = nil, mesh_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1472
+ command = make_simple_command(:post, 'v1/{+parent}/meshes', options)
1473
+ command.request_representation = Google::Apis::NetworkservicesV1::Mesh::Representation
1474
+ command.request_object = mesh_object
1475
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1476
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1477
+ command.params['parent'] = parent unless parent.nil?
1478
+ command.query['meshId'] = mesh_id unless mesh_id.nil?
1479
+ command.query['fields'] = fields unless fields.nil?
1480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1481
+ execute_or_queue_command(command, &block)
1482
+ end
1483
+
1484
+ # Deletes a single Mesh.
1485
+ # @param [String] name
1486
+ # Required. A name of the Mesh to delete. Must be in the format `projects/*/
1487
+ # locations/global/meshes/*`.
1488
+ # @param [String] fields
1489
+ # Selector specifying which fields to include in a partial response.
1490
+ # @param [String] quota_user
1491
+ # Available to use for quota purposes for server-side applications. Can be any
1492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1493
+ # @param [Google::Apis::RequestOptions] options
1494
+ # Request-specific options
1495
+ #
1496
+ # @yield [result, err] Result & error if block supplied
1497
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1498
+ # @yieldparam err [StandardError] error object if request failed
1499
+ #
1500
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1501
+ #
1502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1505
+ def delete_project_location_mesh(name, fields: nil, quota_user: nil, options: nil, &block)
1506
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1507
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1508
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1509
+ command.params['name'] = name unless name.nil?
1510
+ command.query['fields'] = fields unless fields.nil?
1511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1512
+ execute_or_queue_command(command, &block)
1513
+ end
1514
+
1515
+ # Gets details of a single Mesh.
1516
+ # @param [String] name
1517
+ # Required. A name of the Mesh to get. Must be in the format `projects/*/
1518
+ # locations/global/meshes/*`.
1519
+ # @param [String] fields
1520
+ # Selector specifying which fields to include in a partial response.
1521
+ # @param [String] quota_user
1522
+ # Available to use for quota purposes for server-side applications. Can be any
1523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1524
+ # @param [Google::Apis::RequestOptions] options
1525
+ # Request-specific options
1526
+ #
1527
+ # @yield [result, err] Result & error if block supplied
1528
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Mesh] parsed result object
1529
+ # @yieldparam err [StandardError] error object if request failed
1530
+ #
1531
+ # @return [Google::Apis::NetworkservicesV1::Mesh]
1532
+ #
1533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1536
+ def get_project_location_mesh(name, fields: nil, quota_user: nil, options: nil, &block)
1537
+ command = make_simple_command(:get, 'v1/{+name}', options)
1538
+ command.response_representation = Google::Apis::NetworkservicesV1::Mesh::Representation
1539
+ command.response_class = Google::Apis::NetworkservicesV1::Mesh
1540
+ command.params['name'] = name unless name.nil?
1541
+ command.query['fields'] = fields unless fields.nil?
1542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1543
+ execute_or_queue_command(command, &block)
1544
+ end
1545
+
1546
+ # Gets the access control policy for a resource. Returns an empty policy if the
1547
+ # resource exists and does not have a policy set.
1548
+ # @param [String] resource
1549
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1550
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1551
+ # appropriate value for this field.
1552
+ # @param [Fixnum] options_requested_policy_version
1553
+ # Optional. The maximum policy version that will be used to format the policy.
1554
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1555
+ # rejected. Requests for policies with any conditional role bindings must
1556
+ # specify version 3. Policies with no conditional role bindings may specify any
1557
+ # valid value or leave the field unset. The policy in the response might use the
1558
+ # policy version that you specified, or it might use a lower policy version. For
1559
+ # example, if you specify version 3, but the policy has no conditional role
1560
+ # bindings, the response uses version 1. To learn which resources support
1561
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1562
+ # google.com/iam/help/conditions/resource-policies).
1563
+ # @param [String] fields
1564
+ # Selector specifying which fields to include in a partial response.
1565
+ # @param [String] quota_user
1566
+ # Available to use for quota purposes for server-side applications. Can be any
1567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1568
+ # @param [Google::Apis::RequestOptions] options
1569
+ # Request-specific options
1570
+ #
1571
+ # @yield [result, err] Result & error if block supplied
1572
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1573
+ # @yieldparam err [StandardError] error object if request failed
1574
+ #
1575
+ # @return [Google::Apis::NetworkservicesV1::Policy]
1576
+ #
1577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1580
+ def get_project_location_mesh_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1581
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1582
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1583
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
1584
+ command.params['resource'] = resource unless resource.nil?
1585
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1586
+ command.query['fields'] = fields unless fields.nil?
1587
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1588
+ execute_or_queue_command(command, &block)
1589
+ end
1590
+
1591
+ # Lists Meshes in a given project and location.
1592
+ # @param [String] parent
1593
+ # Required. The project and location from which the Meshes should be listed,
1594
+ # specified in the format `projects/*/locations/global`.
1595
+ # @param [Fixnum] page_size
1596
+ # Maximum number of Meshes to return per call.
1597
+ # @param [String] page_token
1598
+ # The value returned by the last `ListMeshesResponse` Indicates that this is a
1599
+ # continuation of a prior `ListMeshes` call, and that the system should return
1600
+ # the next page of data.
1601
+ # @param [String] fields
1602
+ # Selector specifying which fields to include in a partial response.
1603
+ # @param [String] quota_user
1604
+ # Available to use for quota purposes for server-side applications. Can be any
1605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1606
+ # @param [Google::Apis::RequestOptions] options
1607
+ # Request-specific options
1608
+ #
1609
+ # @yield [result, err] Result & error if block supplied
1610
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListMeshesResponse] parsed result object
1611
+ # @yieldparam err [StandardError] error object if request failed
1612
+ #
1613
+ # @return [Google::Apis::NetworkservicesV1::ListMeshesResponse]
1614
+ #
1615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1618
+ def list_project_location_meshes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1619
+ command = make_simple_command(:get, 'v1/{+parent}/meshes', options)
1620
+ command.response_representation = Google::Apis::NetworkservicesV1::ListMeshesResponse::Representation
1621
+ command.response_class = Google::Apis::NetworkservicesV1::ListMeshesResponse
1622
+ command.params['parent'] = parent unless parent.nil?
1623
+ command.query['pageSize'] = page_size unless page_size.nil?
1624
+ command.query['pageToken'] = page_token unless page_token.nil?
1625
+ command.query['fields'] = fields unless fields.nil?
1626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1627
+ execute_or_queue_command(command, &block)
1628
+ end
1629
+
1630
+ # Updates the parameters of a single Mesh.
1631
+ # @param [String] name
1632
+ # Required. Name of the Mesh resource. It matches pattern `projects/*/locations/
1633
+ # global/meshes/`.
1634
+ # @param [Google::Apis::NetworkservicesV1::Mesh] mesh_object
1635
+ # @param [String] update_mask
1636
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1637
+ # Mesh resource by the update. The fields specified in the update_mask are
1638
+ # relative to the resource, not the full request. A field will be overwritten if
1639
+ # it is in the mask. If the user does not provide a mask then all fields will be
1640
+ # overwritten.
1641
+ # @param [String] fields
1642
+ # Selector specifying which fields to include in a partial response.
1643
+ # @param [String] quota_user
1644
+ # Available to use for quota purposes for server-side applications. Can be any
1645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1646
+ # @param [Google::Apis::RequestOptions] options
1647
+ # Request-specific options
1648
+ #
1649
+ # @yield [result, err] Result & error if block supplied
1650
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1651
+ # @yieldparam err [StandardError] error object if request failed
1652
+ #
1653
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1654
+ #
1655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1658
+ def patch_project_location_mesh(name, mesh_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1659
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1660
+ command.request_representation = Google::Apis::NetworkservicesV1::Mesh::Representation
1661
+ command.request_object = mesh_object
1662
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1663
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1664
+ command.params['name'] = name unless name.nil?
1665
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1666
+ command.query['fields'] = fields unless fields.nil?
1667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1668
+ execute_or_queue_command(command, &block)
1669
+ end
1670
+
1671
+ # Sets the access control policy on the specified resource. Replaces any
1672
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1673
+ # PERMISSION_DENIED` errors.
1674
+ # @param [String] resource
1675
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1676
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1677
+ # appropriate value for this field.
1678
+ # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
1679
+ # @param [String] fields
1680
+ # Selector specifying which fields to include in a partial response.
1681
+ # @param [String] quota_user
1682
+ # Available to use for quota purposes for server-side applications. Can be any
1683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1684
+ # @param [Google::Apis::RequestOptions] options
1685
+ # Request-specific options
1686
+ #
1687
+ # @yield [result, err] Result & error if block supplied
1688
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
1689
+ # @yieldparam err [StandardError] error object if request failed
1690
+ #
1691
+ # @return [Google::Apis::NetworkservicesV1::Policy]
1692
+ #
1693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1696
+ def set_mesh_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1697
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1698
+ command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
1699
+ command.request_object = set_iam_policy_request_object
1700
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
1701
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
1702
+ command.params['resource'] = resource unless resource.nil?
1703
+ command.query['fields'] = fields unless fields.nil?
1704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1705
+ execute_or_queue_command(command, &block)
1706
+ end
1707
+
1708
+ # Returns permissions that a caller has on the specified resource. If the
1709
+ # resource does not exist, this will return an empty set of permissions, not a `
1710
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1711
+ # permission-aware UIs and command-line tools, not for authorization checking.
1712
+ # This operation may "fail open" without warning.
1713
+ # @param [String] resource
1714
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1715
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1716
+ # appropriate value for this field.
1717
+ # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1718
+ # @param [String] fields
1719
+ # Selector specifying which fields to include in a partial response.
1720
+ # @param [String] quota_user
1721
+ # Available to use for quota purposes for server-side applications. Can be any
1722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1723
+ # @param [Google::Apis::RequestOptions] options
1724
+ # Request-specific options
1725
+ #
1726
+ # @yield [result, err] Result & error if block supplied
1727
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
1728
+ # @yieldparam err [StandardError] error object if request failed
1729
+ #
1730
+ # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
1731
+ #
1732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1735
+ def test_mesh_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1736
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1737
+ command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
1738
+ command.request_object = test_iam_permissions_request_object
1739
+ command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
1740
+ command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
1741
+ command.params['resource'] = resource unless resource.nil?
1742
+ command.query['fields'] = fields unless fields.nil?
1743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1744
+ execute_or_queue_command(command, &block)
1745
+ end
1746
+
1747
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1748
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1749
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1750
+ # Clients can use Operations.GetOperation or other methods to check whether the
1751
+ # cancellation succeeded or whether the operation completed despite cancellation.
1752
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1753
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1754
+ # corresponding to `Code.CANCELLED`.
1755
+ # @param [String] name
1756
+ # The name of the operation resource to be cancelled.
1757
+ # @param [Google::Apis::NetworkservicesV1::CancelOperationRequest] cancel_operation_request_object
1758
+ # @param [String] fields
1759
+ # Selector specifying which fields to include in a partial response.
1760
+ # @param [String] quota_user
1761
+ # Available to use for quota purposes for server-side applications. Can be any
1762
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1763
+ # @param [Google::Apis::RequestOptions] options
1764
+ # Request-specific options
1765
+ #
1766
+ # @yield [result, err] Result & error if block supplied
1767
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Empty] parsed result object
1768
+ # @yieldparam err [StandardError] error object if request failed
1769
+ #
1770
+ # @return [Google::Apis::NetworkservicesV1::Empty]
1771
+ #
1772
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1773
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1774
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1775
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1776
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1777
+ command.request_representation = Google::Apis::NetworkservicesV1::CancelOperationRequest::Representation
1778
+ command.request_object = cancel_operation_request_object
1779
+ command.response_representation = Google::Apis::NetworkservicesV1::Empty::Representation
1780
+ command.response_class = Google::Apis::NetworkservicesV1::Empty
1781
+ command.params['name'] = name unless name.nil?
1782
+ command.query['fields'] = fields unless fields.nil?
1783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1784
+ execute_or_queue_command(command, &block)
1785
+ end
1786
+
1787
+ # Deletes a long-running operation. This method indicates that the client is no
1788
+ # longer interested in the operation result. It does not cancel the operation.
1789
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1790
+ # UNIMPLEMENTED`.
1791
+ # @param [String] name
1792
+ # The name of the operation resource to be deleted.
1793
+ # @param [String] fields
1794
+ # Selector specifying which fields to include in a partial response.
1795
+ # @param [String] quota_user
1796
+ # Available to use for quota purposes for server-side applications. Can be any
1797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1798
+ # @param [Google::Apis::RequestOptions] options
1799
+ # Request-specific options
1800
+ #
1801
+ # @yield [result, err] Result & error if block supplied
1802
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Empty] parsed result object
1803
+ # @yieldparam err [StandardError] error object if request failed
1804
+ #
1805
+ # @return [Google::Apis::NetworkservicesV1::Empty]
1806
+ #
1807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1810
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1811
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1812
+ command.response_representation = Google::Apis::NetworkservicesV1::Empty::Representation
1813
+ command.response_class = Google::Apis::NetworkservicesV1::Empty
1814
+ command.params['name'] = name unless name.nil?
1815
+ command.query['fields'] = fields unless fields.nil?
1816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1817
+ execute_or_queue_command(command, &block)
1818
+ end
1819
+
1820
+ # Gets the latest state of a long-running operation. Clients can use this method
1821
+ # to poll the operation result at intervals as recommended by the API service.
1822
+ # @param [String] name
1823
+ # The name of the operation resource.
1824
+ # @param [String] fields
1825
+ # Selector specifying which fields to include in a partial response.
1826
+ # @param [String] quota_user
1827
+ # Available to use for quota purposes for server-side applications. Can be any
1828
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1829
+ # @param [Google::Apis::RequestOptions] options
1830
+ # Request-specific options
1831
+ #
1832
+ # @yield [result, err] Result & error if block supplied
1833
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1834
+ # @yieldparam err [StandardError] error object if request failed
1835
+ #
1836
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1837
+ #
1838
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1839
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1840
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1841
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1842
+ command = make_simple_command(:get, 'v1/{+name}', options)
1843
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1844
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1845
+ command.params['name'] = name unless name.nil?
1846
+ command.query['fields'] = fields unless fields.nil?
1847
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1848
+ execute_or_queue_command(command, &block)
1849
+ end
1850
+
1851
+ # Lists operations that match the specified filter in the request. If the server
1852
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1853
+ # binding allows API services to override the binding to use different resource
1854
+ # name schemes, such as `users/*/operations`. To override the binding, API
1855
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1856
+ # service configuration. For backwards compatibility, the default name includes
1857
+ # the operations collection id, however overriding users must ensure the name
1858
+ # binding is the parent resource, without the operations collection id.
1859
+ # @param [String] name
1860
+ # The name of the operation's parent resource.
1861
+ # @param [String] filter
1862
+ # The standard list filter.
1863
+ # @param [Fixnum] page_size
1864
+ # The standard list page size.
1865
+ # @param [String] page_token
1866
+ # The standard list page token.
1867
+ # @param [String] fields
1868
+ # Selector specifying which fields to include in a partial response.
1869
+ # @param [String] quota_user
1870
+ # Available to use for quota purposes for server-side applications. Can be any
1871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1872
+ # @param [Google::Apis::RequestOptions] options
1873
+ # Request-specific options
1874
+ #
1875
+ # @yield [result, err] Result & error if block supplied
1876
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListOperationsResponse] parsed result object
1877
+ # @yieldparam err [StandardError] error object if request failed
1878
+ #
1879
+ # @return [Google::Apis::NetworkservicesV1::ListOperationsResponse]
1880
+ #
1881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1884
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1885
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1886
+ command.response_representation = Google::Apis::NetworkservicesV1::ListOperationsResponse::Representation
1887
+ command.response_class = Google::Apis::NetworkservicesV1::ListOperationsResponse
1888
+ command.params['name'] = name unless name.nil?
1889
+ command.query['filter'] = filter unless filter.nil?
1890
+ command.query['pageSize'] = page_size unless page_size.nil?
1891
+ command.query['pageToken'] = page_token unless page_token.nil?
1892
+ command.query['fields'] = fields unless fields.nil?
1893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1894
+ execute_or_queue_command(command, &block)
1895
+ end
1896
+
1897
+ # Creates a new ServiceBinding in a given project and location.
1898
+ # @param [String] parent
1899
+ # Required. The parent resource of the ServiceBinding. Must be in the format `
1900
+ # projects/*/locations/global`.
1901
+ # @param [Google::Apis::NetworkservicesV1::ServiceBinding] service_binding_object
1902
+ # @param [String] service_binding_id
1903
+ # Required. Short name of the ServiceBinding resource to be created.
1904
+ # @param [String] fields
1905
+ # Selector specifying which fields to include in a partial response.
1906
+ # @param [String] quota_user
1907
+ # Available to use for quota purposes for server-side applications. Can be any
1908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1909
+ # @param [Google::Apis::RequestOptions] options
1910
+ # Request-specific options
1911
+ #
1912
+ # @yield [result, err] Result & error if block supplied
1913
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1914
+ # @yieldparam err [StandardError] error object if request failed
1915
+ #
1916
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1917
+ #
1918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1921
+ def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1922
+ command = make_simple_command(:post, 'v1/{+parent}/serviceBindings', options)
1923
+ command.request_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
1924
+ command.request_object = service_binding_object
1925
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1926
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1927
+ command.params['parent'] = parent unless parent.nil?
1928
+ command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
1929
+ command.query['fields'] = fields unless fields.nil?
1930
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1931
+ execute_or_queue_command(command, &block)
1932
+ end
1933
+
1934
+ # Deletes a single ServiceBinding.
1935
+ # @param [String] name
1936
+ # Required. A name of the ServiceBinding to delete. Must be in the format `
1937
+ # projects/*/locations/global/serviceBindings/*`.
1938
+ # @param [String] fields
1939
+ # Selector specifying which fields to include in a partial response.
1940
+ # @param [String] quota_user
1941
+ # Available to use for quota purposes for server-side applications. Can be any
1942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1943
+ # @param [Google::Apis::RequestOptions] options
1944
+ # Request-specific options
1945
+ #
1946
+ # @yield [result, err] Result & error if block supplied
1947
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
1948
+ # @yieldparam err [StandardError] error object if request failed
1949
+ #
1950
+ # @return [Google::Apis::NetworkservicesV1::Operation]
1951
+ #
1952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1955
+ def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1956
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1957
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
1958
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
1959
+ command.params['name'] = name unless name.nil?
1960
+ command.query['fields'] = fields unless fields.nil?
1961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1962
+ execute_or_queue_command(command, &block)
1963
+ end
1964
+
1965
+ # Gets details of a single ServiceBinding.
1966
+ # @param [String] name
1967
+ # Required. A name of the ServiceBinding to get. Must be in the format `projects/
1968
+ # */locations/global/serviceBindings/*`.
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::NetworkservicesV1::ServiceBinding] parsed result object
1979
+ # @yieldparam err [StandardError] error object if request failed
1980
+ #
1981
+ # @return [Google::Apis::NetworkservicesV1::ServiceBinding]
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 get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1987
+ command = make_simple_command(:get, 'v1/{+name}', options)
1988
+ command.response_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
1989
+ command.response_class = Google::Apis::NetworkservicesV1::ServiceBinding
1990
+ command.params['name'] = name unless name.nil?
1991
+ command.query['fields'] = fields unless fields.nil?
1992
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1993
+ execute_or_queue_command(command, &block)
1994
+ end
1995
+
1996
+ # Gets the access control policy for a resource. Returns an empty policy if the
1997
+ # resource exists and does not have a policy set.
1998
+ # @param [String] resource
1999
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2000
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2001
+ # appropriate value for this field.
2002
+ # @param [Fixnum] options_requested_policy_version
2003
+ # Optional. The maximum policy version that will be used to format the policy.
2004
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2005
+ # rejected. Requests for policies with any conditional role bindings must
2006
+ # specify version 3. Policies with no conditional role bindings may specify any
2007
+ # valid value or leave the field unset. The policy in the response might use the
2008
+ # policy version that you specified, or it might use a lower policy version. For
2009
+ # example, if you specify version 3, but the policy has no conditional role
2010
+ # bindings, the response uses version 1. To learn which resources support
2011
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2012
+ # google.com/iam/help/conditions/resource-policies).
2013
+ # @param [String] fields
2014
+ # Selector specifying which fields to include in a partial response.
2015
+ # @param [String] quota_user
2016
+ # Available to use for quota purposes for server-side applications. Can be any
2017
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2018
+ # @param [Google::Apis::RequestOptions] options
2019
+ # Request-specific options
2020
+ #
2021
+ # @yield [result, err] Result & error if block supplied
2022
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2023
+ # @yieldparam err [StandardError] error object if request failed
2024
+ #
2025
+ # @return [Google::Apis::NetworkservicesV1::Policy]
2026
+ #
2027
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2028
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2029
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2030
+ def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2031
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2032
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2033
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
2034
+ command.params['resource'] = resource unless resource.nil?
2035
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2036
+ command.query['fields'] = fields unless fields.nil?
2037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2038
+ execute_or_queue_command(command, &block)
2039
+ end
2040
+
2041
+ # Lists ServiceBinding in a given project and location.
2042
+ # @param [String] parent
2043
+ # Required. The project and location from which the ServiceBindings should be
2044
+ # listed, specified in the format `projects/*/locations/global`.
2045
+ # @param [Fixnum] page_size
2046
+ # Maximum number of ServiceBindings to return per call.
2047
+ # @param [String] page_token
2048
+ # The value returned by the last `ListServiceBindingsResponse` Indicates that
2049
+ # this is a continuation of a prior `ListRouters` call, and that the system
2050
+ # should return the next page of data.
2051
+ # @param [String] fields
2052
+ # Selector specifying which fields to include in a partial response.
2053
+ # @param [String] quota_user
2054
+ # Available to use for quota purposes for server-side applications. Can be any
2055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2056
+ # @param [Google::Apis::RequestOptions] options
2057
+ # Request-specific options
2058
+ #
2059
+ # @yield [result, err] Result & error if block supplied
2060
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse] parsed result object
2061
+ # @yieldparam err [StandardError] error object if request failed
2062
+ #
2063
+ # @return [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse]
2064
+ #
2065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2068
+ def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2069
+ command = make_simple_command(:get, 'v1/{+parent}/serviceBindings', options)
2070
+ command.response_representation = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse::Representation
2071
+ command.response_class = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse
2072
+ command.params['parent'] = parent unless parent.nil?
2073
+ command.query['pageSize'] = page_size unless page_size.nil?
2074
+ command.query['pageToken'] = page_token unless page_token.nil?
2075
+ command.query['fields'] = fields unless fields.nil?
2076
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2077
+ execute_or_queue_command(command, &block)
2078
+ end
2079
+
2080
+ # Sets the access control policy on the specified resource. Replaces any
2081
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2082
+ # PERMISSION_DENIED` errors.
2083
+ # @param [String] resource
2084
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2085
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2086
+ # appropriate value for this field.
2087
+ # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
2088
+ # @param [String] fields
2089
+ # Selector specifying which fields to include in a partial response.
2090
+ # @param [String] quota_user
2091
+ # Available to use for quota purposes for server-side applications. Can be any
2092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2093
+ # @param [Google::Apis::RequestOptions] options
2094
+ # Request-specific options
2095
+ #
2096
+ # @yield [result, err] Result & error if block supplied
2097
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
2098
+ # @yieldparam err [StandardError] error object if request failed
2099
+ #
2100
+ # @return [Google::Apis::NetworkservicesV1::Policy]
2101
+ #
2102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2105
+ def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2106
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2107
+ command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
2108
+ command.request_object = set_iam_policy_request_object
2109
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
2110
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
2111
+ command.params['resource'] = resource unless resource.nil?
2112
+ command.query['fields'] = fields unless fields.nil?
2113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2114
+ execute_or_queue_command(command, &block)
2115
+ end
2116
+
2117
+ # Returns permissions that a caller has on the specified resource. If the
2118
+ # resource does not exist, this will return an empty set of permissions, not a `
2119
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2120
+ # permission-aware UIs and command-line tools, not for authorization checking.
2121
+ # This operation may "fail open" without warning.
2122
+ # @param [String] resource
2123
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2124
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2125
+ # appropriate value for this field.
2126
+ # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2127
+ # @param [String] fields
2128
+ # Selector specifying which fields to include in a partial response.
2129
+ # @param [String] quota_user
2130
+ # Available to use for quota purposes for server-side applications. Can be any
2131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2132
+ # @param [Google::Apis::RequestOptions] options
2133
+ # Request-specific options
2134
+ #
2135
+ # @yield [result, err] Result & error if block supplied
2136
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
2137
+ # @yieldparam err [StandardError] error object if request failed
2138
+ #
2139
+ # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
2140
+ #
2141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2144
+ def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2145
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2146
+ command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
2147
+ command.request_object = test_iam_permissions_request_object
2148
+ command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
2149
+ command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
2150
+ command.params['resource'] = resource unless resource.nil?
2151
+ command.query['fields'] = fields unless fields.nil?
2152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2153
+ execute_or_queue_command(command, &block)
2154
+ end
2155
+
2156
+ # Creates a new TcpRoute in a given project and location.
2157
+ # @param [String] parent
2158
+ # Required. The parent resource of the TcpRoute. Must be in the format `projects/
2159
+ # */locations/global`.
2160
+ # @param [Google::Apis::NetworkservicesV1::TcpRoute] tcp_route_object
2161
+ # @param [String] tcp_route_id
2162
+ # Required. Short name of the TcpRoute resource to be created. E.g. TODO(Add an
2163
+ # example).
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def create_project_location_tcp_route(parent, tcp_route_object = nil, tcp_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:post, 'v1/{+parent}/tcpRoutes', options)
2183
+ command.request_representation = Google::Apis::NetworkservicesV1::TcpRoute::Representation
2184
+ command.request_object = tcp_route_object
2185
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2186
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2187
+ command.params['parent'] = parent unless parent.nil?
2188
+ command.query['tcpRouteId'] = tcp_route_id unless tcp_route_id.nil?
2189
+ command.query['fields'] = fields unless fields.nil?
2190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2191
+ execute_or_queue_command(command, &block)
2192
+ end
2193
+
2194
+ # Deletes a single TcpRoute.
2195
+ # @param [String] name
2196
+ # Required. A name of the TcpRoute to delete. Must be in the format `projects/*/
2197
+ # locations/global/tcpRoutes/*`.
2198
+ # @param [String] fields
2199
+ # Selector specifying which fields to include in a partial response.
2200
+ # @param [String] quota_user
2201
+ # Available to use for quota purposes for server-side applications. Can be any
2202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2203
+ # @param [Google::Apis::RequestOptions] options
2204
+ # Request-specific options
2205
+ #
2206
+ # @yield [result, err] Result & error if block supplied
2207
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2208
+ # @yieldparam err [StandardError] error object if request failed
2209
+ #
2210
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2211
+ #
2212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2215
+ def delete_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
2216
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2217
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2218
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2219
+ command.params['name'] = name unless name.nil?
2220
+ command.query['fields'] = fields unless fields.nil?
2221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2222
+ execute_or_queue_command(command, &block)
2223
+ end
2224
+
2225
+ # Gets details of a single TcpRoute.
2226
+ # @param [String] name
2227
+ # Required. A name of the TcpRoute to get. Must be in the format `projects/*/
2228
+ # locations/global/tcpRoutes/*`.
2229
+ # @param [String] fields
2230
+ # Selector specifying which fields to include in a partial response.
2231
+ # @param [String] quota_user
2232
+ # Available to use for quota purposes for server-side applications. Can be any
2233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2234
+ # @param [Google::Apis::RequestOptions] options
2235
+ # Request-specific options
2236
+ #
2237
+ # @yield [result, err] Result & error if block supplied
2238
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TcpRoute] parsed result object
2239
+ # @yieldparam err [StandardError] error object if request failed
2240
+ #
2241
+ # @return [Google::Apis::NetworkservicesV1::TcpRoute]
2242
+ #
2243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2246
+ def get_project_location_tcp_route(name, fields: nil, quota_user: nil, options: nil, &block)
2247
+ command = make_simple_command(:get, 'v1/{+name}', options)
2248
+ command.response_representation = Google::Apis::NetworkservicesV1::TcpRoute::Representation
2249
+ command.response_class = Google::Apis::NetworkservicesV1::TcpRoute
2250
+ command.params['name'] = name unless name.nil?
2251
+ command.query['fields'] = fields unless fields.nil?
2252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2253
+ execute_or_queue_command(command, &block)
2254
+ end
2255
+
2256
+ # Lists TcpRoute in a given project and location.
2257
+ # @param [String] parent
2258
+ # Required. The project and location from which the TcpRoutes should be listed,
2259
+ # specified in the format `projects/*/locations/global`.
2260
+ # @param [Fixnum] page_size
2261
+ # Maximum number of TcpRoutes to return per call.
2262
+ # @param [String] page_token
2263
+ # The value returned by the last `ListTcpRoutesResponse` Indicates that this is
2264
+ # a continuation of a prior `ListRouters` call, and that the system should
2265
+ # return the next page of data.
2266
+ # @param [String] fields
2267
+ # Selector specifying which fields to include in a partial response.
2268
+ # @param [String] quota_user
2269
+ # Available to use for quota purposes for server-side applications. Can be any
2270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2271
+ # @param [Google::Apis::RequestOptions] options
2272
+ # Request-specific options
2273
+ #
2274
+ # @yield [result, err] Result & error if block supplied
2275
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListTcpRoutesResponse] parsed result object
2276
+ # @yieldparam err [StandardError] error object if request failed
2277
+ #
2278
+ # @return [Google::Apis::NetworkservicesV1::ListTcpRoutesResponse]
2279
+ #
2280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2283
+ def list_project_location_tcp_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2284
+ command = make_simple_command(:get, 'v1/{+parent}/tcpRoutes', options)
2285
+ command.response_representation = Google::Apis::NetworkservicesV1::ListTcpRoutesResponse::Representation
2286
+ command.response_class = Google::Apis::NetworkservicesV1::ListTcpRoutesResponse
2287
+ command.params['parent'] = parent unless parent.nil?
2288
+ command.query['pageSize'] = page_size unless page_size.nil?
2289
+ command.query['pageToken'] = page_token unless page_token.nil?
2290
+ command.query['fields'] = fields unless fields.nil?
2291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2292
+ execute_or_queue_command(command, &block)
2293
+ end
2294
+
2295
+ # Updates the parameters of a single TcpRoute.
2296
+ # @param [String] name
2297
+ # Required. Name of the TcpRoute resource. It matches pattern `projects/*/
2298
+ # locations/global/tcpRoutes/tcp_route_name>`.
2299
+ # @param [Google::Apis::NetworkservicesV1::TcpRoute] tcp_route_object
2300
+ # @param [String] update_mask
2301
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2302
+ # TcpRoute resource by the update. The fields specified in the update_mask are
2303
+ # relative to the resource, not the full request. A field will be overwritten if
2304
+ # it is in the mask. If the user does not provide a mask then all fields will be
2305
+ # overwritten.
2306
+ # @param [String] fields
2307
+ # Selector specifying which fields to include in a partial response.
2308
+ # @param [String] quota_user
2309
+ # Available to use for quota purposes for server-side applications. Can be any
2310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2311
+ # @param [Google::Apis::RequestOptions] options
2312
+ # Request-specific options
2313
+ #
2314
+ # @yield [result, err] Result & error if block supplied
2315
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2316
+ # @yieldparam err [StandardError] error object if request failed
2317
+ #
2318
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2319
+ #
2320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2323
+ def patch_project_location_tcp_route(name, tcp_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2324
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2325
+ command.request_representation = Google::Apis::NetworkservicesV1::TcpRoute::Representation
2326
+ command.request_object = tcp_route_object
2327
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2328
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2329
+ command.params['name'] = name unless name.nil?
2330
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2331
+ command.query['fields'] = fields unless fields.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ execute_or_queue_command(command, &block)
2334
+ end
2335
+
2336
+ # Creates a new TlsRoute in a given project and location.
2337
+ # @param [String] parent
2338
+ # Required. The parent resource of the TlsRoute. Must be in the format `projects/
2339
+ # */locations/global`.
2340
+ # @param [Google::Apis::NetworkservicesV1::TlsRoute] tls_route_object
2341
+ # @param [String] tls_route_id
2342
+ # Required. Short name of the TlsRoute resource to be created. E.g. TODO(Add an
2343
+ # example).
2344
+ # @param [String] fields
2345
+ # Selector specifying which fields to include in a partial response.
2346
+ # @param [String] quota_user
2347
+ # Available to use for quota purposes for server-side applications. Can be any
2348
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2349
+ # @param [Google::Apis::RequestOptions] options
2350
+ # Request-specific options
2351
+ #
2352
+ # @yield [result, err] Result & error if block supplied
2353
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2354
+ # @yieldparam err [StandardError] error object if request failed
2355
+ #
2356
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2357
+ #
2358
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2359
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2360
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2361
+ def create_project_location_tls_route(parent, tls_route_object = nil, tls_route_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2362
+ command = make_simple_command(:post, 'v1/{+parent}/tlsRoutes', options)
2363
+ command.request_representation = Google::Apis::NetworkservicesV1::TlsRoute::Representation
2364
+ command.request_object = tls_route_object
2365
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2366
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2367
+ command.params['parent'] = parent unless parent.nil?
2368
+ command.query['tlsRouteId'] = tls_route_id unless tls_route_id.nil?
2369
+ command.query['fields'] = fields unless fields.nil?
2370
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2371
+ execute_or_queue_command(command, &block)
2372
+ end
2373
+
2374
+ # Deletes a single TlsRoute.
2375
+ # @param [String] name
2376
+ # Required. A name of the TlsRoute to delete. Must be in the format `projects/*/
2377
+ # locations/global/tlsRoutes/*`.
2378
+ # @param [String] fields
2379
+ # Selector specifying which fields to include in a partial response.
2380
+ # @param [String] quota_user
2381
+ # Available to use for quota purposes for server-side applications. Can be any
2382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2383
+ # @param [Google::Apis::RequestOptions] options
2384
+ # Request-specific options
2385
+ #
2386
+ # @yield [result, err] Result & error if block supplied
2387
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2388
+ # @yieldparam err [StandardError] error object if request failed
2389
+ #
2390
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2391
+ #
2392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2395
+ def delete_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
2396
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2397
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2398
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2399
+ command.params['name'] = name unless name.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ execute_or_queue_command(command, &block)
2403
+ end
2404
+
2405
+ # Gets details of a single TlsRoute.
2406
+ # @param [String] name
2407
+ # Required. A name of the TlsRoute to get. Must be in the format `projects/*/
2408
+ # locations/global/tlsRoutes/*`.
2409
+ # @param [String] fields
2410
+ # Selector specifying which fields to include in a partial response.
2411
+ # @param [String] quota_user
2412
+ # Available to use for quota purposes for server-side applications. Can be any
2413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2414
+ # @param [Google::Apis::RequestOptions] options
2415
+ # Request-specific options
2416
+ #
2417
+ # @yield [result, err] Result & error if block supplied
2418
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TlsRoute] parsed result object
2419
+ # @yieldparam err [StandardError] error object if request failed
2420
+ #
2421
+ # @return [Google::Apis::NetworkservicesV1::TlsRoute]
2422
+ #
2423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2426
+ def get_project_location_tls_route(name, fields: nil, quota_user: nil, options: nil, &block)
2427
+ command = make_simple_command(:get, 'v1/{+name}', options)
2428
+ command.response_representation = Google::Apis::NetworkservicesV1::TlsRoute::Representation
2429
+ command.response_class = Google::Apis::NetworkservicesV1::TlsRoute
2430
+ command.params['name'] = name unless name.nil?
2431
+ command.query['fields'] = fields unless fields.nil?
2432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2433
+ execute_or_queue_command(command, &block)
2434
+ end
2435
+
2436
+ # Lists TlsRoute in a given project and location.
2437
+ # @param [String] parent
2438
+ # Required. The project and location from which the TlsRoutes should be listed,
2439
+ # specified in the format `projects/*/locations/global`.
2440
+ # @param [Fixnum] page_size
2441
+ # Maximum number of TlsRoutes to return per call.
2442
+ # @param [String] page_token
2443
+ # The value returned by the last `ListTlsRoutesResponse` Indicates that this is
2444
+ # a continuation of a prior `ListRouters` call, and that the system should
2445
+ # return the next page of data.
2446
+ # @param [String] fields
2447
+ # Selector specifying which fields to include in a partial response.
2448
+ # @param [String] quota_user
2449
+ # Available to use for quota purposes for server-side applications. Can be any
2450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2451
+ # @param [Google::Apis::RequestOptions] options
2452
+ # Request-specific options
2453
+ #
2454
+ # @yield [result, err] Result & error if block supplied
2455
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListTlsRoutesResponse] parsed result object
2456
+ # @yieldparam err [StandardError] error object if request failed
2457
+ #
2458
+ # @return [Google::Apis::NetworkservicesV1::ListTlsRoutesResponse]
2459
+ #
2460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2463
+ def list_project_location_tls_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2464
+ command = make_simple_command(:get, 'v1/{+parent}/tlsRoutes', options)
2465
+ command.response_representation = Google::Apis::NetworkservicesV1::ListTlsRoutesResponse::Representation
2466
+ command.response_class = Google::Apis::NetworkservicesV1::ListTlsRoutesResponse
2467
+ command.params['parent'] = parent unless parent.nil?
2468
+ command.query['pageSize'] = page_size unless page_size.nil?
2469
+ command.query['pageToken'] = page_token unless page_token.nil?
2470
+ command.query['fields'] = fields unless fields.nil?
2471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2472
+ execute_or_queue_command(command, &block)
2473
+ end
2474
+
2475
+ # Updates the parameters of a single TlsRoute.
2476
+ # @param [String] name
2477
+ # Required. Name of the TlsRoute resource. It matches pattern `projects/*/
2478
+ # locations/global/tlsRoutes/tls_route_name>`.
2479
+ # @param [Google::Apis::NetworkservicesV1::TlsRoute] tls_route_object
2480
+ # @param [String] update_mask
2481
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2482
+ # TlsRoute resource by the update. The fields specified in the update_mask are
2483
+ # relative to the resource, not the full request. A field will be overwritten if
2484
+ # it is in the mask. If the user does not provide a mask then all fields will be
2485
+ # overwritten.
2486
+ # @param [String] fields
2487
+ # Selector specifying which fields to include in a partial response.
2488
+ # @param [String] quota_user
2489
+ # Available to use for quota purposes for server-side applications. Can be any
2490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2491
+ # @param [Google::Apis::RequestOptions] options
2492
+ # Request-specific options
2493
+ #
2494
+ # @yield [result, err] Result & error if block supplied
2495
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
2496
+ # @yieldparam err [StandardError] error object if request failed
2497
+ #
2498
+ # @return [Google::Apis::NetworkservicesV1::Operation]
2499
+ #
2500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2503
+ def patch_project_location_tls_route(name, tls_route_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2504
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2505
+ command.request_representation = Google::Apis::NetworkservicesV1::TlsRoute::Representation
2506
+ command.request_object = tls_route_object
2507
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
2508
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
2509
+ command.params['name'] = name unless name.nil?
2510
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1193
2511
  command.query['fields'] = fields unless fields.nil?
1194
2512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1195
2513
  execute_or_queue_command(command, &block)