google-apis-networkconnectivity_v1 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -944,23 +944,25 @@ module Google
944
944
  execute_or_queue_command(command, &block)
945
945
  end
946
946
 
947
- # Gets the access control policy for a resource. Returns an empty policy if the
948
- # resource exists and does not have a policy set.
949
- # @param [String] resource
950
- # REQUIRED: The resource for which the policy is being requested. See [Resource
951
- # names](https://cloud.google.com/apis/design/resource_names) for the
952
- # appropriate value for this field.
953
- # @param [Fixnum] options_requested_policy_version
954
- # Optional. The maximum policy version that will be used to format the policy.
955
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
956
- # rejected. Requests for policies with any conditional role bindings must
957
- # specify version 3. Policies with no conditional role bindings may specify any
958
- # valid value or leave the field unset. The policy in the response might use the
959
- # policy version that you specified, or it might use a lower policy version. For
960
- # example, if you specify version 3, but the policy has no conditional role
961
- # bindings, the response uses version 1. To learn which resources support
962
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
963
- # google.com/iam/help/conditions/resource-policies).
947
+ # Creates a new ServiceClass in a given project and location.
948
+ # @param [String] parent
949
+ # Required. The parent resource's name of the ServiceClass.
950
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceClass] service_class_object
951
+ # @param [String] request_id
952
+ # Optional. An optional request ID to identify requests. Specify a unique
953
+ # request ID so that if you must retry your request, the server will know to
954
+ # ignore the request if it has already been completed. The server will guarantee
955
+ # that for at least 60 minutes since the first request. For example, consider a
956
+ # situation where you make an initial request and the request times out. If you
957
+ # make the request again with the same request ID, the server can check if
958
+ # original operation with the same request ID was received, and if so, will
959
+ # ignore the second request. This prevents clients from accidentally creating
960
+ # duplicate commitments. The request ID must be a valid UUID with the exception
961
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
962
+ # @param [String] service_class_id
963
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
964
+ # serviceClasses/foo') See https://google.aip.dev/122#resource-id-segments
965
+ # Unique per location. If one is not provided, one will be generated.
964
966
  # @param [String] fields
965
967
  # Selector specifying which fields to include in a partial response.
966
968
  # @param [String] quota_user
@@ -970,33 +972,42 @@ module Google
970
972
  # Request-specific options
971
973
  #
972
974
  # @yield [result, err] Result & error if block supplied
973
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
975
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
974
976
  # @yieldparam err [StandardError] error object if request failed
975
977
  #
976
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
978
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
977
979
  #
978
980
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
979
981
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
980
982
  # @raise [Google::Apis::AuthorizationError] Authorization is required
981
- def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
982
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
983
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
984
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
985
- command.params['resource'] = resource unless resource.nil?
986
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
983
+ def create_project_location_service_class(parent, service_class_object = nil, request_id: nil, service_class_id: nil, fields: nil, quota_user: nil, options: nil, &block)
984
+ command = make_simple_command(:post, 'v1/{+parent}/serviceClasses', options)
985
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
986
+ command.request_object = service_class_object
987
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
988
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
989
+ command.params['parent'] = parent unless parent.nil?
990
+ command.query['requestId'] = request_id unless request_id.nil?
991
+ command.query['serviceClassId'] = service_class_id unless service_class_id.nil?
987
992
  command.query['fields'] = fields unless fields.nil?
988
993
  command.query['quotaUser'] = quota_user unless quota_user.nil?
989
994
  execute_or_queue_command(command, &block)
990
995
  end
991
996
 
992
- # Sets the access control policy on the specified resource. Replaces any
993
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
994
- # PERMISSION_DENIED` errors.
995
- # @param [String] resource
996
- # REQUIRED: The resource for which the policy is being specified. See [Resource
997
- # names](https://cloud.google.com/apis/design/resource_names) for the
998
- # appropriate value for this field.
999
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
997
+ # Deletes a single ServiceClass.
998
+ # @param [String] name
999
+ # Required. The name of the ServiceClass to delete.
1000
+ # @param [String] request_id
1001
+ # Optional. An optional request ID to identify requests. Specify a unique
1002
+ # request ID so that if you must retry your request, the server will know to
1003
+ # ignore the request if it has already been completed. The server will guarantee
1004
+ # that for at least 60 minutes after the first request. For example, consider a
1005
+ # situation where you make an initial request and the request times out. If you
1006
+ # make the request again with the same request ID, the server can check if
1007
+ # original operation with the same request ID was received, and if so, will
1008
+ # ignore the second request. This prevents clients from accidentally creating
1009
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1010
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1000
1011
  # @param [String] fields
1001
1012
  # Selector specifying which fields to include in a partial response.
1002
1013
  # @param [String] quota_user
@@ -1006,36 +1017,28 @@ module Google
1006
1017
  # Request-specific options
1007
1018
  #
1008
1019
  # @yield [result, err] Result & error if block supplied
1009
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1020
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1010
1021
  # @yieldparam err [StandardError] error object if request failed
1011
1022
  #
1012
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1023
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1013
1024
  #
1014
1025
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1015
1026
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1016
1027
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1017
- def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1018
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1019
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1020
- command.request_object = set_iam_policy_request_object
1021
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1022
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1023
- command.params['resource'] = resource unless resource.nil?
1028
+ def delete_project_location_service_class(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1029
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1030
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1031
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1032
+ command.params['name'] = name unless name.nil?
1033
+ command.query['requestId'] = request_id unless request_id.nil?
1024
1034
  command.query['fields'] = fields unless fields.nil?
1025
1035
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
1036
  execute_or_queue_command(command, &block)
1027
1037
  end
1028
1038
 
1029
- # Returns permissions that a caller has on the specified resource. If the
1030
- # resource does not exist, this will return an empty set of permissions, not a `
1031
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1032
- # permission-aware UIs and command-line tools, not for authorization checking.
1033
- # This operation may "fail open" without warning.
1034
- # @param [String] resource
1035
- # REQUIRED: The resource for which the policy detail is being requested. See [
1036
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1037
- # appropriate value for this field.
1038
- # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1039
+ # Gets details of a single ServiceClass.
1040
+ # @param [String] name
1041
+ # Required. Name of the ServiceClass to get.
1039
1042
  # @param [String] fields
1040
1043
  # Selector specifying which fields to include in a partial response.
1041
1044
  # @param [String] quota_user
@@ -1045,21 +1048,19 @@ module Google
1045
1048
  # Request-specific options
1046
1049
  #
1047
1050
  # @yield [result, err] Result & error if block supplied
1048
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1051
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceClass] parsed result object
1049
1052
  # @yieldparam err [StandardError] error object if request failed
1050
1053
  #
1051
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1054
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceClass]
1052
1055
  #
1053
1056
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
1057
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
1058
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1057
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1058
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1059
- command.request_object = test_iam_permissions_request_object
1060
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1061
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1062
- command.params['resource'] = resource unless resource.nil?
1059
+ def get_project_location_service_class(name, fields: nil, quota_user: nil, options: nil, &block)
1060
+ command = make_simple_command(:get, 'v1/{+name}', options)
1061
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
1062
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceClass
1063
+ command.params['name'] = name unless name.nil?
1063
1064
  command.query['fields'] = fields unless fields.nil?
1064
1065
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1065
1066
  execute_or_queue_command(command, &block)
@@ -1099,7 +1100,7 @@ module Google
1099
1100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1100
1101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1101
1102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1102
- def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1103
+ def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1103
1104
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1104
1105
  command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1105
1106
  command.response_class = Google::Apis::NetworkconnectivityV1::Policy
@@ -1110,53 +1111,17 @@ module Google
1110
1111
  execute_or_queue_command(command, &block)
1111
1112
  end
1112
1113
 
1113
- # Sets the access control policy on the specified resource. Replaces any
1114
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1115
- # PERMISSION_DENIED` errors.
1116
- # @param [String] resource
1117
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1118
- # names](https://cloud.google.com/apis/design/resource_names) for the
1119
- # appropriate value for this field.
1120
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1121
- # @param [String] fields
1122
- # Selector specifying which fields to include in a partial response.
1123
- # @param [String] quota_user
1124
- # Available to use for quota purposes for server-side applications. Can be any
1125
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1126
- # @param [Google::Apis::RequestOptions] options
1127
- # Request-specific options
1128
- #
1129
- # @yield [result, err] Result & error if block supplied
1130
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1131
- # @yieldparam err [StandardError] error object if request failed
1132
- #
1133
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1134
- #
1135
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1139
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1140
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1141
- command.request_object = set_iam_policy_request_object
1142
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1143
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1144
- command.params['resource'] = resource unless resource.nil?
1145
- command.query['fields'] = fields unless fields.nil?
1146
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
- execute_or_queue_command(command, &block)
1148
- end
1149
-
1150
- # Returns permissions that a caller has on the specified resource. If the
1151
- # resource does not exist, this will return an empty set of permissions, not a `
1152
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1153
- # permission-aware UIs and command-line tools, not for authorization checking.
1154
- # This operation may "fail open" without warning.
1155
- # @param [String] resource
1156
- # REQUIRED: The resource for which the policy detail is being requested. See [
1157
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1158
- # appropriate value for this field.
1159
- # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1114
+ # Lists ServiceClasses in a given project and location.
1115
+ # @param [String] parent
1116
+ # Required. The parent resource's name.
1117
+ # @param [String] filter
1118
+ # A filter expression that filters the results listed in the response.
1119
+ # @param [String] order_by
1120
+ # Sort the results by a certain order.
1121
+ # @param [Fixnum] page_size
1122
+ # The maximum number of results per page that should be returned.
1123
+ # @param [String] page_token
1124
+ # The page token.
1160
1125
  # @param [String] fields
1161
1126
  # Selector specifying which fields to include in a partial response.
1162
1127
  # @param [String] quota_user
@@ -1166,43 +1131,51 @@ module Google
1166
1131
  # Request-specific options
1167
1132
  #
1168
1133
  # @yield [result, err] Result & error if block supplied
1169
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1134
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse] parsed result object
1170
1135
  # @yieldparam err [StandardError] error object if request failed
1171
1136
  #
1172
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1137
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse]
1173
1138
  #
1174
1139
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1175
1140
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1176
1141
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1177
- def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1178
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1179
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1180
- command.request_object = test_iam_permissions_request_object
1181
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1182
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1183
- command.params['resource'] = resource unless resource.nil?
1142
+ def list_project_location_service_classes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1143
+ command = make_simple_command(:get, 'v1/{+parent}/serviceClasses', options)
1144
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse::Representation
1145
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse
1146
+ command.params['parent'] = parent unless parent.nil?
1147
+ command.query['filter'] = filter unless filter.nil?
1148
+ command.query['orderBy'] = order_by unless order_by.nil?
1149
+ command.query['pageSize'] = page_size unless page_size.nil?
1150
+ command.query['pageToken'] = page_token unless page_token.nil?
1184
1151
  command.query['fields'] = fields unless fields.nil?
1185
1152
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1186
1153
  execute_or_queue_command(command, &block)
1187
1154
  end
1188
1155
 
1189
- # Gets the access control policy for a resource. Returns an empty policy if the
1190
- # resource exists and does not have a policy set.
1191
- # @param [String] resource
1192
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1193
- # names](https://cloud.google.com/apis/design/resource_names) for the
1194
- # appropriate value for this field.
1195
- # @param [Fixnum] options_requested_policy_version
1196
- # Optional. The maximum policy version that will be used to format the policy.
1197
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1198
- # rejected. Requests for policies with any conditional role bindings must
1199
- # specify version 3. Policies with no conditional role bindings may specify any
1200
- # valid value or leave the field unset. The policy in the response might use the
1201
- # policy version that you specified, or it might use a lower policy version. For
1202
- # example, if you specify version 3, but the policy has no conditional role
1203
- # bindings, the response uses version 1. To learn which resources support
1204
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1205
- # google.com/iam/help/conditions/resource-policies).
1156
+ # Updates the parameters of a single ServiceClass.
1157
+ # @param [String] name
1158
+ # Immutable. The name of a ServiceClass resource. Format: projects/`project`/
1159
+ # locations/`location`/serviceClasses/`service_class` See: https://google.aip.
1160
+ # dev/122#fields-representing-resource-names
1161
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceClass] service_class_object
1162
+ # @param [String] request_id
1163
+ # Optional. An optional request ID to identify requests. Specify a unique
1164
+ # request ID so that if you must retry your request, the server will know to
1165
+ # ignore the request if it has already been completed. The server will guarantee
1166
+ # that for at least 60 minutes since the first request. For example, consider a
1167
+ # situation where you make an initial request and the request times out. If you
1168
+ # make the request again with the same request ID, the server can check if
1169
+ # original operation with the same request ID was received, and if so, will
1170
+ # ignore the second request. This prevents clients from accidentally creating
1171
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1172
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1173
+ # @param [String] update_mask
1174
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1175
+ # ServiceClass resource by the update. The fields specified in the update_mask
1176
+ # are relative to the resource, not the full request. A field will be
1177
+ # overwritten if it is in the mask. If the user does not provide a mask then all
1178
+ # fields will be overwritten.
1206
1179
  # @param [String] fields
1207
1180
  # Selector specifying which fields to include in a partial response.
1208
1181
  # @param [String] quota_user
@@ -1212,20 +1185,23 @@ module Google
1212
1185
  # Request-specific options
1213
1186
  #
1214
1187
  # @yield [result, err] Result & error if block supplied
1215
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1188
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1216
1189
  # @yieldparam err [StandardError] error object if request failed
1217
1190
  #
1218
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1191
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1219
1192
  #
1220
1193
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1221
1194
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1222
1195
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1223
- def get_project_location_service_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1224
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1225
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1226
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1227
- command.params['resource'] = resource unless resource.nil?
1228
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1196
+ def patch_project_location_service_class(name, service_class_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1197
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1198
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
1199
+ command.request_object = service_class_object
1200
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1201
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1202
+ command.params['name'] = name unless name.nil?
1203
+ command.query['requestId'] = request_id unless request_id.nil?
1204
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1229
1205
  command.query['fields'] = fields unless fields.nil?
1230
1206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1231
1207
  execute_or_queue_command(command, &block)
@@ -1256,7 +1232,7 @@ module Google
1256
1232
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1257
1233
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1258
1234
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1259
- def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1235
+ def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1260
1236
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1261
1237
  command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1262
1238
  command.request_object = set_iam_policy_request_object
@@ -1295,7 +1271,7 @@ module Google
1295
1271
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1296
1272
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1297
1273
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1298
- def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1274
+ def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1299
1275
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1300
1276
  command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1301
1277
  command.request_object = test_iam_permissions_request_object
@@ -1307,6 +1283,848 @@ module Google
1307
1283
  execute_or_queue_command(command, &block)
1308
1284
  end
1309
1285
 
1286
+ # Creates a new ServiceConnectionMap in a given project and location.
1287
+ # @param [String] parent
1288
+ # Required. The parent resource's name of the ServiceConnectionMap.
1289
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] service_connection_map_object
1290
+ # @param [String] request_id
1291
+ # Optional. An optional request ID to identify requests. Specify a unique
1292
+ # request ID so that if you must retry your request, the server will know to
1293
+ # ignore the request if it has already been completed. The server will guarantee
1294
+ # that for at least 60 minutes since the first request. For example, consider a
1295
+ # situation where you make an initial request and the request times out. If you
1296
+ # make the request again with the same request ID, the server can check if
1297
+ # original operation with the same request ID was received, and if so, will
1298
+ # ignore the second request. This prevents clients from accidentally creating
1299
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1300
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1301
+ # @param [String] service_connection_map_id
1302
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
1303
+ # serviceConnectionMaps/foo') See https://google.aip.dev/122#resource-id-
1304
+ # segments Unique per location. If one is not provided, one will be generated.
1305
+ # @param [String] fields
1306
+ # Selector specifying which fields to include in a partial response.
1307
+ # @param [String] quota_user
1308
+ # Available to use for quota purposes for server-side applications. Can be any
1309
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1310
+ # @param [Google::Apis::RequestOptions] options
1311
+ # Request-specific options
1312
+ #
1313
+ # @yield [result, err] Result & error if block supplied
1314
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1315
+ # @yieldparam err [StandardError] error object if request failed
1316
+ #
1317
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1318
+ #
1319
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
+ def create_project_location_service_connection_map(parent, service_connection_map_object = nil, request_id: nil, service_connection_map_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1323
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionMaps', options)
1324
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1325
+ command.request_object = service_connection_map_object
1326
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1327
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1328
+ command.params['parent'] = parent unless parent.nil?
1329
+ command.query['requestId'] = request_id unless request_id.nil?
1330
+ command.query['serviceConnectionMapId'] = service_connection_map_id unless service_connection_map_id.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
+ # Deletes a single ServiceConnectionMap.
1337
+ # @param [String] name
1338
+ # Required. The name of the ServiceConnectionMap to delete.
1339
+ # @param [String] request_id
1340
+ # Optional. An optional request ID to identify requests. Specify a unique
1341
+ # request ID so that if you must retry your request, the server will know to
1342
+ # ignore the request if it has already been completed. The server will guarantee
1343
+ # that for at least 60 minutes after the first request. For example, consider a
1344
+ # situation where you make an initial request and the request times out. If you
1345
+ # make the request again with the same request ID, the server can check if
1346
+ # original operation with the same request ID was received, and if so, will
1347
+ # ignore the second request. This prevents clients from accidentally creating
1348
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1349
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1350
+ # @param [String] fields
1351
+ # Selector specifying which fields to include in a partial response.
1352
+ # @param [String] quota_user
1353
+ # Available to use for quota purposes for server-side applications. Can be any
1354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1355
+ # @param [Google::Apis::RequestOptions] options
1356
+ # Request-specific options
1357
+ #
1358
+ # @yield [result, err] Result & error if block supplied
1359
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1360
+ # @yieldparam err [StandardError] error object if request failed
1361
+ #
1362
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1363
+ #
1364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1367
+ def delete_project_location_service_connection_map(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1368
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1369
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1370
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1371
+ command.params['name'] = name unless name.nil?
1372
+ command.query['requestId'] = request_id unless request_id.nil?
1373
+ command.query['fields'] = fields unless fields.nil?
1374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1375
+ execute_or_queue_command(command, &block)
1376
+ end
1377
+
1378
+ # Gets details of a single ServiceConnectionMap.
1379
+ # @param [String] name
1380
+ # Required. Name of the ServiceConnectionMap to get.
1381
+ # @param [String] fields
1382
+ # Selector specifying which fields to include in a partial response.
1383
+ # @param [String] quota_user
1384
+ # Available to use for quota purposes for server-side applications. Can be any
1385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1386
+ # @param [Google::Apis::RequestOptions] options
1387
+ # Request-specific options
1388
+ #
1389
+ # @yield [result, err] Result & error if block supplied
1390
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] parsed result object
1391
+ # @yieldparam err [StandardError] error object if request failed
1392
+ #
1393
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap]
1394
+ #
1395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1398
+ def get_project_location_service_connection_map(name, fields: nil, quota_user: nil, options: nil, &block)
1399
+ command = make_simple_command(:get, 'v1/{+name}', options)
1400
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1401
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap
1402
+ command.params['name'] = name unless name.nil?
1403
+ command.query['fields'] = fields unless fields.nil?
1404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
+ execute_or_queue_command(command, &block)
1406
+ end
1407
+
1408
+ # Gets the access control policy for a resource. Returns an empty policy if the
1409
+ # resource exists and does not have a policy set.
1410
+ # @param [String] resource
1411
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1412
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1413
+ # appropriate value for this field.
1414
+ # @param [Fixnum] options_requested_policy_version
1415
+ # Optional. The maximum policy version that will be used to format the policy.
1416
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1417
+ # rejected. Requests for policies with any conditional role bindings must
1418
+ # specify version 3. Policies with no conditional role bindings may specify any
1419
+ # valid value or leave the field unset. The policy in the response might use the
1420
+ # policy version that you specified, or it might use a lower policy version. For
1421
+ # example, if you specify version 3, but the policy has no conditional role
1422
+ # bindings, the response uses version 1. To learn which resources support
1423
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1424
+ # google.com/iam/help/conditions/resource-policies).
1425
+ # @param [String] fields
1426
+ # Selector specifying which fields to include in a partial response.
1427
+ # @param [String] quota_user
1428
+ # Available to use for quota purposes for server-side applications. Can be any
1429
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1430
+ # @param [Google::Apis::RequestOptions] options
1431
+ # Request-specific options
1432
+ #
1433
+ # @yield [result, err] Result & error if block supplied
1434
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1435
+ # @yieldparam err [StandardError] error object if request failed
1436
+ #
1437
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1438
+ #
1439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1442
+ def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1443
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1444
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1445
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1446
+ command.params['resource'] = resource unless resource.nil?
1447
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1448
+ command.query['fields'] = fields unless fields.nil?
1449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1450
+ execute_or_queue_command(command, &block)
1451
+ end
1452
+
1453
+ # Lists ServiceConnectionMaps in a given project and location.
1454
+ # @param [String] parent
1455
+ # Required. The parent resource's name.
1456
+ # @param [String] filter
1457
+ # A filter expression that filters the results listed in the response.
1458
+ # @param [String] order_by
1459
+ # Sort the results by a certain order.
1460
+ # @param [Fixnum] page_size
1461
+ # The maximum number of results per page that should be returned.
1462
+ # @param [String] page_token
1463
+ # The page token.
1464
+ # @param [String] fields
1465
+ # Selector specifying which fields to include in a partial response.
1466
+ # @param [String] quota_user
1467
+ # Available to use for quota purposes for server-side applications. Can be any
1468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1469
+ # @param [Google::Apis::RequestOptions] options
1470
+ # Request-specific options
1471
+ #
1472
+ # @yield [result, err] Result & error if block supplied
1473
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse] parsed result object
1474
+ # @yieldparam err [StandardError] error object if request failed
1475
+ #
1476
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse]
1477
+ #
1478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
+ def list_project_location_service_connection_maps(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1482
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionMaps', options)
1483
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse::Representation
1484
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionMapsResponse
1485
+ command.params['parent'] = parent unless parent.nil?
1486
+ command.query['filter'] = filter unless filter.nil?
1487
+ command.query['orderBy'] = order_by unless order_by.nil?
1488
+ command.query['pageSize'] = page_size unless page_size.nil?
1489
+ command.query['pageToken'] = page_token unless page_token.nil?
1490
+ command.query['fields'] = fields unless fields.nil?
1491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1492
+ execute_or_queue_command(command, &block)
1493
+ end
1494
+
1495
+ # Updates the parameters of a single ServiceConnectionMap.
1496
+ # @param [String] name
1497
+ # Immutable. The name of a ServiceConnectionMap. Format: projects/`project`/
1498
+ # locations/`location`/serviceConnectionMaps/`service_connection_map` See: https:
1499
+ # //google.aip.dev/122#fields-representing-resource-names
1500
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionMap] service_connection_map_object
1501
+ # @param [String] request_id
1502
+ # Optional. An optional request ID to identify requests. Specify a unique
1503
+ # request ID so that if you must retry your request, the server will know to
1504
+ # ignore the request if it has already been completed. The server will guarantee
1505
+ # that for at least 60 minutes since the first request. For example, consider a
1506
+ # situation where you make an initial request and the request times out. If you
1507
+ # make the request again with the same request ID, the server can check if
1508
+ # original operation with the same request ID was received, and if so, will
1509
+ # ignore the second request. This prevents clients from accidentally creating
1510
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1511
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1512
+ # @param [String] update_mask
1513
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1514
+ # ServiceConnectionMap resource by the update. The fields specified in the
1515
+ # update_mask are relative to the resource, not the full request. A field will
1516
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1517
+ # all fields will be overwritten.
1518
+ # @param [String] fields
1519
+ # Selector specifying which fields to include in a partial response.
1520
+ # @param [String] quota_user
1521
+ # Available to use for quota purposes for server-side applications. Can be any
1522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def patch_project_location_service_connection_map(name, service_connection_map_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1536
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1537
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionMap::Representation
1538
+ command.request_object = service_connection_map_object
1539
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1540
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1541
+ command.params['name'] = name unless name.nil?
1542
+ command.query['requestId'] = request_id unless request_id.nil?
1543
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1544
+ command.query['fields'] = fields unless fields.nil?
1545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1546
+ execute_or_queue_command(command, &block)
1547
+ end
1548
+
1549
+ # Sets the access control policy on the specified resource. Replaces any
1550
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1551
+ # PERMISSION_DENIED` errors.
1552
+ # @param [String] resource
1553
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1554
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1555
+ # appropriate value for this field.
1556
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1557
+ # @param [String] fields
1558
+ # Selector specifying which fields to include in a partial response.
1559
+ # @param [String] quota_user
1560
+ # Available to use for quota purposes for server-side applications. Can be any
1561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1562
+ # @param [Google::Apis::RequestOptions] options
1563
+ # Request-specific options
1564
+ #
1565
+ # @yield [result, err] Result & error if block supplied
1566
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1567
+ # @yieldparam err [StandardError] error object if request failed
1568
+ #
1569
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1570
+ #
1571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
+ def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1575
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1576
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1577
+ command.request_object = set_iam_policy_request_object
1578
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1579
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1580
+ command.params['resource'] = resource unless resource.nil?
1581
+ command.query['fields'] = fields unless fields.nil?
1582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1583
+ execute_or_queue_command(command, &block)
1584
+ end
1585
+
1586
+ # Returns permissions that a caller has on the specified resource. If the
1587
+ # resource does not exist, this will return an empty set of permissions, not a `
1588
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1589
+ # permission-aware UIs and command-line tools, not for authorization checking.
1590
+ # This operation may "fail open" without warning.
1591
+ # @param [String] resource
1592
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1593
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1594
+ # appropriate value for this field.
1595
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1596
+ # @param [String] fields
1597
+ # Selector specifying which fields to include in a partial response.
1598
+ # @param [String] quota_user
1599
+ # Available to use for quota purposes for server-side applications. Can be any
1600
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1601
+ # @param [Google::Apis::RequestOptions] options
1602
+ # Request-specific options
1603
+ #
1604
+ # @yield [result, err] Result & error if block supplied
1605
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1606
+ # @yieldparam err [StandardError] error object if request failed
1607
+ #
1608
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1609
+ #
1610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1613
+ def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1614
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1615
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1616
+ command.request_object = test_iam_permissions_request_object
1617
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1618
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1619
+ command.params['resource'] = resource unless resource.nil?
1620
+ command.query['fields'] = fields unless fields.nil?
1621
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1622
+ execute_or_queue_command(command, &block)
1623
+ end
1624
+
1625
+ # Creates a new ServiceConnectionPolicy in a given project and location.
1626
+ # @param [String] parent
1627
+ # Required. The parent resource's name of the ServiceConnectionPolicy.
1628
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] service_connection_policy_object
1629
+ # @param [String] request_id
1630
+ # Optional. An optional request ID to identify requests. Specify a unique
1631
+ # request ID so that if you must retry your request, the server will know to
1632
+ # ignore the request if it has already been completed. The server will guarantee
1633
+ # that for at least 60 minutes since the first request. For example, consider a
1634
+ # situation where you make an initial request and the request times out. If you
1635
+ # make the request again with the same request ID, the server can check if
1636
+ # original operation with the same request ID was received, and if so, will
1637
+ # ignore the second request. This prevents clients from accidentally creating
1638
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1639
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1640
+ # @param [String] service_connection_policy_id
1641
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
1642
+ # serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-
1643
+ # segments Unique per location.
1644
+ # @param [String] fields
1645
+ # Selector specifying which fields to include in a partial response.
1646
+ # @param [String] quota_user
1647
+ # Available to use for quota purposes for server-side applications. Can be any
1648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1649
+ # @param [Google::Apis::RequestOptions] options
1650
+ # Request-specific options
1651
+ #
1652
+ # @yield [result, err] Result & error if block supplied
1653
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1654
+ # @yieldparam err [StandardError] error object if request failed
1655
+ #
1656
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1657
+ #
1658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1661
+ def create_project_location_service_connection_policy(parent, service_connection_policy_object = nil, request_id: nil, service_connection_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1662
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionPolicies', options)
1663
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1664
+ command.request_object = service_connection_policy_object
1665
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1666
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1667
+ command.params['parent'] = parent unless parent.nil?
1668
+ command.query['requestId'] = request_id unless request_id.nil?
1669
+ command.query['serviceConnectionPolicyId'] = service_connection_policy_id unless service_connection_policy_id.nil?
1670
+ command.query['fields'] = fields unless fields.nil?
1671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1672
+ execute_or_queue_command(command, &block)
1673
+ end
1674
+
1675
+ # Deletes a single ServiceConnectionPolicy.
1676
+ # @param [String] name
1677
+ # Required. The name of the ServiceConnectionPolicy to delete.
1678
+ # @param [String] request_id
1679
+ # Optional. An optional request ID to identify requests. Specify a unique
1680
+ # request ID so that if you must retry your request, the server will know to
1681
+ # ignore the request if it has already been completed. The server will guarantee
1682
+ # that for at least 60 minutes after the first request. For example, consider a
1683
+ # situation where you make an initial request and the request times out. If you
1684
+ # make the request again with the same request ID, the server can check if
1685
+ # original operation with the same request ID was received, and if so, will
1686
+ # ignore the second request. This prevents clients from accidentally creating
1687
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1688
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1689
+ # @param [String] fields
1690
+ # Selector specifying which fields to include in a partial response.
1691
+ # @param [String] quota_user
1692
+ # Available to use for quota purposes for server-side applications. Can be any
1693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1694
+ # @param [Google::Apis::RequestOptions] options
1695
+ # Request-specific options
1696
+ #
1697
+ # @yield [result, err] Result & error if block supplied
1698
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1699
+ # @yieldparam err [StandardError] error object if request failed
1700
+ #
1701
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1702
+ #
1703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1706
+ def delete_project_location_service_connection_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1707
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1708
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1709
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1710
+ command.params['name'] = name unless name.nil?
1711
+ command.query['requestId'] = request_id unless request_id.nil?
1712
+ command.query['fields'] = fields unless fields.nil?
1713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1714
+ execute_or_queue_command(command, &block)
1715
+ end
1716
+
1717
+ # Gets details of a single ServiceConnectionPolicy.
1718
+ # @param [String] name
1719
+ # Required. Name of the ServiceConnectionPolicy to get.
1720
+ # @param [String] fields
1721
+ # Selector specifying which fields to include in a partial response.
1722
+ # @param [String] quota_user
1723
+ # Available to use for quota purposes for server-side applications. Can be any
1724
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1725
+ # @param [Google::Apis::RequestOptions] options
1726
+ # Request-specific options
1727
+ #
1728
+ # @yield [result, err] Result & error if block supplied
1729
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] parsed result object
1730
+ # @yieldparam err [StandardError] error object if request failed
1731
+ #
1732
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy]
1733
+ #
1734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1737
+ def get_project_location_service_connection_policy(name, fields: nil, quota_user: nil, options: nil, &block)
1738
+ command = make_simple_command(:get, 'v1/{+name}', options)
1739
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1740
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy
1741
+ command.params['name'] = name unless name.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
+ # Gets the access control policy for a resource. Returns an empty policy if the
1748
+ # resource exists and does not have a policy set.
1749
+ # @param [String] resource
1750
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1751
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1752
+ # appropriate value for this field.
1753
+ # @param [Fixnum] options_requested_policy_version
1754
+ # Optional. The maximum policy version that will be used to format the policy.
1755
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1756
+ # rejected. Requests for policies with any conditional role bindings must
1757
+ # specify version 3. Policies with no conditional role bindings may specify any
1758
+ # valid value or leave the field unset. The policy in the response might use the
1759
+ # policy version that you specified, or it might use a lower policy version. For
1760
+ # example, if you specify version 3, but the policy has no conditional role
1761
+ # bindings, the response uses version 1. To learn which resources support
1762
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1763
+ # google.com/iam/help/conditions/resource-policies).
1764
+ # @param [String] fields
1765
+ # Selector specifying which fields to include in a partial response.
1766
+ # @param [String] quota_user
1767
+ # Available to use for quota purposes for server-side applications. Can be any
1768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1769
+ # @param [Google::Apis::RequestOptions] options
1770
+ # Request-specific options
1771
+ #
1772
+ # @yield [result, err] Result & error if block supplied
1773
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1774
+ # @yieldparam err [StandardError] error object if request failed
1775
+ #
1776
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1777
+ #
1778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1781
+ def get_project_location_service_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1782
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1783
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1784
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1785
+ command.params['resource'] = resource unless resource.nil?
1786
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1787
+ command.query['fields'] = fields unless fields.nil?
1788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1789
+ execute_or_queue_command(command, &block)
1790
+ end
1791
+
1792
+ # Lists ServiceConnectionPolicies in a given project and location.
1793
+ # @param [String] parent
1794
+ # Required. The parent resource's name.
1795
+ # @param [String] filter
1796
+ # A filter expression that filters the results listed in the response.
1797
+ # @param [String] order_by
1798
+ # Sort the results by a certain order.
1799
+ # @param [Fixnum] page_size
1800
+ # The maximum number of results per page that should be returned.
1801
+ # @param [String] page_token
1802
+ # The page token.
1803
+ # @param [String] fields
1804
+ # Selector specifying which fields to include in a partial response.
1805
+ # @param [String] quota_user
1806
+ # Available to use for quota purposes for server-side applications. Can be any
1807
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1808
+ # @param [Google::Apis::RequestOptions] options
1809
+ # Request-specific options
1810
+ #
1811
+ # @yield [result, err] Result & error if block supplied
1812
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse] parsed result object
1813
+ # @yieldparam err [StandardError] error object if request failed
1814
+ #
1815
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse]
1816
+ #
1817
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1818
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1819
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1820
+ def list_project_location_service_connection_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1821
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionPolicies', options)
1822
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse::Representation
1823
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse
1824
+ command.params['parent'] = parent unless parent.nil?
1825
+ command.query['filter'] = filter unless filter.nil?
1826
+ command.query['orderBy'] = order_by unless order_by.nil?
1827
+ command.query['pageSize'] = page_size unless page_size.nil?
1828
+ command.query['pageToken'] = page_token unless page_token.nil?
1829
+ command.query['fields'] = fields unless fields.nil?
1830
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1831
+ execute_or_queue_command(command, &block)
1832
+ end
1833
+
1834
+ # Updates the parameters of a single ServiceConnectionPolicy.
1835
+ # @param [String] name
1836
+ # Immutable. The name of a ServiceConnectionPolicy. Format: projects/`project`/
1837
+ # locations/`location`/serviceConnectionPolicies/`service_connection_policy` See:
1838
+ # https://google.aip.dev/122#fields-representing-resource-names
1839
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy] service_connection_policy_object
1840
+ # @param [String] request_id
1841
+ # Optional. An optional request ID to identify requests. Specify a unique
1842
+ # request ID so that if you must retry your request, the server will know to
1843
+ # ignore the request if it has already been completed. The server will guarantee
1844
+ # that for at least 60 minutes since the first request. For example, consider a
1845
+ # situation where you make an initial request and the request times out. If you
1846
+ # make the request again with the same request ID, the server can check if
1847
+ # original operation with the same request ID was received, and if so, will
1848
+ # ignore the second request. This prevents clients from accidentally creating
1849
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1850
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1851
+ # @param [String] update_mask
1852
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1853
+ # ServiceConnectionPolicy resource by the update. The fields specified in the
1854
+ # update_mask are relative to the resource, not the full request. A field will
1855
+ # be overwritten if it is in the mask. If the user does not provide a mask then
1856
+ # all fields will be overwritten.
1857
+ # @param [String] fields
1858
+ # Selector specifying which fields to include in a partial response.
1859
+ # @param [String] quota_user
1860
+ # Available to use for quota purposes for server-side applications. Can be any
1861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1862
+ # @param [Google::Apis::RequestOptions] options
1863
+ # Request-specific options
1864
+ #
1865
+ # @yield [result, err] Result & error if block supplied
1866
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1867
+ # @yieldparam err [StandardError] error object if request failed
1868
+ #
1869
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1870
+ #
1871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1874
+ def patch_project_location_service_connection_policy(name, service_connection_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1875
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1876
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy::Representation
1877
+ command.request_object = service_connection_policy_object
1878
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1879
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1880
+ command.params['name'] = name unless name.nil?
1881
+ command.query['requestId'] = request_id unless request_id.nil?
1882
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1883
+ command.query['fields'] = fields unless fields.nil?
1884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1885
+ execute_or_queue_command(command, &block)
1886
+ end
1887
+
1888
+ # Sets the access control policy on the specified resource. Replaces any
1889
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1890
+ # PERMISSION_DENIED` errors.
1891
+ # @param [String] resource
1892
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1893
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1894
+ # appropriate value for this field.
1895
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1896
+ # @param [String] fields
1897
+ # Selector specifying which fields to include in a partial response.
1898
+ # @param [String] quota_user
1899
+ # Available to use for quota purposes for server-side applications. Can be any
1900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1901
+ # @param [Google::Apis::RequestOptions] options
1902
+ # Request-specific options
1903
+ #
1904
+ # @yield [result, err] Result & error if block supplied
1905
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1906
+ # @yieldparam err [StandardError] error object if request failed
1907
+ #
1908
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1909
+ #
1910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1913
+ def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1914
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1915
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1916
+ command.request_object = set_iam_policy_request_object
1917
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1918
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1919
+ command.params['resource'] = resource unless resource.nil?
1920
+ command.query['fields'] = fields unless fields.nil?
1921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1922
+ execute_or_queue_command(command, &block)
1923
+ end
1924
+
1925
+ # Returns permissions that a caller has on the specified resource. If the
1926
+ # resource does not exist, this will return an empty set of permissions, not a `
1927
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1928
+ # permission-aware UIs and command-line tools, not for authorization checking.
1929
+ # This operation may "fail open" without warning.
1930
+ # @param [String] resource
1931
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1932
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1933
+ # appropriate value for this field.
1934
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1935
+ # @param [String] fields
1936
+ # Selector specifying which fields to include in a partial response.
1937
+ # @param [String] quota_user
1938
+ # Available to use for quota purposes for server-side applications. Can be any
1939
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1940
+ # @param [Google::Apis::RequestOptions] options
1941
+ # Request-specific options
1942
+ #
1943
+ # @yield [result, err] Result & error if block supplied
1944
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1945
+ # @yieldparam err [StandardError] error object if request failed
1946
+ #
1947
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1948
+ #
1949
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1950
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1951
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1952
+ def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1953
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1954
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1955
+ command.request_object = test_iam_permissions_request_object
1956
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1957
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1958
+ command.params['resource'] = resource unless resource.nil?
1959
+ command.query['fields'] = fields unless fields.nil?
1960
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1961
+ execute_or_queue_command(command, &block)
1962
+ end
1963
+
1964
+ # Creates a new ServiceConnectionToken in a given project and location.
1965
+ # @param [String] parent
1966
+ # Required. The parent resource's name of the ServiceConnectionToken.
1967
+ # @param [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] service_connection_token_object
1968
+ # @param [String] request_id
1969
+ # Optional. An optional request ID to identify requests. Specify a unique
1970
+ # request ID so that if you must retry your request, the server will know to
1971
+ # ignore the request if it has already been completed. The server will guarantee
1972
+ # that for at least 60 minutes since the first request. For example, consider a
1973
+ # situation where you make an initial request and the request times out. If you
1974
+ # make the request again with the same request ID, the server can check if
1975
+ # original operation with the same request ID was received, and if so, will
1976
+ # ignore the second request. This prevents clients from accidentally creating
1977
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1978
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1979
+ # @param [String] service_connection_token_id
1980
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
1981
+ # ServiceConnectionTokens/foo') See https://google.aip.dev/122#resource-id-
1982
+ # segments Unique per location. If one is not provided, one will be generated.
1983
+ # @param [String] fields
1984
+ # Selector specifying which fields to include in a partial response.
1985
+ # @param [String] quota_user
1986
+ # Available to use for quota purposes for server-side applications. Can be any
1987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1988
+ # @param [Google::Apis::RequestOptions] options
1989
+ # Request-specific options
1990
+ #
1991
+ # @yield [result, err] Result & error if block supplied
1992
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1993
+ # @yieldparam err [StandardError] error object if request failed
1994
+ #
1995
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1996
+ #
1997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2000
+ def create_project_location_service_connection_token(parent, service_connection_token_object = nil, request_id: nil, service_connection_token_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2001
+ command = make_simple_command(:post, 'v1/{+parent}/serviceConnectionTokens', options)
2002
+ command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken::Representation
2003
+ command.request_object = service_connection_token_object
2004
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2005
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2006
+ command.params['parent'] = parent unless parent.nil?
2007
+ command.query['requestId'] = request_id unless request_id.nil?
2008
+ command.query['serviceConnectionTokenId'] = service_connection_token_id unless service_connection_token_id.nil?
2009
+ command.query['fields'] = fields unless fields.nil?
2010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2011
+ execute_or_queue_command(command, &block)
2012
+ end
2013
+
2014
+ # Deletes a single ServiceConnectionToken.
2015
+ # @param [String] name
2016
+ # Required. The name of the ServiceConnectionToken to delete.
2017
+ # @param [String] request_id
2018
+ # Optional. An optional request ID to identify requests. Specify a unique
2019
+ # request ID so that if you must retry your request, the server will know to
2020
+ # ignore the request if it has already been completed. The server will guarantee
2021
+ # that for at least 60 minutes after the first request. For example, consider a
2022
+ # situation where you make an initial request and the request times out. If you
2023
+ # make the request again with the same request ID, the server can check if
2024
+ # original operation with the same request ID was received, and if so, will
2025
+ # ignore the second request. This prevents clients from accidentally creating
2026
+ # duplicate commitments. The request ID must be a valid UUID with the exception
2027
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2028
+ # @param [String] fields
2029
+ # Selector specifying which fields to include in a partial response.
2030
+ # @param [String] quota_user
2031
+ # Available to use for quota purposes for server-side applications. Can be any
2032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2033
+ # @param [Google::Apis::RequestOptions] options
2034
+ # Request-specific options
2035
+ #
2036
+ # @yield [result, err] Result & error if block supplied
2037
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
2038
+ # @yieldparam err [StandardError] error object if request failed
2039
+ #
2040
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
2041
+ #
2042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2045
+ def delete_project_location_service_connection_token(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2046
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2047
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2048
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2049
+ command.params['name'] = name unless name.nil?
2050
+ command.query['requestId'] = request_id unless request_id.nil?
2051
+ command.query['fields'] = fields unless fields.nil?
2052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2053
+ execute_or_queue_command(command, &block)
2054
+ end
2055
+
2056
+ # Gets details of a single ServiceConnectionToken.
2057
+ # @param [String] name
2058
+ # Required. Name of the ServiceConnectionToken to get.
2059
+ # @param [String] fields
2060
+ # Selector specifying which fields to include in a partial response.
2061
+ # @param [String] quota_user
2062
+ # Available to use for quota purposes for server-side applications. Can be any
2063
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2064
+ # @param [Google::Apis::RequestOptions] options
2065
+ # Request-specific options
2066
+ #
2067
+ # @yield [result, err] Result & error if block supplied
2068
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] parsed result object
2069
+ # @yieldparam err [StandardError] error object if request failed
2070
+ #
2071
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken]
2072
+ #
2073
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2074
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2075
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2076
+ def get_project_location_service_connection_token(name, fields: nil, quota_user: nil, options: nil, &block)
2077
+ command = make_simple_command(:get, 'v1/{+name}', options)
2078
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken::Representation
2079
+ command.response_class = Google::Apis::NetworkconnectivityV1::ServiceConnectionToken
2080
+ command.params['name'] = name unless name.nil?
2081
+ command.query['fields'] = fields unless fields.nil?
2082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2083
+ execute_or_queue_command(command, &block)
2084
+ end
2085
+
2086
+ # Lists ServiceConnectionTokens in a given project and location.
2087
+ # @param [String] parent
2088
+ # Required. The parent resource's name.
2089
+ # @param [String] filter
2090
+ # A filter expression that filters the results listed in the response.
2091
+ # @param [String] order_by
2092
+ # Sort the results by a certain order.
2093
+ # @param [Fixnum] page_size
2094
+ # The maximum number of results per page that should be returned.
2095
+ # @param [String] page_token
2096
+ # The page token.
2097
+ # @param [String] fields
2098
+ # Selector specifying which fields to include in a partial response.
2099
+ # @param [String] quota_user
2100
+ # Available to use for quota purposes for server-side applications. Can be any
2101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2102
+ # @param [Google::Apis::RequestOptions] options
2103
+ # Request-specific options
2104
+ #
2105
+ # @yield [result, err] Result & error if block supplied
2106
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse] parsed result object
2107
+ # @yieldparam err [StandardError] error object if request failed
2108
+ #
2109
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse]
2110
+ #
2111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2114
+ def list_project_location_service_connection_tokens(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2115
+ command = make_simple_command(:get, 'v1/{+parent}/serviceConnectionTokens', options)
2116
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse::Representation
2117
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListServiceConnectionTokensResponse
2118
+ command.params['parent'] = parent unless parent.nil?
2119
+ command.query['filter'] = filter unless filter.nil?
2120
+ command.query['orderBy'] = order_by unless order_by.nil?
2121
+ command.query['pageSize'] = page_size unless page_size.nil?
2122
+ command.query['pageToken'] = page_token unless page_token.nil?
2123
+ command.query['fields'] = fields unless fields.nil?
2124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2125
+ execute_or_queue_command(command, &block)
2126
+ end
2127
+
1310
2128
  # Creates a Network Connectivity Center spoke.
1311
2129
  # @param [String] parent
1312
2130
  # Required. The parent resource.