google-apis-gkehub_v1alpha 0.46.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -752,6 +752,10 @@ module Google
752
752
  # @param [String] name
753
753
  # Required. The Membership resource name in the format `projects/*/locations/*/
754
754
  # memberships/*`.
755
+ # @param [Boolean] force
756
+ # Optional. If set to true, any subresource from this Membership will also be
757
+ # deleted. Otherwise, the request will only work if the Membership has no
758
+ # subresource.
755
759
  # @param [String] request_id
756
760
  # Optional. A request ID to identify requests. Specify a unique request ID so
757
761
  # that if you must retry your request, the server will know to ignore the
@@ -780,11 +784,12 @@ module Google
780
784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
783
- def delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
787
+ def delete_project_location_membership(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
784
788
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
785
789
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
786
790
  command.response_class = Google::Apis::GkehubV1alpha::Operation
787
791
  command.params['name'] = name unless name.nil?
792
+ command.query['force'] = force unless force.nil?
788
793
  command.query['requestId'] = request_id unless request_id.nil?
789
794
  command.query['fields'] = fields unless fields.nil?
790
795
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1191,17 +1196,47 @@ module Google
1191
1196
  execute_or_queue_command(command, &block)
1192
1197
  end
1193
1198
 
1194
- # Starts asynchronous cancellation on a long-running operation. The server makes
1195
- # a best effort to cancel the operation, but success is not guaranteed. If the
1196
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1197
- # Clients can use Operations.GetOperation or other methods to check whether the
1198
- # cancellation succeeded or whether the operation completed despite cancellation.
1199
- # On successful cancellation, the operation is not deleted; instead, it becomes
1200
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1201
- # corresponding to `Code.CANCELLED`.
1199
+ # Creates a MembershipBinding.
1200
+ # @param [String] parent
1201
+ # Required. The parent (project and location) where the MembershipBinding will
1202
+ # be created. Specified in the format `projects/*/locations/*/memberships/*`.
1203
+ # @param [Google::Apis::GkehubV1alpha::MembershipBinding] membership_binding_object
1204
+ # @param [String] membership_binding_id
1205
+ # Required. The ID to use for the MembershipBinding.
1206
+ # @param [String] fields
1207
+ # Selector specifying which fields to include in a partial response.
1208
+ # @param [String] quota_user
1209
+ # Available to use for quota purposes for server-side applications. Can be any
1210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1211
+ # @param [Google::Apis::RequestOptions] options
1212
+ # Request-specific options
1213
+ #
1214
+ # @yield [result, err] Result & error if block supplied
1215
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1216
+ # @yieldparam err [StandardError] error object if request failed
1217
+ #
1218
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1219
+ #
1220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1223
+ def create_project_location_membership_binding(parent, membership_binding_object = nil, membership_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1224
+ command = make_simple_command(:post, 'v1alpha/{+parent}/bindings', options)
1225
+ command.request_representation = Google::Apis::GkehubV1alpha::MembershipBinding::Representation
1226
+ command.request_object = membership_binding_object
1227
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1228
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1229
+ command.params['parent'] = parent unless parent.nil?
1230
+ command.query['membershipBindingId'] = membership_binding_id unless membership_binding_id.nil?
1231
+ command.query['fields'] = fields unless fields.nil?
1232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1233
+ execute_or_queue_command(command, &block)
1234
+ end
1235
+
1236
+ # Deletes a MembershipBinding.
1202
1237
  # @param [String] name
1203
- # The name of the operation resource to be cancelled.
1204
- # @param [Google::Apis::GkehubV1alpha::CancelOperationRequest] cancel_operation_request_object
1238
+ # Required. The MembershipBinding resource name in the format `projects/*/
1239
+ # locations/*/memberships/*/bindings/*`.
1205
1240
  # @param [String] fields
1206
1241
  # Selector specifying which fields to include in a partial response.
1207
1242
  # @param [String] quota_user
@@ -1211,32 +1246,28 @@ module Google
1211
1246
  # Request-specific options
1212
1247
  #
1213
1248
  # @yield [result, err] Result & error if block supplied
1214
- # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1249
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1215
1250
  # @yieldparam err [StandardError] error object if request failed
1216
1251
  #
1217
- # @return [Google::Apis::GkehubV1alpha::Empty]
1252
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1218
1253
  #
1219
1254
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1220
1255
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1221
1256
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1222
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1223
- command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
1224
- command.request_representation = Google::Apis::GkehubV1alpha::CancelOperationRequest::Representation
1225
- command.request_object = cancel_operation_request_object
1226
- command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1227
- command.response_class = Google::Apis::GkehubV1alpha::Empty
1257
+ def delete_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1258
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1259
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1260
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1228
1261
  command.params['name'] = name unless name.nil?
1229
1262
  command.query['fields'] = fields unless fields.nil?
1230
1263
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1231
1264
  execute_or_queue_command(command, &block)
1232
1265
  end
1233
1266
 
1234
- # Deletes a long-running operation. This method indicates that the client is no
1235
- # longer interested in the operation result. It does not cancel the operation.
1236
- # If the server doesn't support this method, it returns `google.rpc.Code.
1237
- # UNIMPLEMENTED`.
1267
+ # Returns the details of a MembershipBinding.
1238
1268
  # @param [String] name
1239
- # The name of the operation resource to be deleted.
1269
+ # Required. The MembershipBinding resource name in the format `projects/*/
1270
+ # locations/*/memberships/*/bindings/*`.
1240
1271
  # @param [String] fields
1241
1272
  # Selector specifying which fields to include in a partial response.
1242
1273
  # @param [String] quota_user
@@ -1246,28 +1277,72 @@ module Google
1246
1277
  # Request-specific options
1247
1278
  #
1248
1279
  # @yield [result, err] Result & error if block supplied
1249
- # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1280
+ # @yieldparam result [Google::Apis::GkehubV1alpha::MembershipBinding] parsed result object
1250
1281
  # @yieldparam err [StandardError] error object if request failed
1251
1282
  #
1252
- # @return [Google::Apis::GkehubV1alpha::Empty]
1283
+ # @return [Google::Apis::GkehubV1alpha::MembershipBinding]
1253
1284
  #
1254
1285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1255
1286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1256
1287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1257
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1258
- command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1259
- command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1260
- command.response_class = Google::Apis::GkehubV1alpha::Empty
1288
+ def get_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
1289
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1290
+ command.response_representation = Google::Apis::GkehubV1alpha::MembershipBinding::Representation
1291
+ command.response_class = Google::Apis::GkehubV1alpha::MembershipBinding
1261
1292
  command.params['name'] = name unless name.nil?
1262
1293
  command.query['fields'] = fields unless fields.nil?
1263
1294
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1264
1295
  execute_or_queue_command(command, &block)
1265
1296
  end
1266
1297
 
1267
- # Gets the latest state of a long-running operation. Clients can use this method
1268
- # to poll the operation result at intervals as recommended by the API service.
1298
+ # Lists MembershipBindings.
1299
+ # @param [String] parent
1300
+ # Required. The parent Membership for which the MembershipBindings will be
1301
+ # listed. Specified in the format `projects/*/locations/*/memberships/*`.
1302
+ # @param [Fixnum] page_size
1303
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1304
+ # of resources to return. If unspecified or set to 0, all resources will be
1305
+ # returned.
1306
+ # @param [String] page_token
1307
+ # Optional. Token returned by previous call to `ListMembershipBindings` which
1308
+ # specifies the position in the list from where to continue listing the
1309
+ # resources.
1310
+ # @param [String] fields
1311
+ # Selector specifying which fields to include in a partial response.
1312
+ # @param [String] quota_user
1313
+ # Available to use for quota purposes for server-side applications. Can be any
1314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1315
+ # @param [Google::Apis::RequestOptions] options
1316
+ # Request-specific options
1317
+ #
1318
+ # @yield [result, err] Result & error if block supplied
1319
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse] parsed result object
1320
+ # @yieldparam err [StandardError] error object if request failed
1321
+ #
1322
+ # @return [Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse]
1323
+ #
1324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
+ def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
+ command = make_simple_command(:get, 'v1alpha/{+parent}/bindings', options)
1329
+ command.response_representation = Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse::Representation
1330
+ command.response_class = Google::Apis::GkehubV1alpha::ListMembershipBindingsResponse
1331
+ command.params['parent'] = parent unless parent.nil?
1332
+ command.query['pageSize'] = page_size unless page_size.nil?
1333
+ command.query['pageToken'] = page_token unless page_token.nil?
1334
+ command.query['fields'] = fields unless fields.nil?
1335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1336
+ execute_or_queue_command(command, &block)
1337
+ end
1338
+
1339
+ # Updates a MembershipBinding.
1269
1340
  # @param [String] name
1270
- # The name of the operation resource.
1341
+ # The resource name for the membershipbinding itself `projects/`project`/
1342
+ # locations/`location`/memberships/`membership`/bindings/`membershipbinding``
1343
+ # @param [Google::Apis::GkehubV1alpha::MembershipBinding] membership_binding_object
1344
+ # @param [String] update_mask
1345
+ # Required. The fields to be updated.
1271
1346
  # @param [String] fields
1272
1347
  # Selector specifying which fields to include in a partial response.
1273
1348
  # @param [String] quota_user
@@ -1285,32 +1360,133 @@ module Google
1285
1360
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1286
1361
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1287
1362
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1288
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1289
- command = make_simple_command(:get, 'v1alpha/{+name}', options)
1363
+ def patch_project_location_membership_binding(name, membership_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1364
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1365
+ command.request_representation = Google::Apis::GkehubV1alpha::MembershipBinding::Representation
1366
+ command.request_object = membership_binding_object
1290
1367
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1291
1368
  command.response_class = Google::Apis::GkehubV1alpha::Operation
1292
1369
  command.params['name'] = name unless name.nil?
1370
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1293
1371
  command.query['fields'] = fields unless fields.nil?
1294
1372
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1295
1373
  execute_or_queue_command(command, &block)
1296
1374
  end
1297
1375
 
1298
- # Lists operations that match the specified filter in the request. If the server
1299
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1300
- # binding allows API services to override the binding to use different resource
1301
- # name schemes, such as `users/*/operations`. To override the binding, API
1302
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1303
- # service configuration. For backwards compatibility, the default name includes
1304
- # the operations collection id, however overriding users must ensure the name
1305
- # binding is the parent resource, without the operations collection id.
1376
+ # Creates a fleet namespace.
1377
+ # @param [String] parent
1378
+ # Required. The parent (project and location) where the Namespace will be
1379
+ # created. Specified in the format `projects/*/locations/*`.
1380
+ # @param [Google::Apis::GkehubV1alpha::Namespace] namespace_object
1381
+ # @param [String] namespace_id
1382
+ # Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
1383
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
1384
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
1385
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
1386
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
1387
+ # @param [String] fields
1388
+ # Selector specifying which fields to include in a partial response.
1389
+ # @param [String] quota_user
1390
+ # Available to use for quota purposes for server-side applications. Can be any
1391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1392
+ # @param [Google::Apis::RequestOptions] options
1393
+ # Request-specific options
1394
+ #
1395
+ # @yield [result, err] Result & error if block supplied
1396
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1397
+ # @yieldparam err [StandardError] error object if request failed
1398
+ #
1399
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1400
+ #
1401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1404
+ def create_project_location_namespace(parent, namespace_object = nil, namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1405
+ command = make_simple_command(:post, 'v1alpha/{+parent}/namespaces', options)
1406
+ command.request_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
1407
+ command.request_object = namespace_object
1408
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1409
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1410
+ command.params['parent'] = parent unless parent.nil?
1411
+ command.query['namespaceId'] = namespace_id unless namespace_id.nil?
1412
+ command.query['fields'] = fields unless fields.nil?
1413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1414
+ execute_or_queue_command(command, &block)
1415
+ end
1416
+
1417
+ # Deletes a fleet namespace.
1306
1418
  # @param [String] name
1307
- # The name of the operation's parent resource.
1308
- # @param [String] filter
1309
- # The standard list filter.
1419
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
1420
+ # namespaces/*`.
1421
+ # @param [String] fields
1422
+ # Selector specifying which fields to include in a partial response.
1423
+ # @param [String] quota_user
1424
+ # Available to use for quota purposes for server-side applications. Can be any
1425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def delete_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
1439
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1440
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1441
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1442
+ command.params['name'] = name unless name.nil?
1443
+ command.query['fields'] = fields unless fields.nil?
1444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1445
+ execute_or_queue_command(command, &block)
1446
+ end
1447
+
1448
+ # Returns the details of a fleet namespace.
1449
+ # @param [String] name
1450
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
1451
+ # namespaces/*`.
1452
+ # @param [String] fields
1453
+ # Selector specifying which fields to include in a partial response.
1454
+ # @param [String] quota_user
1455
+ # Available to use for quota purposes for server-side applications. Can be any
1456
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1457
+ # @param [Google::Apis::RequestOptions] options
1458
+ # Request-specific options
1459
+ #
1460
+ # @yield [result, err] Result & error if block supplied
1461
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Namespace] parsed result object
1462
+ # @yieldparam err [StandardError] error object if request failed
1463
+ #
1464
+ # @return [Google::Apis::GkehubV1alpha::Namespace]
1465
+ #
1466
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1467
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1468
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1469
+ def get_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
1470
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1471
+ command.response_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
1472
+ command.response_class = Google::Apis::GkehubV1alpha::Namespace
1473
+ command.params['name'] = name unless name.nil?
1474
+ command.query['fields'] = fields unless fields.nil?
1475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1476
+ execute_or_queue_command(command, &block)
1477
+ end
1478
+
1479
+ # Lists fleet namespaces.
1480
+ # @param [String] parent
1481
+ # Required. The parent (project and location) where the Features will be listed.
1482
+ # Specified in the format `projects/*/locations/*`.
1310
1483
  # @param [Fixnum] page_size
1311
- # The standard list page size.
1484
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1485
+ # of resources to return. If unspecified or set to 0, all resources will be
1486
+ # returned.
1312
1487
  # @param [String] page_token
1313
- # The standard list page token.
1488
+ # Optional. Token returned by previous call to `ListFeatures` which specifies
1489
+ # the position in the list from where to continue listing the resources.
1314
1490
  # @param [String] fields
1315
1491
  # Selector specifying which fields to include in a partial response.
1316
1492
  # @param [String] quota_user
@@ -1320,26 +1496,571 @@ module Google
1320
1496
  # Request-specific options
1321
1497
  #
1322
1498
  # @yield [result, err] Result & error if block supplied
1323
- # @yieldparam result [Google::Apis::GkehubV1alpha::ListOperationsResponse] parsed result object
1499
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListNamespacesResponse] parsed result object
1324
1500
  # @yieldparam err [StandardError] error object if request failed
1325
1501
  #
1326
- # @return [Google::Apis::GkehubV1alpha::ListOperationsResponse]
1502
+ # @return [Google::Apis::GkehubV1alpha::ListNamespacesResponse]
1327
1503
  #
1328
1504
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1329
1505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1330
1506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1331
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1332
- command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
1333
- command.response_representation = Google::Apis::GkehubV1alpha::ListOperationsResponse::Representation
1334
- command.response_class = Google::Apis::GkehubV1alpha::ListOperationsResponse
1335
- command.params['name'] = name unless name.nil?
1336
- command.query['filter'] = filter unless filter.nil?
1507
+ def list_project_location_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1508
+ command = make_simple_command(:get, 'v1alpha/{+parent}/namespaces', options)
1509
+ command.response_representation = Google::Apis::GkehubV1alpha::ListNamespacesResponse::Representation
1510
+ command.response_class = Google::Apis::GkehubV1alpha::ListNamespacesResponse
1511
+ command.params['parent'] = parent unless parent.nil?
1337
1512
  command.query['pageSize'] = page_size unless page_size.nil?
1338
1513
  command.query['pageToken'] = page_token unless page_token.nil?
1339
1514
  command.query['fields'] = fields unless fields.nil?
1340
1515
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1341
1516
  execute_or_queue_command(command, &block)
1342
1517
  end
1518
+
1519
+ # Updates a fleet namespace.
1520
+ # @param [String] name
1521
+ # The resource name for the namespace `projects/`project`/locations/`location`/
1522
+ # namespaces/`namespace``
1523
+ # @param [Google::Apis::GkehubV1alpha::Namespace] namespace_object
1524
+ # @param [String] update_mask
1525
+ # Required. The fields to be updated.
1526
+ # @param [String] fields
1527
+ # Selector specifying which fields to include in a partial response.
1528
+ # @param [String] quota_user
1529
+ # Available to use for quota purposes for server-side applications. Can be any
1530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1531
+ # @param [Google::Apis::RequestOptions] options
1532
+ # Request-specific options
1533
+ #
1534
+ # @yield [result, err] Result & error if block supplied
1535
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1536
+ # @yieldparam err [StandardError] error object if request failed
1537
+ #
1538
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1539
+ #
1540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1543
+ def patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1544
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1545
+ command.request_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
1546
+ command.request_object = namespace_object
1547
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1548
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1549
+ command.params['name'] = name unless name.nil?
1550
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1551
+ command.query['fields'] = fields unless fields.nil?
1552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1553
+ execute_or_queue_command(command, &block)
1554
+ end
1555
+
1556
+ # Creates a RBACRoleBinding.
1557
+ # @param [String] parent
1558
+ # Required. The parent (project and location) where the RBACRoleBinding will be
1559
+ # created. Specified in the format `projects/*/locations/*/namespaces/*`.
1560
+ # @param [Google::Apis::GkehubV1alpha::RbacRoleBinding] rbac_role_binding_object
1561
+ # @param [String] rbacrolebinding_id
1562
+ # Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
1563
+ # be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
1564
+ # It must consist of lower case alphanumeric characters or `-` 3. It must start
1565
+ # and end with an alphanumeric character Which can be expressed as the regex: `[
1566
+ # a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
1567
+ # @param [String] fields
1568
+ # Selector specifying which fields to include in a partial response.
1569
+ # @param [String] quota_user
1570
+ # Available to use for quota purposes for server-side applications. Can be any
1571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1572
+ # @param [Google::Apis::RequestOptions] options
1573
+ # Request-specific options
1574
+ #
1575
+ # @yield [result, err] Result & error if block supplied
1576
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1577
+ # @yieldparam err [StandardError] error object if request failed
1578
+ #
1579
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1580
+ #
1581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1584
+ def create_project_location_namespace_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1585
+ command = make_simple_command(:post, 'v1alpha/{+parent}/rbacrolebindings', options)
1586
+ command.request_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
1587
+ command.request_object = rbac_role_binding_object
1588
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1589
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1590
+ command.params['parent'] = parent unless parent.nil?
1591
+ command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
1592
+ command.query['fields'] = fields unless fields.nil?
1593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1594
+ execute_or_queue_command(command, &block)
1595
+ end
1596
+
1597
+ # Deletes a RBACRoleBinding.
1598
+ # @param [String] name
1599
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
1600
+ # locations/*/namespaces/*/rbacrolebindings/*`.
1601
+ # @param [String] fields
1602
+ # Selector specifying which fields to include in a partial response.
1603
+ # @param [String] quota_user
1604
+ # Available to use for quota purposes for server-side applications. Can be any
1605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1606
+ # @param [Google::Apis::RequestOptions] options
1607
+ # Request-specific options
1608
+ #
1609
+ # @yield [result, err] Result & error if block supplied
1610
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1611
+ # @yieldparam err [StandardError] error object if request failed
1612
+ #
1613
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1614
+ #
1615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1618
+ def delete_project_location_namespace_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
1619
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1620
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1621
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1622
+ command.params['name'] = name unless name.nil?
1623
+ command.query['fields'] = fields unless fields.nil?
1624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1625
+ execute_or_queue_command(command, &block)
1626
+ end
1627
+
1628
+ # Returns the details of a RBACRoleBinding.
1629
+ # @param [String] name
1630
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
1631
+ # locations/*/namespaces/*/rbacrolebindings/*`.
1632
+ # @param [String] fields
1633
+ # Selector specifying which fields to include in a partial response.
1634
+ # @param [String] quota_user
1635
+ # Available to use for quota purposes for server-side applications. Can be any
1636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1637
+ # @param [Google::Apis::RequestOptions] options
1638
+ # Request-specific options
1639
+ #
1640
+ # @yield [result, err] Result & error if block supplied
1641
+ # @yieldparam result [Google::Apis::GkehubV1alpha::RbacRoleBinding] parsed result object
1642
+ # @yieldparam err [StandardError] error object if request failed
1643
+ #
1644
+ # @return [Google::Apis::GkehubV1alpha::RbacRoleBinding]
1645
+ #
1646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1649
+ def get_project_location_namespace_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
1650
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1651
+ command.response_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
1652
+ command.response_class = Google::Apis::GkehubV1alpha::RbacRoleBinding
1653
+ command.params['name'] = name unless name.nil?
1654
+ command.query['fields'] = fields unless fields.nil?
1655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1656
+ execute_or_queue_command(command, &block)
1657
+ end
1658
+
1659
+ # Lists RBACRoleBinding.
1660
+ # @param [String] parent
1661
+ # Required. The parent (project and location) where the Features will be listed.
1662
+ # Specified in the format `projects/*/locations/*/namespaces/*`.
1663
+ # @param [Fixnum] page_size
1664
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1665
+ # of resources to return. If unspecified or set to 0, all resources will be
1666
+ # returned.
1667
+ # @param [String] page_token
1668
+ # Optional. Token returned by previous call to `ListRBACRoleBindings` which
1669
+ # specifies the position in the list from where to continue listing the
1670
+ # resources.
1671
+ # @param [String] fields
1672
+ # Selector specifying which fields to include in a partial response.
1673
+ # @param [String] quota_user
1674
+ # Available to use for quota purposes for server-side applications. Can be any
1675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1676
+ # @param [Google::Apis::RequestOptions] options
1677
+ # Request-specific options
1678
+ #
1679
+ # @yield [result, err] Result & error if block supplied
1680
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListRbacRoleBindingsResponse] parsed result object
1681
+ # @yieldparam err [StandardError] error object if request failed
1682
+ #
1683
+ # @return [Google::Apis::GkehubV1alpha::ListRbacRoleBindingsResponse]
1684
+ #
1685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1688
+ def list_project_location_namespace_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1689
+ command = make_simple_command(:get, 'v1alpha/{+parent}/rbacrolebindings', options)
1690
+ command.response_representation = Google::Apis::GkehubV1alpha::ListRbacRoleBindingsResponse::Representation
1691
+ command.response_class = Google::Apis::GkehubV1alpha::ListRbacRoleBindingsResponse
1692
+ command.params['parent'] = parent unless parent.nil?
1693
+ command.query['pageSize'] = page_size unless page_size.nil?
1694
+ command.query['pageToken'] = page_token unless page_token.nil?
1695
+ command.query['fields'] = fields unless fields.nil?
1696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
+ execute_or_queue_command(command, &block)
1698
+ end
1699
+
1700
+ # Updates a RBACRoleBinding.
1701
+ # @param [String] name
1702
+ # The resource name for the rbacrolebinding `projects/`project`/locations/`
1703
+ # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
1704
+ # projects/`project`/locations/`location`/memberships/`membership`/
1705
+ # rbacrolebindings/`rbacrolebinding``
1706
+ # @param [Google::Apis::GkehubV1alpha::RbacRoleBinding] rbac_role_binding_object
1707
+ # @param [String] update_mask
1708
+ # Required. The fields to be updated.
1709
+ # @param [String] fields
1710
+ # Selector specifying which fields to include in a partial response.
1711
+ # @param [String] quota_user
1712
+ # Available to use for quota purposes for server-side applications. Can be any
1713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1714
+ # @param [Google::Apis::RequestOptions] options
1715
+ # Request-specific options
1716
+ #
1717
+ # @yield [result, err] Result & error if block supplied
1718
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1719
+ # @yieldparam err [StandardError] error object if request failed
1720
+ #
1721
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1722
+ #
1723
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1724
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1725
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1726
+ def patch_project_location_namespace_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1727
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1728
+ command.request_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
1729
+ command.request_object = rbac_role_binding_object
1730
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1731
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1732
+ command.params['name'] = name unless name.nil?
1733
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1734
+ command.query['fields'] = fields unless fields.nil?
1735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1736
+ execute_or_queue_command(command, &block)
1737
+ end
1738
+
1739
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1740
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1741
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1742
+ # Clients can use Operations.GetOperation or other methods to check whether the
1743
+ # cancellation succeeded or whether the operation completed despite cancellation.
1744
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1745
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1746
+ # corresponding to `Code.CANCELLED`.
1747
+ # @param [String] name
1748
+ # The name of the operation resource to be cancelled.
1749
+ # @param [Google::Apis::GkehubV1alpha::CancelOperationRequest] cancel_operation_request_object
1750
+ # @param [String] fields
1751
+ # Selector specifying which fields to include in a partial response.
1752
+ # @param [String] quota_user
1753
+ # Available to use for quota purposes for server-side applications. Can be any
1754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
+ # @param [Google::Apis::RequestOptions] options
1756
+ # Request-specific options
1757
+ #
1758
+ # @yield [result, err] Result & error if block supplied
1759
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1760
+ # @yieldparam err [StandardError] error object if request failed
1761
+ #
1762
+ # @return [Google::Apis::GkehubV1alpha::Empty]
1763
+ #
1764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1768
+ command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
1769
+ command.request_representation = Google::Apis::GkehubV1alpha::CancelOperationRequest::Representation
1770
+ command.request_object = cancel_operation_request_object
1771
+ command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1772
+ command.response_class = Google::Apis::GkehubV1alpha::Empty
1773
+ command.params['name'] = name unless name.nil?
1774
+ command.query['fields'] = fields unless fields.nil?
1775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1776
+ execute_or_queue_command(command, &block)
1777
+ end
1778
+
1779
+ # Deletes a long-running operation. This method indicates that the client is no
1780
+ # longer interested in the operation result. It does not cancel the operation.
1781
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1782
+ # UNIMPLEMENTED`.
1783
+ # @param [String] name
1784
+ # The name of the operation resource to be deleted.
1785
+ # @param [String] fields
1786
+ # Selector specifying which fields to include in a partial response.
1787
+ # @param [String] quota_user
1788
+ # Available to use for quota purposes for server-side applications. Can be any
1789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1790
+ # @param [Google::Apis::RequestOptions] options
1791
+ # Request-specific options
1792
+ #
1793
+ # @yield [result, err] Result & error if block supplied
1794
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1795
+ # @yieldparam err [StandardError] error object if request failed
1796
+ #
1797
+ # @return [Google::Apis::GkehubV1alpha::Empty]
1798
+ #
1799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1802
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1803
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1804
+ command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1805
+ command.response_class = Google::Apis::GkehubV1alpha::Empty
1806
+ command.params['name'] = name unless name.nil?
1807
+ command.query['fields'] = fields unless fields.nil?
1808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1809
+ execute_or_queue_command(command, &block)
1810
+ end
1811
+
1812
+ # Gets the latest state of a long-running operation. Clients can use this method
1813
+ # to poll the operation result at intervals as recommended by the API service.
1814
+ # @param [String] name
1815
+ # The name of the operation resource.
1816
+ # @param [String] fields
1817
+ # Selector specifying which fields to include in a partial response.
1818
+ # @param [String] quota_user
1819
+ # Available to use for quota purposes for server-side applications. Can be any
1820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1821
+ # @param [Google::Apis::RequestOptions] options
1822
+ # Request-specific options
1823
+ #
1824
+ # @yield [result, err] Result & error if block supplied
1825
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1826
+ # @yieldparam err [StandardError] error object if request failed
1827
+ #
1828
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1829
+ #
1830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1833
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1834
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1835
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1836
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1837
+ command.params['name'] = name unless name.nil?
1838
+ command.query['fields'] = fields unless fields.nil?
1839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1840
+ execute_or_queue_command(command, &block)
1841
+ end
1842
+
1843
+ # Lists operations that match the specified filter in the request. If the server
1844
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1845
+ # binding allows API services to override the binding to use different resource
1846
+ # name schemes, such as `users/*/operations`. To override the binding, API
1847
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1848
+ # service configuration. For backwards compatibility, the default name includes
1849
+ # the operations collection id, however overriding users must ensure the name
1850
+ # binding is the parent resource, without the operations collection id.
1851
+ # @param [String] name
1852
+ # The name of the operation's parent resource.
1853
+ # @param [String] filter
1854
+ # The standard list filter.
1855
+ # @param [Fixnum] page_size
1856
+ # The standard list page size.
1857
+ # @param [String] page_token
1858
+ # The standard list page token.
1859
+ # @param [String] fields
1860
+ # Selector specifying which fields to include in a partial response.
1861
+ # @param [String] quota_user
1862
+ # Available to use for quota purposes for server-side applications. Can be any
1863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1864
+ # @param [Google::Apis::RequestOptions] options
1865
+ # Request-specific options
1866
+ #
1867
+ # @yield [result, err] Result & error if block supplied
1868
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListOperationsResponse] parsed result object
1869
+ # @yieldparam err [StandardError] error object if request failed
1870
+ #
1871
+ # @return [Google::Apis::GkehubV1alpha::ListOperationsResponse]
1872
+ #
1873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1876
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1877
+ command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
1878
+ command.response_representation = Google::Apis::GkehubV1alpha::ListOperationsResponse::Representation
1879
+ command.response_class = Google::Apis::GkehubV1alpha::ListOperationsResponse
1880
+ command.params['name'] = name unless name.nil?
1881
+ command.query['filter'] = filter unless filter.nil?
1882
+ command.query['pageSize'] = page_size unless page_size.nil?
1883
+ command.query['pageToken'] = page_token unless page_token.nil?
1884
+ command.query['fields'] = fields unless fields.nil?
1885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1886
+ execute_or_queue_command(command, &block)
1887
+ end
1888
+
1889
+ # Creates a Scope.
1890
+ # @param [String] parent
1891
+ # Required. The parent (project and location) where the Scope will be created.
1892
+ # Specified in the format `projects/*/locations/*`.
1893
+ # @param [Google::Apis::GkehubV1alpha::Scope] scope_object
1894
+ # @param [String] scope_id
1895
+ # Required. Client chosen ID for the Scope. `scope_id` must be a ????
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::GkehubV1alpha::Operation] parsed result object
1906
+ # @yieldparam err [StandardError] error object if request failed
1907
+ #
1908
+ # @return [Google::Apis::GkehubV1alpha::Operation]
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 create_project_location_scope(parent, scope_object = nil, scope_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1914
+ command = make_simple_command(:post, 'v1alpha/{+parent}/scopes', options)
1915
+ command.request_representation = Google::Apis::GkehubV1alpha::Scope::Representation
1916
+ command.request_object = scope_object
1917
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1918
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1919
+ command.params['parent'] = parent unless parent.nil?
1920
+ command.query['scopeId'] = scope_id unless scope_id.nil?
1921
+ command.query['fields'] = fields unless fields.nil?
1922
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1923
+ execute_or_queue_command(command, &block)
1924
+ end
1925
+
1926
+ # Deletes a Scope.
1927
+ # @param [String] name
1928
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1929
+ # *`.
1930
+ # @param [String] fields
1931
+ # Selector specifying which fields to include in a partial response.
1932
+ # @param [String] quota_user
1933
+ # Available to use for quota purposes for server-side applications. Can be any
1934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1935
+ # @param [Google::Apis::RequestOptions] options
1936
+ # Request-specific options
1937
+ #
1938
+ # @yield [result, err] Result & error if block supplied
1939
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1940
+ # @yieldparam err [StandardError] error object if request failed
1941
+ #
1942
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1943
+ #
1944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1947
+ def delete_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1948
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1949
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1950
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1951
+ command.params['name'] = name unless name.nil?
1952
+ command.query['fields'] = fields unless fields.nil?
1953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1954
+ execute_or_queue_command(command, &block)
1955
+ end
1956
+
1957
+ # Returns the details of a Scope.
1958
+ # @param [String] name
1959
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1960
+ # *`.
1961
+ # @param [String] fields
1962
+ # Selector specifying which fields to include in a partial response.
1963
+ # @param [String] quota_user
1964
+ # Available to use for quota purposes for server-side applications. Can be any
1965
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1966
+ # @param [Google::Apis::RequestOptions] options
1967
+ # Request-specific options
1968
+ #
1969
+ # @yield [result, err] Result & error if block supplied
1970
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Scope] parsed result object
1971
+ # @yieldparam err [StandardError] error object if request failed
1972
+ #
1973
+ # @return [Google::Apis::GkehubV1alpha::Scope]
1974
+ #
1975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1978
+ def get_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1979
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1980
+ command.response_representation = Google::Apis::GkehubV1alpha::Scope::Representation
1981
+ command.response_class = Google::Apis::GkehubV1alpha::Scope
1982
+ command.params['name'] = name unless name.nil?
1983
+ command.query['fields'] = fields unless fields.nil?
1984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1985
+ execute_or_queue_command(command, &block)
1986
+ end
1987
+
1988
+ # Lists Scopes.
1989
+ # @param [String] parent
1990
+ # Required. The parent (project and location) where the Scope will be listed.
1991
+ # Specified in the format `projects/*/locations/*`.
1992
+ # @param [Fixnum] page_size
1993
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1994
+ # of resources to return. If unspecified or set to 0, all resources will be
1995
+ # returned.
1996
+ # @param [String] page_token
1997
+ # Optional. Token returned by previous call to `ListScopes` which specifies the
1998
+ # position in the list from where to continue listing the resources.
1999
+ # @param [String] fields
2000
+ # Selector specifying which fields to include in a partial response.
2001
+ # @param [String] quota_user
2002
+ # Available to use for quota purposes for server-side applications. Can be any
2003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2004
+ # @param [Google::Apis::RequestOptions] options
2005
+ # Request-specific options
2006
+ #
2007
+ # @yield [result, err] Result & error if block supplied
2008
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListScopesResponse] parsed result object
2009
+ # @yieldparam err [StandardError] error object if request failed
2010
+ #
2011
+ # @return [Google::Apis::GkehubV1alpha::ListScopesResponse]
2012
+ #
2013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2016
+ def list_project_location_scopes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2017
+ command = make_simple_command(:get, 'v1alpha/{+parent}/scopes', options)
2018
+ command.response_representation = Google::Apis::GkehubV1alpha::ListScopesResponse::Representation
2019
+ command.response_class = Google::Apis::GkehubV1alpha::ListScopesResponse
2020
+ command.params['parent'] = parent unless parent.nil?
2021
+ command.query['pageSize'] = page_size unless page_size.nil?
2022
+ command.query['pageToken'] = page_token unless page_token.nil?
2023
+ command.query['fields'] = fields unless fields.nil?
2024
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2025
+ execute_or_queue_command(command, &block)
2026
+ end
2027
+
2028
+ # Updates a scopes.
2029
+ # @param [String] name
2030
+ # The resource name for the scope `projects/`project`/locations/`location`/
2031
+ # scopes/`scope``
2032
+ # @param [Google::Apis::GkehubV1alpha::Scope] scope_object
2033
+ # @param [String] update_mask
2034
+ # Required. The fields to be updated.
2035
+ # @param [String] fields
2036
+ # Selector specifying which fields to include in a partial response.
2037
+ # @param [String] quota_user
2038
+ # Available to use for quota purposes for server-side applications. Can be any
2039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2040
+ # @param [Google::Apis::RequestOptions] options
2041
+ # Request-specific options
2042
+ #
2043
+ # @yield [result, err] Result & error if block supplied
2044
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2045
+ # @yieldparam err [StandardError] error object if request failed
2046
+ #
2047
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2048
+ #
2049
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2050
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2051
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2052
+ def patch_project_location_scope(name, scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2053
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2054
+ command.request_representation = Google::Apis::GkehubV1alpha::Scope::Representation
2055
+ command.request_object = scope_object
2056
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2057
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2058
+ command.params['name'] = name unless name.nil?
2059
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2060
+ command.query['fields'] = fields unless fields.nil?
2061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2062
+ execute_or_queue_command(command, &block)
2063
+ end
1343
2064
 
1344
2065
  protected
1345
2066