google-apis-gkehub_v1 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d6af36b1994965d5aa46363501db7560117a4c84fc51baf8734023e43c869ea
4
- data.tar.gz: 618d7b19bd853ed2963bb283736ef66dc9e6e0d509270e05824f7056aa508ab4
3
+ metadata.gz: 80c9f3e45d7504e942f76568f4d3e8a04cf7f7631b9856ac49acc6446109ca3e
4
+ data.tar.gz: a411d95c7ff0221b4eb2d63bf5feddc54f98a2beb9d28e66f11f7c886f94f50c
5
5
  SHA512:
6
- metadata.gz: fc03456066bcaaf833b7aab5408f5ff8ed8bb73f784e44a92c3ed4d361b04c9f627d86b5d15b6f91664311c6cbd6525d87d164f93d7269a4d968e0c77cde7199
7
- data.tar.gz: 1ffbfce1b69b703f064b5b48ac64bac6d839a3aa9bb3c80d5319f78540c4e448c4034d9d879d9b8104b729e99a820ac84ef44a8a54aae9030171fd54476666e0
6
+ metadata.gz: cd12f998572c80f0aa53746c500ab698fcea6a410696372630cb79c0db9936488a3dd80b017de9801e092f8c87ee7904d96e9e03094f9e92d77d7ac7dc9d9a35
7
+ data.tar.gz: 6ca05a5ded483105bcdaf6e1f708b070715920d441e10a421da3cfc052f9e8946f3f3beaf3fab59c259af8330254ac88e72039a32c021ce81164afe02387679b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-gkehub_v1
2
2
 
3
+ ### v0.42.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230219
6
+ * Regenerated using generator version 0.12.0
7
+
3
8
  ### v0.41.0 (2023-02-12)
4
9
 
5
10
  * Regenerated from discovery document revision 20230206
@@ -2157,6 +2157,33 @@ module Google
2157
2157
  end
2158
2158
  end
2159
2159
 
2160
+ # List of MembershipBindings.
2161
+ class ListMembershipBindingsResponse
2162
+ include Google::Apis::Core::Hashable
2163
+
2164
+ # The list of membership_bindings
2165
+ # Corresponds to the JSON property `membershipBindings`
2166
+ # @return [Array<Google::Apis::GkehubV1::MembershipBinding>]
2167
+ attr_accessor :membership_bindings
2168
+
2169
+ # A token to request the next page of resources from the `ListMembershipBindings`
2170
+ # method. The value of an empty string means that there are no more resources
2171
+ # to return.
2172
+ # Corresponds to the JSON property `nextPageToken`
2173
+ # @return [String]
2174
+ attr_accessor :next_page_token
2175
+
2176
+ def initialize(**args)
2177
+ update!(**args)
2178
+ end
2179
+
2180
+ # Update properties of this object
2181
+ def update!(**args)
2182
+ @membership_bindings = args[:membership_bindings] if args.key?(:membership_bindings)
2183
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2184
+ end
2185
+ end
2186
+
2160
2187
  # Response message for the `GkeHub.ListMemberships` method.
2161
2188
  class ListMembershipsResponse
2162
2189
  include Google::Apis::Core::Hashable
@@ -2215,6 +2242,32 @@ module Google
2215
2242
  end
2216
2243
  end
2217
2244
 
2245
+ # List of Scopes.
2246
+ class ListScopesResponse
2247
+ include Google::Apis::Core::Hashable
2248
+
2249
+ # A token to request the next page of resources from the `ListScopes` method.
2250
+ # The value of an empty string means that there are no more resources to return.
2251
+ # Corresponds to the JSON property `nextPageToken`
2252
+ # @return [String]
2253
+ attr_accessor :next_page_token
2254
+
2255
+ # The list of Scopes
2256
+ # Corresponds to the JSON property `scopes`
2257
+ # @return [Array<Google::Apis::GkehubV1::Scope>]
2258
+ attr_accessor :scopes
2259
+
2260
+ def initialize(**args)
2261
+ update!(**args)
2262
+ end
2263
+
2264
+ # Update properties of this object
2265
+ def update!(**args)
2266
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2267
+ @scopes = args[:scopes] if args.key?(:scopes)
2268
+ end
2269
+ end
2270
+
2218
2271
  # A resource that represents Google Cloud Platform location.
2219
2272
  class Location
2220
2273
  include Google::Apis::Core::Hashable
@@ -2365,6 +2418,92 @@ module Google
2365
2418
  end
2366
2419
  end
2367
2420
 
2421
+ # MembershipBinding is a subresource of a Membership, representing what Fleet
2422
+ # Scopes (or other, future Fleet resources) a Membership is bound to.
2423
+ class MembershipBinding
2424
+ include Google::Apis::Core::Hashable
2425
+
2426
+ # Output only. When the membership binding was created.
2427
+ # Corresponds to the JSON property `createTime`
2428
+ # @return [String]
2429
+ attr_accessor :create_time
2430
+
2431
+ # Output only. When the membership binding was deleted.
2432
+ # Corresponds to the JSON property `deleteTime`
2433
+ # @return [String]
2434
+ attr_accessor :delete_time
2435
+
2436
+ # Whether the membershipbinding is Fleet-wide; true means that this Membership
2437
+ # should be bound to all Namespaces in this entire Fleet.
2438
+ # Corresponds to the JSON property `fleet`
2439
+ # @return [Boolean]
2440
+ attr_accessor :fleet
2441
+ alias_method :fleet?, :fleet
2442
+
2443
+ # The resource name for the membershipbinding itself `projects/`project`/
2444
+ # locations/`location`/memberships/`membership`/bindings/`membershipbinding``
2445
+ # Corresponds to the JSON property `name`
2446
+ # @return [String]
2447
+ attr_accessor :name
2448
+
2449
+ # A Workspace resource name in the format `projects/*/locations/*/scopes/*`.
2450
+ # Corresponds to the JSON property `scope`
2451
+ # @return [String]
2452
+ attr_accessor :scope
2453
+
2454
+ # MembershipBindingLifecycleState describes the state of a Binding resource.
2455
+ # Corresponds to the JSON property `state`
2456
+ # @return [Google::Apis::GkehubV1::MembershipBindingLifecycleState]
2457
+ attr_accessor :state
2458
+
2459
+ # Output only. Google-generated UUID for this resource. This is unique across
2460
+ # all membershipbinding resources. If a membershipbinding resource is deleted
2461
+ # and another resource with the same name is created, it gets a different uid.
2462
+ # Corresponds to the JSON property `uid`
2463
+ # @return [String]
2464
+ attr_accessor :uid
2465
+
2466
+ # Output only. When the membership binding was last updated.
2467
+ # Corresponds to the JSON property `updateTime`
2468
+ # @return [String]
2469
+ attr_accessor :update_time
2470
+
2471
+ def initialize(**args)
2472
+ update!(**args)
2473
+ end
2474
+
2475
+ # Update properties of this object
2476
+ def update!(**args)
2477
+ @create_time = args[:create_time] if args.key?(:create_time)
2478
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
2479
+ @fleet = args[:fleet] if args.key?(:fleet)
2480
+ @name = args[:name] if args.key?(:name)
2481
+ @scope = args[:scope] if args.key?(:scope)
2482
+ @state = args[:state] if args.key?(:state)
2483
+ @uid = args[:uid] if args.key?(:uid)
2484
+ @update_time = args[:update_time] if args.key?(:update_time)
2485
+ end
2486
+ end
2487
+
2488
+ # MembershipBindingLifecycleState describes the state of a Binding resource.
2489
+ class MembershipBindingLifecycleState
2490
+ include Google::Apis::Core::Hashable
2491
+
2492
+ # Output only. The current state of the MembershipBinding resource.
2493
+ # Corresponds to the JSON property `code`
2494
+ # @return [String]
2495
+ attr_accessor :code
2496
+
2497
+ def initialize(**args)
2498
+ update!(**args)
2499
+ end
2500
+
2501
+ # Update properties of this object
2502
+ def update!(**args)
2503
+ @code = args[:code] if args.key?(:code)
2504
+ end
2505
+ end
2506
+
2368
2507
  # MembershipEndpoint contains information needed to contact a Kubernetes API,
2369
2508
  # endpoint and any additional Kubernetes metadata.
2370
2509
  class MembershipEndpoint
@@ -2930,6 +3069,58 @@ module Google
2930
3069
  end
2931
3070
  end
2932
3071
 
3072
+ # Scope represents a Scope in a Fleet.
3073
+ class Scope
3074
+ include Google::Apis::Core::Hashable
3075
+
3076
+ # Output only. When the scope was created.
3077
+ # Corresponds to the JSON property `createTime`
3078
+ # @return [String]
3079
+ attr_accessor :create_time
3080
+
3081
+ # Output only. When the scope was deleted.
3082
+ # Corresponds to the JSON property `deleteTime`
3083
+ # @return [String]
3084
+ attr_accessor :delete_time
3085
+
3086
+ # The resource name for the scope `projects/`project`/locations/`location`/
3087
+ # scopes/`scope``
3088
+ # Corresponds to the JSON property `name`
3089
+ # @return [String]
3090
+ attr_accessor :name
3091
+
3092
+ # ScopeLifecycleState describes the state of a Scope resource.
3093
+ # Corresponds to the JSON property `state`
3094
+ # @return [Google::Apis::GkehubV1::ScopeLifecycleState]
3095
+ attr_accessor :state
3096
+
3097
+ # Output only. Google-generated UUID for this resource. This is unique across
3098
+ # all scope resources. If a scope resource is deleted and another resource with
3099
+ # the same name is created, it gets a different uid.
3100
+ # Corresponds to the JSON property `uid`
3101
+ # @return [String]
3102
+ attr_accessor :uid
3103
+
3104
+ # Output only. When the scope was last updated.
3105
+ # Corresponds to the JSON property `updateTime`
3106
+ # @return [String]
3107
+ attr_accessor :update_time
3108
+
3109
+ def initialize(**args)
3110
+ update!(**args)
3111
+ end
3112
+
3113
+ # Update properties of this object
3114
+ def update!(**args)
3115
+ @create_time = args[:create_time] if args.key?(:create_time)
3116
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
3117
+ @name = args[:name] if args.key?(:name)
3118
+ @state = args[:state] if args.key?(:state)
3119
+ @uid = args[:uid] if args.key?(:uid)
3120
+ @update_time = args[:update_time] if args.key?(:update_time)
3121
+ end
3122
+ end
3123
+
2933
3124
  # ScopeFeatureSpec contains feature specs for a fleet scope.
2934
3125
  class ScopeFeatureSpec
2935
3126
  include Google::Apis::Core::Hashable
@@ -2964,6 +3155,25 @@ module Google
2964
3155
  end
2965
3156
  end
2966
3157
 
3158
+ # ScopeLifecycleState describes the state of a Scope resource.
3159
+ class ScopeLifecycleState
3160
+ include Google::Apis::Core::Hashable
3161
+
3162
+ # Output only. The current state of the scope resource.
3163
+ # Corresponds to the JSON property `code`
3164
+ # @return [String]
3165
+ attr_accessor :code
3166
+
3167
+ def initialize(**args)
3168
+ update!(**args)
3169
+ end
3170
+
3171
+ # Update properties of this object
3172
+ def update!(**args)
3173
+ @code = args[:code] if args.key?(:code)
3174
+ end
3175
+ end
3176
+
2967
3177
  # Status of control plane management.
2968
3178
  class ServiceMeshControlPlaneManagement
2969
3179
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1
18
18
  # Version of the google-apis-gkehub_v1 gem
19
- GEM_VERSION = "0.41.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230206"
25
+ REVISION = "20230219"
26
26
  end
27
27
  end
28
28
  end
@@ -376,6 +376,12 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
+ class ListMembershipBindingsResponse
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
379
385
  class ListMembershipsResponse
380
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
387
 
@@ -388,6 +394,12 @@ module Google
388
394
  include Google::Apis::Core::JsonObjectSupport
389
395
  end
390
396
 
397
+ class ListScopesResponse
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
391
403
  class Location
392
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
405
 
@@ -400,6 +412,18 @@ module Google
400
412
  include Google::Apis::Core::JsonObjectSupport
401
413
  end
402
414
 
415
+ class MembershipBinding
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
421
+ class MembershipBindingLifecycleState
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
403
427
  class MembershipEndpoint
404
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
429
 
@@ -472,6 +496,12 @@ module Google
472
496
  include Google::Apis::Core::JsonObjectSupport
473
497
  end
474
498
 
499
+ class Scope
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
475
505
  class ScopeFeatureSpec
476
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
507
 
@@ -484,6 +514,12 @@ module Google
484
514
  include Google::Apis::Core::JsonObjectSupport
485
515
  end
486
516
 
517
+ class ScopeLifecycleState
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
487
523
  class ServiceMeshControlPlaneManagement
488
524
  class Representation < Google::Apis::Core::JsonRepresentation; end
489
525
 
@@ -1136,6 +1172,15 @@ module Google
1136
1172
  end
1137
1173
  end
1138
1174
 
1175
+ class ListMembershipBindingsResponse
1176
+ # @private
1177
+ class Representation < Google::Apis::Core::JsonRepresentation
1178
+ collection :membership_bindings, as: 'membershipBindings', class: Google::Apis::GkehubV1::MembershipBinding, decorator: Google::Apis::GkehubV1::MembershipBinding::Representation
1179
+
1180
+ property :next_page_token, as: 'nextPageToken'
1181
+ end
1182
+ end
1183
+
1139
1184
  class ListMembershipsResponse
1140
1185
  # @private
1141
1186
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1155,6 +1200,15 @@ module Google
1155
1200
  end
1156
1201
  end
1157
1202
 
1203
+ class ListScopesResponse
1204
+ # @private
1205
+ class Representation < Google::Apis::Core::JsonRepresentation
1206
+ property :next_page_token, as: 'nextPageToken'
1207
+ collection :scopes, as: 'scopes', class: Google::Apis::GkehubV1::Scope, decorator: Google::Apis::GkehubV1::Scope::Representation
1208
+
1209
+ end
1210
+ end
1211
+
1158
1212
  class Location
1159
1213
  # @private
1160
1214
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1187,6 +1241,28 @@ module Google
1187
1241
  end
1188
1242
  end
1189
1243
 
1244
+ class MembershipBinding
1245
+ # @private
1246
+ class Representation < Google::Apis::Core::JsonRepresentation
1247
+ property :create_time, as: 'createTime'
1248
+ property :delete_time, as: 'deleteTime'
1249
+ property :fleet, as: 'fleet'
1250
+ property :name, as: 'name'
1251
+ property :scope, as: 'scope'
1252
+ property :state, as: 'state', class: Google::Apis::GkehubV1::MembershipBindingLifecycleState, decorator: Google::Apis::GkehubV1::MembershipBindingLifecycleState::Representation
1253
+
1254
+ property :uid, as: 'uid'
1255
+ property :update_time, as: 'updateTime'
1256
+ end
1257
+ end
1258
+
1259
+ class MembershipBindingLifecycleState
1260
+ # @private
1261
+ class Representation < Google::Apis::Core::JsonRepresentation
1262
+ property :code, as: 'code'
1263
+ end
1264
+ end
1265
+
1190
1266
  class MembershipEndpoint
1191
1267
  # @private
1192
1268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1327,6 +1403,19 @@ module Google
1327
1403
  end
1328
1404
  end
1329
1405
 
1406
+ class Scope
1407
+ # @private
1408
+ class Representation < Google::Apis::Core::JsonRepresentation
1409
+ property :create_time, as: 'createTime'
1410
+ property :delete_time, as: 'deleteTime'
1411
+ property :name, as: 'name'
1412
+ property :state, as: 'state', class: Google::Apis::GkehubV1::ScopeLifecycleState, decorator: Google::Apis::GkehubV1::ScopeLifecycleState::Representation
1413
+
1414
+ property :uid, as: 'uid'
1415
+ property :update_time, as: 'updateTime'
1416
+ end
1417
+ end
1418
+
1330
1419
  class ScopeFeatureSpec
1331
1420
  # @private
1332
1421
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1341,6 +1430,13 @@ module Google
1341
1430
  end
1342
1431
  end
1343
1432
 
1433
+ class ScopeLifecycleState
1434
+ # @private
1435
+ class Representation < Google::Apis::Core::JsonRepresentation
1436
+ property :code, as: 'code'
1437
+ end
1438
+ end
1439
+
1344
1440
  class ServiceMeshControlPlaneManagement
1345
1441
  # @private
1346
1442
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -534,6 +534,10 @@ module Google
534
534
  # @param [String] name
535
535
  # Required. The Membership resource name in the format `projects/*/locations/*/
536
536
  # memberships/*`.
537
+ # @param [Boolean] force
538
+ # Optional. If set to true, any subresource from this Membership will also be
539
+ # deleted. Otherwise, the request will only work if the Membership has no
540
+ # subresource.
537
541
  # @param [String] request_id
538
542
  # Optional. A request ID to identify requests. Specify a unique request ID so
539
543
  # that if you must retry your request, the server will know to ignore the
@@ -562,11 +566,12 @@ module Google
562
566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
565
- def delete_project_location_membership(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
569
+ def delete_project_location_membership(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
566
570
  command = make_simple_command(:delete, 'v1/{+name}', options)
567
571
  command.response_representation = Google::Apis::GkehubV1::Operation::Representation
568
572
  command.response_class = Google::Apis::GkehubV1::Operation
569
573
  command.params['name'] = name unless name.nil?
574
+ command.query['force'] = force unless force.nil?
570
575
  command.query['requestId'] = request_id unless request_id.nil?
571
576
  command.query['fields'] = fields unless fields.nil?
572
577
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -888,6 +893,183 @@ module Google
888
893
  execute_or_queue_command(command, &block)
889
894
  end
890
895
 
896
+ # Creates a MembershipBinding.
897
+ # @param [String] parent
898
+ # Required. The parent (project and location) where the MembershipBinding will
899
+ # be created. Specified in the format `projects/*/locations/*/memberships/*`.
900
+ # @param [Google::Apis::GkehubV1::MembershipBinding] membership_binding_object
901
+ # @param [String] membership_binding_id
902
+ # Required. The ID to use for the MembershipBinding.
903
+ # @param [String] fields
904
+ # Selector specifying which fields to include in a partial response.
905
+ # @param [String] quota_user
906
+ # Available to use for quota purposes for server-side applications. Can be any
907
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
908
+ # @param [Google::Apis::RequestOptions] options
909
+ # Request-specific options
910
+ #
911
+ # @yield [result, err] Result & error if block supplied
912
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
913
+ # @yieldparam err [StandardError] error object if request failed
914
+ #
915
+ # @return [Google::Apis::GkehubV1::Operation]
916
+ #
917
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
918
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
919
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
920
+ def create_project_location_membership_binding(parent, membership_binding_object = nil, membership_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
921
+ command = make_simple_command(:post, 'v1/{+parent}/bindings', options)
922
+ command.request_representation = Google::Apis::GkehubV1::MembershipBinding::Representation
923
+ command.request_object = membership_binding_object
924
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
925
+ command.response_class = Google::Apis::GkehubV1::Operation
926
+ command.params['parent'] = parent unless parent.nil?
927
+ command.query['membershipBindingId'] = membership_binding_id unless membership_binding_id.nil?
928
+ command.query['fields'] = fields unless fields.nil?
929
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
930
+ execute_or_queue_command(command, &block)
931
+ end
932
+
933
+ # Deletes a MembershipBinding.
934
+ # @param [String] name
935
+ # Required. The MembershipBinding resource name in the format `projects/*/
936
+ # locations/*/memberships/*/bindings/*`.
937
+ # @param [String] fields
938
+ # Selector specifying which fields to include in a partial response.
939
+ # @param [String] quota_user
940
+ # Available to use for quota purposes for server-side applications. Can be any
941
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
942
+ # @param [Google::Apis::RequestOptions] options
943
+ # Request-specific options
944
+ #
945
+ # @yield [result, err] Result & error if block supplied
946
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
947
+ # @yieldparam err [StandardError] error object if request failed
948
+ #
949
+ # @return [Google::Apis::GkehubV1::Operation]
950
+ #
951
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
952
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
953
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
954
+ def delete_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
955
+ command = make_simple_command(:delete, 'v1/{+name}', options)
956
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
957
+ command.response_class = Google::Apis::GkehubV1::Operation
958
+ command.params['name'] = name unless name.nil?
959
+ command.query['fields'] = fields unless fields.nil?
960
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
961
+ execute_or_queue_command(command, &block)
962
+ end
963
+
964
+ # Returns the details of a MembershipBinding.
965
+ # @param [String] name
966
+ # Required. The MembershipBinding resource name in the format `projects/*/
967
+ # locations/*/memberships/*/bindings/*`.
968
+ # @param [String] fields
969
+ # Selector specifying which fields to include in a partial response.
970
+ # @param [String] quota_user
971
+ # Available to use for quota purposes for server-side applications. Can be any
972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
973
+ # @param [Google::Apis::RequestOptions] options
974
+ # Request-specific options
975
+ #
976
+ # @yield [result, err] Result & error if block supplied
977
+ # @yieldparam result [Google::Apis::GkehubV1::MembershipBinding] parsed result object
978
+ # @yieldparam err [StandardError] error object if request failed
979
+ #
980
+ # @return [Google::Apis::GkehubV1::MembershipBinding]
981
+ #
982
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
983
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
984
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
985
+ def get_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
986
+ command = make_simple_command(:get, 'v1/{+name}', options)
987
+ command.response_representation = Google::Apis::GkehubV1::MembershipBinding::Representation
988
+ command.response_class = Google::Apis::GkehubV1::MembershipBinding
989
+ command.params['name'] = name unless name.nil?
990
+ command.query['fields'] = fields unless fields.nil?
991
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
992
+ execute_or_queue_command(command, &block)
993
+ end
994
+
995
+ # Lists MembershipBindings.
996
+ # @param [String] parent
997
+ # Required. The parent Membership for which the MembershipBindings will be
998
+ # listed. Specified in the format `projects/*/locations/*/memberships/*`.
999
+ # @param [Fixnum] page_size
1000
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1001
+ # of resources to return. If unspecified or set to 0, all resources will be
1002
+ # returned.
1003
+ # @param [String] page_token
1004
+ # Optional. Token returned by previous call to `ListMembershipBindings` which
1005
+ # specifies the position in the list from where to continue listing the
1006
+ # resources.
1007
+ # @param [String] fields
1008
+ # Selector specifying which fields to include in a partial response.
1009
+ # @param [String] quota_user
1010
+ # Available to use for quota purposes for server-side applications. Can be any
1011
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1012
+ # @param [Google::Apis::RequestOptions] options
1013
+ # Request-specific options
1014
+ #
1015
+ # @yield [result, err] Result & error if block supplied
1016
+ # @yieldparam result [Google::Apis::GkehubV1::ListMembershipBindingsResponse] parsed result object
1017
+ # @yieldparam err [StandardError] error object if request failed
1018
+ #
1019
+ # @return [Google::Apis::GkehubV1::ListMembershipBindingsResponse]
1020
+ #
1021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1024
+ def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1025
+ command = make_simple_command(:get, 'v1/{+parent}/bindings', options)
1026
+ command.response_representation = Google::Apis::GkehubV1::ListMembershipBindingsResponse::Representation
1027
+ command.response_class = Google::Apis::GkehubV1::ListMembershipBindingsResponse
1028
+ command.params['parent'] = parent unless parent.nil?
1029
+ command.query['pageSize'] = page_size unless page_size.nil?
1030
+ command.query['pageToken'] = page_token unless page_token.nil?
1031
+ command.query['fields'] = fields unless fields.nil?
1032
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1033
+ execute_or_queue_command(command, &block)
1034
+ end
1035
+
1036
+ # Updates a MembershipBinding.
1037
+ # @param [String] name
1038
+ # The resource name for the membershipbinding itself `projects/`project`/
1039
+ # locations/`location`/memberships/`membership`/bindings/`membershipbinding``
1040
+ # @param [Google::Apis::GkehubV1::MembershipBinding] membership_binding_object
1041
+ # @param [String] update_mask
1042
+ # Required. The fields to be updated.
1043
+ # @param [String] fields
1044
+ # Selector specifying which fields to include in a partial response.
1045
+ # @param [String] quota_user
1046
+ # Available to use for quota purposes for server-side applications. Can be any
1047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1048
+ # @param [Google::Apis::RequestOptions] options
1049
+ # Request-specific options
1050
+ #
1051
+ # @yield [result, err] Result & error if block supplied
1052
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
1053
+ # @yieldparam err [StandardError] error object if request failed
1054
+ #
1055
+ # @return [Google::Apis::GkehubV1::Operation]
1056
+ #
1057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
+ def patch_project_location_membership_binding(name, membership_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1061
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1062
+ command.request_representation = Google::Apis::GkehubV1::MembershipBinding::Representation
1063
+ command.request_object = membership_binding_object
1064
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
1065
+ command.response_class = Google::Apis::GkehubV1::Operation
1066
+ command.params['name'] = name unless name.nil?
1067
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1068
+ command.query['fields'] = fields unless fields.nil?
1069
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1070
+ execute_or_queue_command(command, &block)
1071
+ end
1072
+
891
1073
  # Starts asynchronous cancellation on a long-running operation. The server makes
892
1074
  # a best effort to cancel the operation, but success is not guaranteed. If the
893
1075
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -1037,6 +1219,145 @@ module Google
1037
1219
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1038
1220
  execute_or_queue_command(command, &block)
1039
1221
  end
1222
+
1223
+ # Creates a Scope.
1224
+ # @param [String] parent
1225
+ # Required. The parent (project and location) where the Scope will be created.
1226
+ # Specified in the format `projects/*/locations/*`.
1227
+ # @param [Google::Apis::GkehubV1::Scope] scope_object
1228
+ # @param [String] scope_id
1229
+ # Required. Client chosen ID for the Scope. `scope_id` must be a ????
1230
+ # @param [String] fields
1231
+ # Selector specifying which fields to include in a partial response.
1232
+ # @param [String] quota_user
1233
+ # Available to use for quota purposes for server-side applications. Can be any
1234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1235
+ # @param [Google::Apis::RequestOptions] options
1236
+ # Request-specific options
1237
+ #
1238
+ # @yield [result, err] Result & error if block supplied
1239
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
1240
+ # @yieldparam err [StandardError] error object if request failed
1241
+ #
1242
+ # @return [Google::Apis::GkehubV1::Operation]
1243
+ #
1244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1247
+ def create_project_location_scope(parent, scope_object = nil, scope_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1248
+ command = make_simple_command(:post, 'v1/{+parent}/scopes', options)
1249
+ command.request_representation = Google::Apis::GkehubV1::Scope::Representation
1250
+ command.request_object = scope_object
1251
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
1252
+ command.response_class = Google::Apis::GkehubV1::Operation
1253
+ command.params['parent'] = parent unless parent.nil?
1254
+ command.query['scopeId'] = scope_id unless scope_id.nil?
1255
+ command.query['fields'] = fields unless fields.nil?
1256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1257
+ execute_or_queue_command(command, &block)
1258
+ end
1259
+
1260
+ # Deletes a Scope.
1261
+ # @param [String] name
1262
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1263
+ # *`.
1264
+ # @param [String] fields
1265
+ # Selector specifying which fields to include in a partial response.
1266
+ # @param [String] quota_user
1267
+ # Available to use for quota purposes for server-side applications. Can be any
1268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1269
+ # @param [Google::Apis::RequestOptions] options
1270
+ # Request-specific options
1271
+ #
1272
+ # @yield [result, err] Result & error if block supplied
1273
+ # @yieldparam result [Google::Apis::GkehubV1::Operation] parsed result object
1274
+ # @yieldparam err [StandardError] error object if request failed
1275
+ #
1276
+ # @return [Google::Apis::GkehubV1::Operation]
1277
+ #
1278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1281
+ def delete_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1282
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1283
+ command.response_representation = Google::Apis::GkehubV1::Operation::Representation
1284
+ command.response_class = Google::Apis::GkehubV1::Operation
1285
+ command.params['name'] = name unless name.nil?
1286
+ command.query['fields'] = fields unless fields.nil?
1287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1288
+ execute_or_queue_command(command, &block)
1289
+ end
1290
+
1291
+ # Returns the details of a Scope.
1292
+ # @param [String] name
1293
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1294
+ # *`.
1295
+ # @param [String] fields
1296
+ # Selector specifying which fields to include in a partial response.
1297
+ # @param [String] quota_user
1298
+ # Available to use for quota purposes for server-side applications. Can be any
1299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1300
+ # @param [Google::Apis::RequestOptions] options
1301
+ # Request-specific options
1302
+ #
1303
+ # @yield [result, err] Result & error if block supplied
1304
+ # @yieldparam result [Google::Apis::GkehubV1::Scope] parsed result object
1305
+ # @yieldparam err [StandardError] error object if request failed
1306
+ #
1307
+ # @return [Google::Apis::GkehubV1::Scope]
1308
+ #
1309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
+ def get_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1313
+ command = make_simple_command(:get, 'v1/{+name}', options)
1314
+ command.response_representation = Google::Apis::GkehubV1::Scope::Representation
1315
+ command.response_class = Google::Apis::GkehubV1::Scope
1316
+ command.params['name'] = name unless name.nil?
1317
+ command.query['fields'] = fields unless fields.nil?
1318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
+ execute_or_queue_command(command, &block)
1320
+ end
1321
+
1322
+ # Lists Scopes.
1323
+ # @param [String] parent
1324
+ # Required. The parent (project and location) where the Scope will be listed.
1325
+ # Specified in the format `projects/*/locations/*`.
1326
+ # @param [Fixnum] page_size
1327
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1328
+ # of resources to return. If unspecified or set to 0, all resources will be
1329
+ # returned.
1330
+ # @param [String] page_token
1331
+ # Optional. Token returned by previous call to `ListScopes` which specifies the
1332
+ # position in the list from where to continue listing the resources.
1333
+ # @param [String] fields
1334
+ # Selector specifying which fields to include in a partial response.
1335
+ # @param [String] quota_user
1336
+ # Available to use for quota purposes for server-side applications. Can be any
1337
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1338
+ # @param [Google::Apis::RequestOptions] options
1339
+ # Request-specific options
1340
+ #
1341
+ # @yield [result, err] Result & error if block supplied
1342
+ # @yieldparam result [Google::Apis::GkehubV1::ListScopesResponse] parsed result object
1343
+ # @yieldparam err [StandardError] error object if request failed
1344
+ #
1345
+ # @return [Google::Apis::GkehubV1::ListScopesResponse]
1346
+ #
1347
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1348
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1349
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1350
+ def list_project_location_scopes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1351
+ command = make_simple_command(:get, 'v1/{+parent}/scopes', options)
1352
+ command.response_representation = Google::Apis::GkehubV1::ListScopesResponse::Representation
1353
+ command.response_class = Google::Apis::GkehubV1::ListScopesResponse
1354
+ command.params['parent'] = parent unless parent.nil?
1355
+ command.query['pageSize'] = page_size unless page_size.nil?
1356
+ command.query['pageToken'] = page_token unless page_token.nil?
1357
+ command.query['fields'] = fields unless fields.nil?
1358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1359
+ execute_or_queue_command(command, &block)
1360
+ end
1040
1361
 
1041
1362
  protected
1042
1363
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1/v0.42.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1
63
63
  post_install_message:
64
64
  rdoc_options: []