google-apis-gkehub_v1alpha 0.45.0 → 0.47.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,569 @@ 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``
1704
+ # @param [Google::Apis::GkehubV1alpha::RbacRoleBinding] rbac_role_binding_object
1705
+ # @param [String] update_mask
1706
+ # Required. The fields to be updated.
1707
+ # @param [String] fields
1708
+ # Selector specifying which fields to include in a partial response.
1709
+ # @param [String] quota_user
1710
+ # Available to use for quota purposes for server-side applications. Can be any
1711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1712
+ # @param [Google::Apis::RequestOptions] options
1713
+ # Request-specific options
1714
+ #
1715
+ # @yield [result, err] Result & error if block supplied
1716
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1717
+ # @yieldparam err [StandardError] error object if request failed
1718
+ #
1719
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1720
+ #
1721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1724
+ def patch_project_location_namespace_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1725
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1726
+ command.request_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
1727
+ command.request_object = rbac_role_binding_object
1728
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1729
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1730
+ command.params['name'] = name unless name.nil?
1731
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1732
+ command.query['fields'] = fields unless fields.nil?
1733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1734
+ execute_or_queue_command(command, &block)
1735
+ end
1736
+
1737
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1738
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1739
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1740
+ # Clients can use Operations.GetOperation or other methods to check whether the
1741
+ # cancellation succeeded or whether the operation completed despite cancellation.
1742
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1743
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1744
+ # corresponding to `Code.CANCELLED`.
1745
+ # @param [String] name
1746
+ # The name of the operation resource to be cancelled.
1747
+ # @param [Google::Apis::GkehubV1alpha::CancelOperationRequest] cancel_operation_request_object
1748
+ # @param [String] fields
1749
+ # Selector specifying which fields to include in a partial response.
1750
+ # @param [String] quota_user
1751
+ # Available to use for quota purposes for server-side applications. Can be any
1752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1753
+ # @param [Google::Apis::RequestOptions] options
1754
+ # Request-specific options
1755
+ #
1756
+ # @yield [result, err] Result & error if block supplied
1757
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1758
+ # @yieldparam err [StandardError] error object if request failed
1759
+ #
1760
+ # @return [Google::Apis::GkehubV1alpha::Empty]
1761
+ #
1762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1765
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1766
+ command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
1767
+ command.request_representation = Google::Apis::GkehubV1alpha::CancelOperationRequest::Representation
1768
+ command.request_object = cancel_operation_request_object
1769
+ command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1770
+ command.response_class = Google::Apis::GkehubV1alpha::Empty
1771
+ command.params['name'] = name unless name.nil?
1772
+ command.query['fields'] = fields unless fields.nil?
1773
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1774
+ execute_or_queue_command(command, &block)
1775
+ end
1776
+
1777
+ # Deletes a long-running operation. This method indicates that the client is no
1778
+ # longer interested in the operation result. It does not cancel the operation.
1779
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1780
+ # UNIMPLEMENTED`.
1781
+ # @param [String] name
1782
+ # The name of the operation resource to be deleted.
1783
+ # @param [String] fields
1784
+ # Selector specifying which fields to include in a partial response.
1785
+ # @param [String] quota_user
1786
+ # Available to use for quota purposes for server-side applications. Can be any
1787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1788
+ # @param [Google::Apis::RequestOptions] options
1789
+ # Request-specific options
1790
+ #
1791
+ # @yield [result, err] Result & error if block supplied
1792
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Empty] parsed result object
1793
+ # @yieldparam err [StandardError] error object if request failed
1794
+ #
1795
+ # @return [Google::Apis::GkehubV1alpha::Empty]
1796
+ #
1797
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1798
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1799
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1800
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1801
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1802
+ command.response_representation = Google::Apis::GkehubV1alpha::Empty::Representation
1803
+ command.response_class = Google::Apis::GkehubV1alpha::Empty
1804
+ command.params['name'] = name unless name.nil?
1805
+ command.query['fields'] = fields unless fields.nil?
1806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1807
+ execute_or_queue_command(command, &block)
1808
+ end
1809
+
1810
+ # Gets the latest state of a long-running operation. Clients can use this method
1811
+ # to poll the operation result at intervals as recommended by the API service.
1812
+ # @param [String] name
1813
+ # The name of the operation resource.
1814
+ # @param [String] fields
1815
+ # Selector specifying which fields to include in a partial response.
1816
+ # @param [String] quota_user
1817
+ # Available to use for quota purposes for server-side applications. Can be any
1818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1819
+ # @param [Google::Apis::RequestOptions] options
1820
+ # Request-specific options
1821
+ #
1822
+ # @yield [result, err] Result & error if block supplied
1823
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1824
+ # @yieldparam err [StandardError] error object if request failed
1825
+ #
1826
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1827
+ #
1828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1831
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1832
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1833
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1834
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1835
+ command.params['name'] = name unless name.nil?
1836
+ command.query['fields'] = fields unless fields.nil?
1837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1838
+ execute_or_queue_command(command, &block)
1839
+ end
1840
+
1841
+ # Lists operations that match the specified filter in the request. If the server
1842
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1843
+ # binding allows API services to override the binding to use different resource
1844
+ # name schemes, such as `users/*/operations`. To override the binding, API
1845
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1846
+ # service configuration. For backwards compatibility, the default name includes
1847
+ # the operations collection id, however overriding users must ensure the name
1848
+ # binding is the parent resource, without the operations collection id.
1849
+ # @param [String] name
1850
+ # The name of the operation's parent resource.
1851
+ # @param [String] filter
1852
+ # The standard list filter.
1853
+ # @param [Fixnum] page_size
1854
+ # The standard list page size.
1855
+ # @param [String] page_token
1856
+ # The standard list page token.
1857
+ # @param [String] fields
1858
+ # Selector specifying which fields to include in a partial response.
1859
+ # @param [String] quota_user
1860
+ # Available to use for quota purposes for server-side applications. Can be any
1861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1862
+ # @param [Google::Apis::RequestOptions] options
1863
+ # Request-specific options
1864
+ #
1865
+ # @yield [result, err] Result & error if block supplied
1866
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListOperationsResponse] parsed result object
1867
+ # @yieldparam err [StandardError] error object if request failed
1868
+ #
1869
+ # @return [Google::Apis::GkehubV1alpha::ListOperationsResponse]
1870
+ #
1871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1874
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1875
+ command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
1876
+ command.response_representation = Google::Apis::GkehubV1alpha::ListOperationsResponse::Representation
1877
+ command.response_class = Google::Apis::GkehubV1alpha::ListOperationsResponse
1878
+ command.params['name'] = name unless name.nil?
1879
+ command.query['filter'] = filter unless filter.nil?
1880
+ command.query['pageSize'] = page_size unless page_size.nil?
1881
+ command.query['pageToken'] = page_token unless page_token.nil?
1882
+ command.query['fields'] = fields unless fields.nil?
1883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1884
+ execute_or_queue_command(command, &block)
1885
+ end
1886
+
1887
+ # Creates a Scope.
1888
+ # @param [String] parent
1889
+ # Required. The parent (project and location) where the Scope will be created.
1890
+ # Specified in the format `projects/*/locations/*`.
1891
+ # @param [Google::Apis::GkehubV1alpha::Scope] scope_object
1892
+ # @param [String] scope_id
1893
+ # Required. Client chosen ID for the Scope. `scope_id` must be a ????
1894
+ # @param [String] fields
1895
+ # Selector specifying which fields to include in a partial response.
1896
+ # @param [String] quota_user
1897
+ # Available to use for quota purposes for server-side applications. Can be any
1898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1899
+ # @param [Google::Apis::RequestOptions] options
1900
+ # Request-specific options
1901
+ #
1902
+ # @yield [result, err] Result & error if block supplied
1903
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1904
+ # @yieldparam err [StandardError] error object if request failed
1905
+ #
1906
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1907
+ #
1908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1911
+ def create_project_location_scope(parent, scope_object = nil, scope_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1912
+ command = make_simple_command(:post, 'v1alpha/{+parent}/scopes', options)
1913
+ command.request_representation = Google::Apis::GkehubV1alpha::Scope::Representation
1914
+ command.request_object = scope_object
1915
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1916
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1917
+ command.params['parent'] = parent unless parent.nil?
1918
+ command.query['scopeId'] = scope_id unless scope_id.nil?
1919
+ command.query['fields'] = fields unless fields.nil?
1920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1921
+ execute_or_queue_command(command, &block)
1922
+ end
1923
+
1924
+ # Deletes a Scope.
1925
+ # @param [String] name
1926
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1927
+ # *`.
1928
+ # @param [String] fields
1929
+ # Selector specifying which fields to include in a partial response.
1930
+ # @param [String] quota_user
1931
+ # Available to use for quota purposes for server-side applications. Can be any
1932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1933
+ # @param [Google::Apis::RequestOptions] options
1934
+ # Request-specific options
1935
+ #
1936
+ # @yield [result, err] Result & error if block supplied
1937
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
1938
+ # @yieldparam err [StandardError] error object if request failed
1939
+ #
1940
+ # @return [Google::Apis::GkehubV1alpha::Operation]
1941
+ #
1942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1945
+ def delete_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1946
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1947
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
1948
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
1949
+ command.params['name'] = name unless name.nil?
1950
+ command.query['fields'] = fields unless fields.nil?
1951
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1952
+ execute_or_queue_command(command, &block)
1953
+ end
1954
+
1955
+ # Returns the details of a Scope.
1956
+ # @param [String] name
1957
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1958
+ # *`.
1959
+ # @param [String] fields
1960
+ # Selector specifying which fields to include in a partial response.
1961
+ # @param [String] quota_user
1962
+ # Available to use for quota purposes for server-side applications. Can be any
1963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1964
+ # @param [Google::Apis::RequestOptions] options
1965
+ # Request-specific options
1966
+ #
1967
+ # @yield [result, err] Result & error if block supplied
1968
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Scope] parsed result object
1969
+ # @yieldparam err [StandardError] error object if request failed
1970
+ #
1971
+ # @return [Google::Apis::GkehubV1alpha::Scope]
1972
+ #
1973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1976
+ def get_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1977
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1978
+ command.response_representation = Google::Apis::GkehubV1alpha::Scope::Representation
1979
+ command.response_class = Google::Apis::GkehubV1alpha::Scope
1980
+ command.params['name'] = name unless name.nil?
1981
+ command.query['fields'] = fields unless fields.nil?
1982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1983
+ execute_or_queue_command(command, &block)
1984
+ end
1985
+
1986
+ # Lists Scopes.
1987
+ # @param [String] parent
1988
+ # Required. The parent (project and location) where the Scope will be listed.
1989
+ # Specified in the format `projects/*/locations/*`.
1990
+ # @param [Fixnum] page_size
1991
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1992
+ # of resources to return. If unspecified or set to 0, all resources will be
1993
+ # returned.
1994
+ # @param [String] page_token
1995
+ # Optional. Token returned by previous call to `ListScopes` which specifies the
1996
+ # position in the list from where to continue listing the resources.
1997
+ # @param [String] fields
1998
+ # Selector specifying which fields to include in a partial response.
1999
+ # @param [String] quota_user
2000
+ # Available to use for quota purposes for server-side applications. Can be any
2001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2002
+ # @param [Google::Apis::RequestOptions] options
2003
+ # Request-specific options
2004
+ #
2005
+ # @yield [result, err] Result & error if block supplied
2006
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListScopesResponse] parsed result object
2007
+ # @yieldparam err [StandardError] error object if request failed
2008
+ #
2009
+ # @return [Google::Apis::GkehubV1alpha::ListScopesResponse]
2010
+ #
2011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2014
+ def list_project_location_scopes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2015
+ command = make_simple_command(:get, 'v1alpha/{+parent}/scopes', options)
2016
+ command.response_representation = Google::Apis::GkehubV1alpha::ListScopesResponse::Representation
2017
+ command.response_class = Google::Apis::GkehubV1alpha::ListScopesResponse
2018
+ command.params['parent'] = parent unless parent.nil?
2019
+ command.query['pageSize'] = page_size unless page_size.nil?
2020
+ command.query['pageToken'] = page_token unless page_token.nil?
2021
+ command.query['fields'] = fields unless fields.nil?
2022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2023
+ execute_or_queue_command(command, &block)
2024
+ end
2025
+
2026
+ # Updates a scopes.
2027
+ # @param [String] name
2028
+ # The resource name for the scope `projects/`project`/locations/`location`/
2029
+ # scopes/`scope``
2030
+ # @param [Google::Apis::GkehubV1alpha::Scope] scope_object
2031
+ # @param [String] update_mask
2032
+ # Required. The fields to be updated.
2033
+ # @param [String] fields
2034
+ # Selector specifying which fields to include in a partial response.
2035
+ # @param [String] quota_user
2036
+ # Available to use for quota purposes for server-side applications. Can be any
2037
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2038
+ # @param [Google::Apis::RequestOptions] options
2039
+ # Request-specific options
2040
+ #
2041
+ # @yield [result, err] Result & error if block supplied
2042
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2043
+ # @yieldparam err [StandardError] error object if request failed
2044
+ #
2045
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2046
+ #
2047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2050
+ def patch_project_location_scope(name, scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2051
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2052
+ command.request_representation = Google::Apis::GkehubV1alpha::Scope::Representation
2053
+ command.request_object = scope_object
2054
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2055
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2056
+ command.params['name'] = name unless name.nil?
2057
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2058
+ command.query['fields'] = fields unless fields.nil?
2059
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2060
+ execute_or_queue_command(command, &block)
2061
+ end
1343
2062
 
1344
2063
  protected
1345
2064