google-apis-networkconnectivity_v1 0.23.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -293,7 +293,7 @@ module Google
293
293
  # @param [String] parent
294
294
  # Required. The parent resource's name.
295
295
  # @param [String] filter
296
- # An expression that filters the results listed in the response.
296
+ # An expression that filters the list of results.
297
297
  # @param [String] order_by
298
298
  # Sort the results by a certain order.
299
299
  # @param [Fixnum] page_size
@@ -595,7 +595,7 @@ module Google
595
595
  # request ID so that if you must retry your request, the server will know to
596
596
  # ignore the request if it has already been completed. The server will guarantee
597
597
  # that for at least 60 minutes since the first request. For example, consider a
598
- # situation where you make an initial request and t he request times out. If you
598
+ # situation where you make an initial request and the request times out. If you
599
599
  # make the request again with the same request ID, the server can check if
600
600
  # original operation with the same request ID was received, and if so, will
601
601
  # ignore the second request. This prevents clients from accidentally creating
@@ -640,7 +640,7 @@ module Google
640
640
  # request ID so that if you must retry your request, the server will know to
641
641
  # ignore the request if it has already been completed. The server will guarantee
642
642
  # that for at least 60 minutes after the first request. For example, consider a
643
- # situation where you make an initial request and t he request times out. If you
643
+ # situation where you make an initial request and the request times out. If you
644
644
  # make the request again with the same request ID, the server can check if
645
645
  # original operation with the same request ID was received, and if so, will
646
646
  # ignore the second request. This prevents clients from accidentally creating
@@ -757,7 +757,7 @@ module Google
757
757
  # request ID so that if you must retry your request, the server will know to
758
758
  # ignore the request if it has already been completed. The server will guarantee
759
759
  # that for at least 60 minutes since the first request. For example, consider a
760
- # situation where you make an initial request and t he request times out. If you
760
+ # situation where you make an initial request and the request times out. If you
761
761
  # make the request again with the same request ID, the server can check if
762
762
  # original operation with the same request ID was received, and if so, will
763
763
  # ignore the second request. This prevents clients from accidentally creating
@@ -905,13 +905,7 @@ module Google
905
905
  end
906
906
 
907
907
  # Lists operations that match the specified filter in the request. If the server
908
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
909
- # binding allows API services to override the binding to use different resource
910
- # name schemes, such as `users/*/operations`. To override the binding, API
911
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
912
- # service configuration. For backwards compatibility, the default name includes
913
- # the operations collection id, however overriding users must ensure the name
914
- # binding is the parent resource, without the operations collection id.
908
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
915
909
  # @param [String] name
916
910
  # The name of the operation's parent resource.
917
911
  # @param [String] filter
@@ -950,6 +944,467 @@ module Google
950
944
  execute_or_queue_command(command, &block)
951
945
  end
952
946
 
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.
966
+ # @param [String] fields
967
+ # Selector specifying which fields to include in a partial response.
968
+ # @param [String] quota_user
969
+ # Available to use for quota purposes for server-side applications. Can be any
970
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
971
+ # @param [Google::Apis::RequestOptions] options
972
+ # Request-specific options
973
+ #
974
+ # @yield [result, err] Result & error if block supplied
975
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
976
+ # @yieldparam err [StandardError] error object if request failed
977
+ #
978
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
979
+ #
980
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
981
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
982
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
992
+ command.query['fields'] = fields unless fields.nil?
993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
994
+ execute_or_queue_command(command, &block)
995
+ end
996
+
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).
1011
+ # @param [String] fields
1012
+ # Selector specifying which fields to include in a partial response.
1013
+ # @param [String] quota_user
1014
+ # Available to use for quota purposes for server-side applications. Can be any
1015
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1016
+ # @param [Google::Apis::RequestOptions] options
1017
+ # Request-specific options
1018
+ #
1019
+ # @yield [result, err] Result & error if block supplied
1020
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1021
+ # @yieldparam err [StandardError] error object if request failed
1022
+ #
1023
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1024
+ #
1025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
1034
+ command.query['fields'] = fields unless fields.nil?
1035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1036
+ execute_or_queue_command(command, &block)
1037
+ end
1038
+
1039
+ # Gets details of a single ServiceClass.
1040
+ # @param [String] name
1041
+ # Required. Name of the ServiceClass to get.
1042
+ # @param [String] fields
1043
+ # Selector specifying which fields to include in a partial response.
1044
+ # @param [String] quota_user
1045
+ # Available to use for quota purposes for server-side applications. Can be any
1046
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1047
+ # @param [Google::Apis::RequestOptions] options
1048
+ # Request-specific options
1049
+ #
1050
+ # @yield [result, err] Result & error if block supplied
1051
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceClass] parsed result object
1052
+ # @yieldparam err [StandardError] error object if request failed
1053
+ #
1054
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceClass]
1055
+ #
1056
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1057
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1058
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
1064
+ command.query['fields'] = fields unless fields.nil?
1065
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1066
+ execute_or_queue_command(command, &block)
1067
+ end
1068
+
1069
+ # Gets the access control policy for a resource. Returns an empty policy if the
1070
+ # resource exists and does not have a policy set.
1071
+ # @param [String] resource
1072
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1073
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1074
+ # appropriate value for this field.
1075
+ # @param [Fixnum] options_requested_policy_version
1076
+ # Optional. The maximum policy version that will be used to format the policy.
1077
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1078
+ # rejected. Requests for policies with any conditional role bindings must
1079
+ # specify version 3. Policies with no conditional role bindings may specify any
1080
+ # valid value or leave the field unset. The policy in the response might use the
1081
+ # policy version that you specified, or it might use a lower policy version. For
1082
+ # example, if you specify version 3, but the policy has no conditional role
1083
+ # bindings, the response uses version 1. To learn which resources support
1084
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1085
+ # google.com/iam/help/conditions/resource-policies).
1086
+ # @param [String] fields
1087
+ # Selector specifying which fields to include in a partial response.
1088
+ # @param [String] quota_user
1089
+ # Available to use for quota purposes for server-side applications. Can be any
1090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
+ # @param [Google::Apis::RequestOptions] options
1092
+ # Request-specific options
1093
+ #
1094
+ # @yield [result, err] Result & error if block supplied
1095
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1096
+ # @yieldparam err [StandardError] error object if request failed
1097
+ #
1098
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1099
+ #
1100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1103
+ def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1104
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1105
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1106
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1107
+ command.params['resource'] = resource unless resource.nil?
1108
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1109
+ command.query['fields'] = fields unless fields.nil?
1110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1111
+ execute_or_queue_command(command, &block)
1112
+ end
1113
+
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.
1125
+ # @param [String] fields
1126
+ # Selector specifying which fields to include in a partial response.
1127
+ # @param [String] quota_user
1128
+ # Available to use for quota purposes for server-side applications. Can be any
1129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1130
+ # @param [Google::Apis::RequestOptions] options
1131
+ # Request-specific options
1132
+ #
1133
+ # @yield [result, err] Result & error if block supplied
1134
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse] parsed result object
1135
+ # @yieldparam err [StandardError] error object if request failed
1136
+ #
1137
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceClassesResponse]
1138
+ #
1139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
1151
+ command.query['fields'] = fields unless fields.nil?
1152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1153
+ execute_or_queue_command(command, &block)
1154
+ end
1155
+
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.
1179
+ # @param [String] fields
1180
+ # Selector specifying which fields to include in a partial response.
1181
+ # @param [String] quota_user
1182
+ # Available to use for quota purposes for server-side applications. Can be any
1183
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1184
+ # @param [Google::Apis::RequestOptions] options
1185
+ # Request-specific options
1186
+ #
1187
+ # @yield [result, err] Result & error if block supplied
1188
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1189
+ # @yieldparam err [StandardError] error object if request failed
1190
+ #
1191
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1192
+ #
1193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
1205
+ command.query['fields'] = fields unless fields.nil?
1206
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1207
+ execute_or_queue_command(command, &block)
1208
+ end
1209
+
1210
+ # Sets the access control policy on the specified resource. Replaces any
1211
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1212
+ # PERMISSION_DENIED` errors.
1213
+ # @param [String] resource
1214
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1215
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1216
+ # appropriate value for this field.
1217
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1218
+ # @param [String] fields
1219
+ # Selector specifying which fields to include in a partial response.
1220
+ # @param [String] quota_user
1221
+ # Available to use for quota purposes for server-side applications. Can be any
1222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1223
+ # @param [Google::Apis::RequestOptions] options
1224
+ # Request-specific options
1225
+ #
1226
+ # @yield [result, err] Result & error if block supplied
1227
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1228
+ # @yieldparam err [StandardError] error object if request failed
1229
+ #
1230
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1231
+ #
1232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
+ def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1236
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1237
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1238
+ command.request_object = set_iam_policy_request_object
1239
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1240
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1241
+ command.params['resource'] = resource unless resource.nil?
1242
+ command.query['fields'] = fields unless fields.nil?
1243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1244
+ execute_or_queue_command(command, &block)
1245
+ end
1246
+
1247
+ # Returns permissions that a caller has on the specified resource. If the
1248
+ # resource does not exist, this will return an empty set of permissions, not a `
1249
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1250
+ # permission-aware UIs and command-line tools, not for authorization checking.
1251
+ # This operation may "fail open" without warning.
1252
+ # @param [String] resource
1253
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1254
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1255
+ # appropriate value for this field.
1256
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1257
+ # @param [String] fields
1258
+ # Selector specifying which fields to include in a partial response.
1259
+ # @param [String] quota_user
1260
+ # Available to use for quota purposes for server-side applications. Can be any
1261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1262
+ # @param [Google::Apis::RequestOptions] options
1263
+ # Request-specific options
1264
+ #
1265
+ # @yield [result, err] Result & error if block supplied
1266
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1267
+ # @yieldparam err [StandardError] error object if request failed
1268
+ #
1269
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1270
+ #
1271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1274
+ def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1275
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1276
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1277
+ command.request_object = test_iam_permissions_request_object
1278
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1279
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1280
+ command.params['resource'] = resource unless resource.nil?
1281
+ command.query['fields'] = fields unless fields.nil?
1282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1283
+ execute_or_queue_command(command, &block)
1284
+ end
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
+
953
1408
  # Gets the access control policy for a resource. Returns an empty policy if the
954
1409
  # resource exists and does not have a policy set.
955
1410
  # @param [String] resource
@@ -976,33 +1431,336 @@ module Google
976
1431
  # Request-specific options
977
1432
  #
978
1433
  # @yield [result, err] Result & error if block supplied
979
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
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
980
1730
  # @yieldparam err [StandardError] error object if request failed
981
1731
  #
982
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1732
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionPolicy]
983
1733
  #
984
1734
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
1735
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
1736
  # @raise [Google::Apis::AuthorizationError] Authorization is required
987
- def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
988
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
989
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
990
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
991
- command.params['resource'] = resource unless resource.nil?
992
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
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?
993
1742
  command.query['fields'] = fields unless fields.nil?
994
1743
  command.query['quotaUser'] = quota_user unless quota_user.nil?
995
1744
  execute_or_queue_command(command, &block)
996
1745
  end
997
1746
 
998
- # Sets the access control policy on the specified resource. Replaces any
999
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1000
- # PERMISSION_DENIED` errors.
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.
1001
1749
  # @param [String] resource
1002
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1750
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1003
1751
  # names](https://cloud.google.com/apis/design/resource_names) for the
1004
1752
  # appropriate value for this field.
1005
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
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).
1006
1764
  # @param [String] fields
1007
1765
  # Selector specifying which fields to include in a partial response.
1008
1766
  # @param [String] quota_user
@@ -1020,28 +1778,28 @@ module Google
1020
1778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1021
1779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1022
1780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1023
- def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1024
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1025
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1026
- command.request_object = set_iam_policy_request_object
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)
1027
1783
  command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1028
1784
  command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1029
1785
  command.params['resource'] = resource unless resource.nil?
1786
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1030
1787
  command.query['fields'] = fields unless fields.nil?
1031
1788
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1032
1789
  execute_or_queue_command(command, &block)
1033
1790
  end
1034
1791
 
1035
- # Returns permissions that a caller has on the specified resource. If the
1036
- # resource does not exist, this will return an empty set of permissions, not a `
1037
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1038
- # permission-aware UIs and command-line tools, not for authorization checking.
1039
- # This operation may "fail open" without warning.
1040
- # @param [String] resource
1041
- # REQUIRED: The resource for which the policy detail is being requested. See [
1042
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1043
- # appropriate value for this field.
1044
- # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
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.
1045
1803
  # @param [String] fields
1046
1804
  # Selector specifying which fields to include in a partial response.
1047
1805
  # @param [String] quota_user
@@ -1051,43 +1809,51 @@ module Google
1051
1809
  # Request-specific options
1052
1810
  #
1053
1811
  # @yield [result, err] Result & error if block supplied
1054
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1812
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse] parsed result object
1055
1813
  # @yieldparam err [StandardError] error object if request failed
1056
1814
  #
1057
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1815
+ # @return [Google::Apis::NetworkconnectivityV1::ListServiceConnectionPoliciesResponse]
1058
1816
  #
1059
1817
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1060
1818
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1061
1819
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1062
- def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1063
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1064
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1065
- command.request_object = test_iam_permissions_request_object
1066
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1067
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1068
- command.params['resource'] = resource unless resource.nil?
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?
1069
1829
  command.query['fields'] = fields unless fields.nil?
1070
1830
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1071
1831
  execute_or_queue_command(command, &block)
1072
1832
  end
1073
1833
 
1074
- # Gets the access control policy for a resource. Returns an empty policy if the
1075
- # resource exists and does not have a policy set.
1076
- # @param [String] resource
1077
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1078
- # names](https://cloud.google.com/apis/design/resource_names) for the
1079
- # appropriate value for this field.
1080
- # @param [Fixnum] options_requested_policy_version
1081
- # Optional. The maximum policy version that will be used to format the policy.
1082
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1083
- # rejected. Requests for policies with any conditional role bindings must
1084
- # specify version 3. Policies with no conditional role bindings may specify any
1085
- # valid value or leave the field unset. The policy in the response might use the
1086
- # policy version that you specified, or it might use a lower policy version. For
1087
- # example, if you specify version 3, but the policy has no conditional role
1088
- # bindings, the response uses version 1. To learn which resources support
1089
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1090
- # google.com/iam/help/conditions/resource-policies).
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.
1091
1857
  # @param [String] fields
1092
1858
  # Selector specifying which fields to include in a partial response.
1093
1859
  # @param [String] quota_user
@@ -1097,20 +1863,23 @@ module Google
1097
1863
  # Request-specific options
1098
1864
  #
1099
1865
  # @yield [result, err] Result & error if block supplied
1100
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1866
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1101
1867
  # @yieldparam err [StandardError] error object if request failed
1102
1868
  #
1103
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1869
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1104
1870
  #
1105
1871
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
1872
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
1873
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
- def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1109
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1110
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1111
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1112
- command.params['resource'] = resource unless resource.nil?
1113
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
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?
1114
1883
  command.query['fields'] = fields unless fields.nil?
1115
1884
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
1885
  execute_or_queue_command(command, &block)
@@ -1141,7 +1910,7 @@ module Google
1141
1910
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1142
1911
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1143
1912
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1144
- def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1913
+ def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1145
1914
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1146
1915
  command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1147
1916
  command.request_object = set_iam_policy_request_object
@@ -1180,7 +1949,7 @@ module Google
1180
1949
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1181
1950
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1182
1951
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1183
- def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1952
+ def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1184
1953
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1185
1954
  command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1186
1955
  command.request_object = test_iam_permissions_request_object
@@ -1192,23 +1961,25 @@ module Google
1192
1961
  execute_or_queue_command(command, &block)
1193
1962
  end
1194
1963
 
1195
- # Gets the access control policy for a resource. Returns an empty policy if the
1196
- # resource exists and does not have a policy set.
1197
- # @param [String] resource
1198
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1199
- # names](https://cloud.google.com/apis/design/resource_names) for the
1200
- # appropriate value for this field.
1201
- # @param [Fixnum] options_requested_policy_version
1202
- # Optional. The maximum policy version that will be used to format the policy.
1203
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1204
- # rejected. Requests for policies with any conditional role bindings must
1205
- # specify version 3. Policies with no conditional role bindings may specify any
1206
- # valid value or leave the field unset. The policy in the response might use the
1207
- # policy version that you specified, or it might use a lower policy version. For
1208
- # example, if you specify version 3, but the policy has no conditional role
1209
- # bindings, the response uses version 1. To learn which resources support
1210
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1211
- # google.com/iam/help/conditions/resource-policies).
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.
1212
1983
  # @param [String] fields
1213
1984
  # Selector specifying which fields to include in a partial response.
1214
1985
  # @param [String] quota_user
@@ -1218,33 +1989,42 @@ module Google
1218
1989
  # Request-specific options
1219
1990
  #
1220
1991
  # @yield [result, err] Result & error if block supplied
1221
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1992
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1222
1993
  # @yieldparam err [StandardError] error object if request failed
1223
1994
  #
1224
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
1995
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1225
1996
  #
1226
1997
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1227
1998
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1228
1999
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1229
- def get_project_location_service_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1230
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1231
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1232
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1233
- command.params['resource'] = resource unless resource.nil?
1234
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
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?
1235
2009
  command.query['fields'] = fields unless fields.nil?
1236
2010
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
2011
  execute_or_queue_command(command, &block)
1238
2012
  end
1239
2013
 
1240
- # Sets the access control policy on the specified resource. Replaces any
1241
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1242
- # PERMISSION_DENIED` errors.
1243
- # @param [String] resource
1244
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1245
- # names](https://cloud.google.com/apis/design/resource_names) for the
1246
- # appropriate value for this field.
1247
- # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
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).
1248
2028
  # @param [String] fields
1249
2029
  # Selector specifying which fields to include in a partial response.
1250
2030
  # @param [String] quota_user
@@ -1254,36 +2034,28 @@ module Google
1254
2034
  # Request-specific options
1255
2035
  #
1256
2036
  # @yield [result, err] Result & error if block supplied
1257
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
2037
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
1258
2038
  # @yieldparam err [StandardError] error object if request failed
1259
2039
  #
1260
- # @return [Google::Apis::NetworkconnectivityV1::Policy]
2040
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
1261
2041
  #
1262
2042
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1263
2043
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1264
2044
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1265
- def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1266
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1267
- command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1268
- command.request_object = set_iam_policy_request_object
1269
- command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1270
- command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1271
- command.params['resource'] = resource unless resource.nil?
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?
1272
2051
  command.query['fields'] = fields unless fields.nil?
1273
2052
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
2053
  execute_or_queue_command(command, &block)
1275
2054
  end
1276
2055
 
1277
- # Returns permissions that a caller has on the specified resource. If the
1278
- # resource does not exist, this will return an empty set of permissions, not a `
1279
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1280
- # permission-aware UIs and command-line tools, not for authorization checking.
1281
- # This operation may "fail open" without warning.
1282
- # @param [String] resource
1283
- # REQUIRED: The resource for which the policy detail is being requested. See [
1284
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1285
- # appropriate value for this field.
1286
- # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2056
+ # Gets details of a single ServiceConnectionToken.
2057
+ # @param [String] name
2058
+ # Required. Name of the ServiceConnectionToken to get.
1287
2059
  # @param [String] fields
1288
2060
  # Selector specifying which fields to include in a partial response.
1289
2061
  # @param [String] quota_user
@@ -1293,21 +2065,61 @@ module Google
1293
2065
  # Request-specific options
1294
2066
  #
1295
2067
  # @yield [result, err] Result & error if block supplied
1296
- # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
2068
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken] parsed result object
1297
2069
  # @yieldparam err [StandardError] error object if request failed
1298
2070
  #
1299
- # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
2071
+ # @return [Google::Apis::NetworkconnectivityV1::ServiceConnectionToken]
1300
2072
  #
1301
2073
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1302
2074
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1303
2075
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1304
- def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1305
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1306
- command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1307
- command.request_object = test_iam_permissions_request_object
1308
- command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1309
- command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1310
- command.params['resource'] = resource unless resource.nil?
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?
1311
2123
  command.query['fields'] = fields unless fields.nil?
1312
2124
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1313
2125
  execute_or_queue_command(command, &block)
@@ -1485,7 +2297,7 @@ module Google
1485
2297
  # @param [String] parent
1486
2298
  # Required. The parent resource.
1487
2299
  # @param [String] filter
1488
- # An expression that filters the results listed in the response.
2300
+ # An expression that filters the list of results.
1489
2301
  # @param [String] order_by
1490
2302
  # Sort the results by a certain order.
1491
2303
  # @param [Fixnum] page_size