google-apis-gkehub_v1alpha 0.59.0 → 0.60.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d1c0726ea8519773f90b1d69e57b23d8cf42eb8bde62fc24bf118d6138692a
4
- data.tar.gz: 6a6589bd69d04c0177ff9bf40d1041f0eabc21c6df3bcb30503b11ed923b8b20
3
+ metadata.gz: b8d5ab9e0222fa48fb602d77a391ce3c331711dcdb142aa27aaca6d55e5a0f87
4
+ data.tar.gz: 98ea3d879c99f22f567983da14f40b22278ca5b7202f65b0c7891a6858c4c1fe
5
5
  SHA512:
6
- metadata.gz: e2fd27a21c3c4050109bea548e0225025bdc09b5a780cbb838a54579164ecb5778ebed8779d744b04bd7be5f679e9df185ee4fa897bb4b9ed8139eaf66c7e3cd
7
- data.tar.gz: 26dcc629ed2b36afccb03f366b8a638d97c8b4b2cc69762eae4e811bd3af507fd20baff672c6c663c1f95dd1459571812ba05e8ea1a14b7f308b71ff41032bb6
6
+ metadata.gz: 989f98309a7591167f67c6914b1d99ef174bf6cdf1e32fbcb3980997fa5dc31139cbdc8bfbc55db8b51a12bd479651e23ecb4fc44153f2db273950361c42aa39
7
+ data.tar.gz: ebde720c1f4488b79df465e0fb28212882db54a0fa9ee472f0619f3ff02ee6a6a454afc6dadb1f2283b1235898b55e6d65b52b6a1eb4b67de1e91575814e6f4b
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
- ### v0.59.0 (2023-08-03)
3
+ ### v0.60.0 (2023-08-13)
4
4
 
5
- * Regenerated from discovery document revision 20230720
5
+ * Regenerated from discovery document revision 20230804
6
+
7
+ ### v0.59.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230728
6
10
 
7
11
  ### v0.58.0 (2023-07-16)
8
12
 
@@ -465,11 +465,6 @@ module Google
465
465
  # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition>]
466
466
  attr_accessor :conditions
467
467
 
468
- # Scope-level upgrade state.
469
- # Corresponds to the JSON property `state`
470
- # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState>]
471
- attr_accessor :state
472
-
473
468
  # Upgrade state. It will eventually replace `state`.
474
469
  # Corresponds to the JSON property `upgradeState`
475
470
  # @return [Array<Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeState>]
@@ -482,7 +477,6 @@ module Google
482
477
  # Update properties of this object
483
478
  def update!(**args)
484
479
  @conditions = args[:conditions] if args.key?(:conditions)
485
- @state = args[:state] if args.key?(:state)
486
480
  @upgrade_state = args[:upgrade_state] if args.key?(:upgrade_state)
487
481
  end
488
482
  end
@@ -652,37 +646,6 @@ module Google
652
646
  end
653
647
  end
654
648
 
655
- # ScopeGKEUpgradeState is a GKEUpgrade and its state at the scope level.
656
- class ClusterUpgradeScopeGkeUpgradeState
657
- include Google::Apis::Core::Hashable
658
-
659
- # Number of GKE clusters in each status code.
660
- # Corresponds to the JSON property `stats`
661
- # @return [Hash<String,Fixnum>]
662
- attr_accessor :stats
663
-
664
- # UpgradeStatus provides status information for each upgrade.
665
- # Corresponds to the JSON property `status`
666
- # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus]
667
- attr_accessor :status
668
-
669
- # GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
670
- # Corresponds to the JSON property `upgrade`
671
- # @return [Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade]
672
- attr_accessor :upgrade
673
-
674
- def initialize(**args)
675
- update!(**args)
676
- end
677
-
678
- # Update properties of this object
679
- def update!(**args)
680
- @stats = args[:stats] if args.key?(:stats)
681
- @status = args[:status] if args.key?(:status)
682
- @upgrade = args[:upgrade] if args.key?(:upgrade)
683
- end
684
- end
685
-
686
649
  # **ClusterUpgrade**: The configuration for the scope-level ClusterUpgrade
687
650
  # feature.
688
651
  class ClusterUpgradeScopeSpec
@@ -2769,6 +2732,11 @@ module Google
2769
2732
  # @return [String]
2770
2733
  attr_accessor :tenant
2771
2734
 
2735
+ # Optional. Claim in the AzureAD ID Token that holds the user details.
2736
+ # Corresponds to the JSON property `userClaim`
2737
+ # @return [String]
2738
+ attr_accessor :user_claim
2739
+
2772
2740
  def initialize(**args)
2773
2741
  update!(**args)
2774
2742
  end
@@ -2780,6 +2748,7 @@ module Google
2780
2748
  @encrypted_client_secret = args[:encrypted_client_secret] if args.key?(:encrypted_client_secret)
2781
2749
  @kubectl_redirect_uri = args[:kubectl_redirect_uri] if args.key?(:kubectl_redirect_uri)
2782
2750
  @tenant = args[:tenant] if args.key?(:tenant)
2751
+ @user_claim = args[:user_claim] if args.key?(:user_claim)
2783
2752
  end
2784
2753
  end
2785
2754
 
@@ -3350,6 +3319,59 @@ module Google
3350
3319
  end
3351
3320
  end
3352
3321
 
3322
+ # List of fleet namespaces.
3323
+ class ListScopeNamespacesResponse
3324
+ include Google::Apis::Core::Hashable
3325
+
3326
+ # A token to request the next page of resources from the `ListNamespaces` method.
3327
+ # The value of an empty string means that there are no more resources to return.
3328
+ # Corresponds to the JSON property `nextPageToken`
3329
+ # @return [String]
3330
+ attr_accessor :next_page_token
3331
+
3332
+ # The list of fleet namespaces
3333
+ # Corresponds to the JSON property `scopeNamespaces`
3334
+ # @return [Array<Google::Apis::GkehubV1alpha::Namespace>]
3335
+ attr_accessor :scope_namespaces
3336
+
3337
+ def initialize(**args)
3338
+ update!(**args)
3339
+ end
3340
+
3341
+ # Update properties of this object
3342
+ def update!(**args)
3343
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3344
+ @scope_namespaces = args[:scope_namespaces] if args.key?(:scope_namespaces)
3345
+ end
3346
+ end
3347
+
3348
+ # List of Scope RBACRoleBindings.
3349
+ class ListScopeRbacRoleBindingsResponse
3350
+ include Google::Apis::Core::Hashable
3351
+
3352
+ # A token to request the next page of resources from the `
3353
+ # ListScopeRBACRoleBindings` method. The value of an empty string means that
3354
+ # there are no more resources to return.
3355
+ # Corresponds to the JSON property `nextPageToken`
3356
+ # @return [String]
3357
+ attr_accessor :next_page_token
3358
+
3359
+ # The list of Scope RBACRoleBindings.
3360
+ # Corresponds to the JSON property `rbacrolebindings`
3361
+ # @return [Array<Google::Apis::GkehubV1alpha::RbacRoleBinding>]
3362
+ attr_accessor :rbacrolebindings
3363
+
3364
+ def initialize(**args)
3365
+ update!(**args)
3366
+ end
3367
+
3368
+ # Update properties of this object
3369
+ def update!(**args)
3370
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3371
+ @rbacrolebindings = args[:rbacrolebindings] if args.key?(:rbacrolebindings)
3372
+ end
3373
+ end
3374
+
3353
3375
  # List of Scopes.
3354
3376
  class ListScopesResponse
3355
3377
  include Google::Apis::Core::Hashable
@@ -4039,6 +4061,15 @@ module Google
4039
4061
  # @return [String]
4040
4062
  attr_accessor :name
4041
4063
 
4064
+ # Optional. Namespace-level cluster namespace labels. These labels are applied
4065
+ # to the related namespace of the member clusters bound to the parent Scope.
4066
+ # Scope-level labels (`namespace_labels` in the Fleet Scope resource) take
4067
+ # precedence over Namespace-level labels if they share a key. Keys and values
4068
+ # must be Kubernetes-conformant.
4069
+ # Corresponds to the JSON property `namespaceLabels`
4070
+ # @return [Hash<String,String>]
4071
+ attr_accessor :namespace_labels
4072
+
4042
4073
  # Required. Scope associated with the namespace
4043
4074
  # Corresponds to the JSON property `scope`
4044
4075
  # @return [String]
@@ -4071,6 +4102,7 @@ module Google
4071
4102
  @delete_time = args[:delete_time] if args.key?(:delete_time)
4072
4103
  @labels = args[:labels] if args.key?(:labels)
4073
4104
  @name = args[:name] if args.key?(:name)
4105
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
4074
4106
  @scope = args[:scope] if args.key?(:scope)
4075
4107
  @state = args[:state] if args.key?(:state)
4076
4108
  @uid = args[:uid] if args.key?(:uid)
@@ -4177,13 +4209,13 @@ module Google
4177
4209
  # @return [String]
4178
4210
  attr_accessor :name
4179
4211
 
4180
- # The normal response of the operation in case of success. If the original
4181
- # method returns no data on success, such as `Delete`, the response is `google.
4182
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
4183
- # the response should be the resource. For other methods, the response should
4184
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
4185
- # example, if the original method name is `TakeSnapshot()`, the inferred
4186
- # response type is `TakeSnapshotResponse`.
4212
+ # The normal, successful response of the operation. If the original method
4213
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
4214
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
4215
+ # response should be the resource. For other methods, the response should have
4216
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
4217
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
4218
+ # `TakeSnapshotResponse`.
4187
4219
  # Corresponds to the JSON property `response`
4188
4220
  # @return [Hash<String,Object>]
4189
4221
  attr_accessor :response
@@ -4291,22 +4323,22 @@ module Google
4291
4323
  # evaluates to `true`. A condition can add constraints based on attributes of
4292
4324
  # the request, the resource, or both. To learn which resources support
4293
4325
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4294
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
4326
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
4295
4327
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
4296
4328
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
4297
4329
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
4298
4330
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
4299
4331
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
4300
4332
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
4301
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
4302
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
4303
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
4304
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
4305
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
4306
- # access description: Does not grant access after Sep 2020 expression: request.
4307
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
4308
- # a description of IAM and its features, see the [IAM documentation](https://
4309
- # cloud.google.com/iam/docs/).
4333
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
4334
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
4335
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
4336
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
4337
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
4338
+ # title: expirable access description: Does not grant access after Sep 2020
4339
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
4340
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
4341
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
4310
4342
  class Policy
4311
4343
  include Google::Apis::Core::Hashable
4312
4344
 
@@ -5014,6 +5046,15 @@ module Google
5014
5046
  # @return [String]
5015
5047
  attr_accessor :name
5016
5048
 
5049
+ # Optional. Scope-level cluster namespace labels. For the member clusters bound
5050
+ # to the Scope, these labels are applied to each namespace under the Scope.
5051
+ # Scope-level labels take precedence over Namespace-level labels (`
5052
+ # namespace_labels` in the Fleet Namespace resource) if they share a key. Keys
5053
+ # and values must be Kubernetes-conformant.
5054
+ # Corresponds to the JSON property `namespaceLabels`
5055
+ # @return [Hash<String,String>]
5056
+ attr_accessor :namespace_labels
5057
+
5017
5058
  # ScopeLifecycleState describes the state of a Scope resource.
5018
5059
  # Corresponds to the JSON property `state`
5019
5060
  # @return [Google::Apis::GkehubV1alpha::ScopeLifecycleState]
@@ -5042,6 +5083,7 @@ module Google
5042
5083
  @delete_time = args[:delete_time] if args.key?(:delete_time)
5043
5084
  @labels = args[:labels] if args.key?(:labels)
5044
5085
  @name = args[:name] if args.key?(:name)
5086
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
5045
5087
  @state = args[:state] if args.key?(:state)
5046
5088
  @uid = args[:uid] if args.key?(:uid)
5047
5089
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -5411,22 +5453,22 @@ module Google
5411
5453
  # evaluates to `true`. A condition can add constraints based on attributes of
5412
5454
  # the request, the resource, or both. To learn which resources support
5413
5455
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
5414
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
5456
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
5415
5457
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
5416
5458
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
5417
5459
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
5418
5460
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
5419
5461
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
5420
5462
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
5421
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
5422
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
5423
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
5424
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
5425
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
5426
- # access description: Does not grant access after Sep 2020 expression: request.
5427
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
5428
- # a description of IAM and its features, see the [IAM documentation](https://
5429
- # cloud.google.com/iam/docs/).
5463
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
5464
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
5465
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
5466
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
5467
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
5468
+ # title: expirable access description: Does not grant access after Sep 2020
5469
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
5470
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
5471
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
5430
5472
  # Corresponds to the JSON property `policy`
5431
5473
  # @return [Google::Apis::GkehubV1alpha::Policy]
5432
5474
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1alpha
18
18
  # Version of the google-apis-gkehub_v1alpha gem
19
- GEM_VERSION = "0.59.0"
19
+ GEM_VERSION = "0.60.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230720"
25
+ REVISION = "20230804"
26
26
  end
27
27
  end
28
28
  end
@@ -148,12 +148,6 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class ClusterUpgradeScopeGkeUpgradeState
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
153
-
154
- include Google::Apis::Core::JsonObjectSupport
155
- end
156
-
157
151
  class ClusterUpgradeScopeSpec
158
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
153
 
@@ -610,6 +604,18 @@ module Google
610
604
  include Google::Apis::Core::JsonObjectSupport
611
605
  end
612
606
 
607
+ class ListScopeNamespacesResponse
608
+ class Representation < Google::Apis::Core::JsonRepresentation; end
609
+
610
+ include Google::Apis::Core::JsonObjectSupport
611
+ end
612
+
613
+ class ListScopeRbacRoleBindingsResponse
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
613
619
  class ListScopesResponse
614
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
621
 
@@ -1089,8 +1095,6 @@ module Google
1089
1095
  class Representation < Google::Apis::Core::JsonRepresentation
1090
1096
  collection :conditions, as: 'conditions', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeFeatureCondition::Representation
1091
1097
 
1092
- collection :state, as: 'state', class: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeScopeGkeUpgradeState::Representation
1093
-
1094
1098
  collection :upgrade_state, as: 'upgradeState', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeState, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeState::Representation
1095
1099
 
1096
1100
  end
@@ -1153,17 +1157,6 @@ module Google
1153
1157
  end
1154
1158
  end
1155
1159
 
1156
- class ClusterUpgradeScopeGkeUpgradeState
1157
- # @private
1158
- class Representation < Google::Apis::Core::JsonRepresentation
1159
- hash :stats, as: 'stats'
1160
- property :status, as: 'status', class: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus::Representation
1161
-
1162
- property :upgrade, as: 'upgrade', class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade, decorator: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade::Representation
1163
-
1164
- end
1165
- end
1166
-
1167
1160
  class ClusterUpgradeScopeSpec
1168
1161
  # @private
1169
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1779,6 +1772,7 @@ module Google
1779
1772
  property :encrypted_client_secret, :base64 => true, as: 'encryptedClientSecret'
1780
1773
  property :kubectl_redirect_uri, as: 'kubectlRedirectUri'
1781
1774
  property :tenant, as: 'tenant'
1775
+ property :user_claim, as: 'userClaim'
1782
1776
  end
1783
1777
  end
1784
1778
 
@@ -1945,6 +1939,24 @@ module Google
1945
1939
  end
1946
1940
  end
1947
1941
 
1942
+ class ListScopeNamespacesResponse
1943
+ # @private
1944
+ class Representation < Google::Apis::Core::JsonRepresentation
1945
+ property :next_page_token, as: 'nextPageToken'
1946
+ collection :scope_namespaces, as: 'scopeNamespaces', class: Google::Apis::GkehubV1alpha::Namespace, decorator: Google::Apis::GkehubV1alpha::Namespace::Representation
1947
+
1948
+ end
1949
+ end
1950
+
1951
+ class ListScopeRbacRoleBindingsResponse
1952
+ # @private
1953
+ class Representation < Google::Apis::Core::JsonRepresentation
1954
+ property :next_page_token, as: 'nextPageToken'
1955
+ collection :rbacrolebindings, as: 'rbacrolebindings', class: Google::Apis::GkehubV1alpha::RbacRoleBinding, decorator: Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
1956
+
1957
+ end
1958
+ end
1959
+
1948
1960
  class ListScopesResponse
1949
1961
  # @private
1950
1962
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2136,6 +2148,7 @@ module Google
2136
2148
  property :delete_time, as: 'deleteTime'
2137
2149
  hash :labels, as: 'labels'
2138
2150
  property :name, as: 'name'
2151
+ hash :namespace_labels, as: 'namespaceLabels'
2139
2152
  property :scope, as: 'scope'
2140
2153
  property :state, as: 'state', class: Google::Apis::GkehubV1alpha::NamespaceLifecycleState, decorator: Google::Apis::GkehubV1alpha::NamespaceLifecycleState::Representation
2141
2154
 
@@ -2393,6 +2406,7 @@ module Google
2393
2406
  property :delete_time, as: 'deleteTime'
2394
2407
  hash :labels, as: 'labels'
2395
2408
  property :name, as: 'name'
2409
+ hash :namespace_labels, as: 'namespaceLabels'
2396
2410
  property :state, as: 'state', class: Google::Apis::GkehubV1alpha::ScopeLifecycleState, decorator: Google::Apis::GkehubV1alpha::ScopeLifecycleState::Representation
2397
2411
 
2398
2412
  property :uid, as: 'uid'
@@ -2405,6 +2405,369 @@ module Google
2405
2405
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2406
2406
  execute_or_queue_command(command, &block)
2407
2407
  end
2408
+
2409
+ # Creates a fleet namespace.
2410
+ # @param [String] parent
2411
+ # Required. The parent (project and location) where the Namespace will be
2412
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2413
+ # @param [Google::Apis::GkehubV1alpha::Namespace] namespace_object
2414
+ # @param [String] scope_namespace_id
2415
+ # Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
2416
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
2417
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
2418
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
2419
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2420
+ # @param [String] fields
2421
+ # Selector specifying which fields to include in a partial response.
2422
+ # @param [String] quota_user
2423
+ # Available to use for quota purposes for server-side applications. Can be any
2424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2425
+ # @param [Google::Apis::RequestOptions] options
2426
+ # Request-specific options
2427
+ #
2428
+ # @yield [result, err] Result & error if block supplied
2429
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2430
+ # @yieldparam err [StandardError] error object if request failed
2431
+ #
2432
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2433
+ #
2434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2437
+ def create_project_location_scope_namespace(parent, namespace_object = nil, scope_namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2438
+ command = make_simple_command(:post, 'v1alpha/{+parent}/namespaces', options)
2439
+ command.request_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
2440
+ command.request_object = namespace_object
2441
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2442
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2443
+ command.params['parent'] = parent unless parent.nil?
2444
+ command.query['scopeNamespaceId'] = scope_namespace_id unless scope_namespace_id.nil?
2445
+ command.query['fields'] = fields unless fields.nil?
2446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2447
+ execute_or_queue_command(command, &block)
2448
+ end
2449
+
2450
+ # Deletes a fleet namespace.
2451
+ # @param [String] name
2452
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2453
+ # scopes/*/namespaces/*`.
2454
+ # @param [String] fields
2455
+ # Selector specifying which fields to include in a partial response.
2456
+ # @param [String] quota_user
2457
+ # Available to use for quota purposes for server-side applications. Can be any
2458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2459
+ # @param [Google::Apis::RequestOptions] options
2460
+ # Request-specific options
2461
+ #
2462
+ # @yield [result, err] Result & error if block supplied
2463
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2464
+ # @yieldparam err [StandardError] error object if request failed
2465
+ #
2466
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2467
+ #
2468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2471
+ def delete_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2472
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
2473
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2474
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2475
+ command.params['name'] = name unless name.nil?
2476
+ command.query['fields'] = fields unless fields.nil?
2477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2478
+ execute_or_queue_command(command, &block)
2479
+ end
2480
+
2481
+ # Returns the details of a fleet namespace.
2482
+ # @param [String] name
2483
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2484
+ # scopes/*/namespaces/*`.
2485
+ # @param [String] fields
2486
+ # Selector specifying which fields to include in a partial response.
2487
+ # @param [String] quota_user
2488
+ # Available to use for quota purposes for server-side applications. Can be any
2489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2490
+ # @param [Google::Apis::RequestOptions] options
2491
+ # Request-specific options
2492
+ #
2493
+ # @yield [result, err] Result & error if block supplied
2494
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Namespace] parsed result object
2495
+ # @yieldparam err [StandardError] error object if request failed
2496
+ #
2497
+ # @return [Google::Apis::GkehubV1alpha::Namespace]
2498
+ #
2499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2502
+ def get_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2503
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2504
+ command.response_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
2505
+ command.response_class = Google::Apis::GkehubV1alpha::Namespace
2506
+ command.params['name'] = name unless name.nil?
2507
+ command.query['fields'] = fields unless fields.nil?
2508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2509
+ execute_or_queue_command(command, &block)
2510
+ end
2511
+
2512
+ # Lists fleet namespaces.
2513
+ # @param [String] parent
2514
+ # Required. The parent (project and location) where the Features will be listed.
2515
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2516
+ # @param [Fixnum] page_size
2517
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2518
+ # of resources to return. If unspecified or set to 0, all resources will be
2519
+ # returned.
2520
+ # @param [String] page_token
2521
+ # Optional. Token returned by previous call to `ListFeatures` which specifies
2522
+ # the position in the list from where to continue listing the resources.
2523
+ # @param [String] fields
2524
+ # Selector specifying which fields to include in a partial response.
2525
+ # @param [String] quota_user
2526
+ # Available to use for quota purposes for server-side applications. Can be any
2527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2528
+ # @param [Google::Apis::RequestOptions] options
2529
+ # Request-specific options
2530
+ #
2531
+ # @yield [result, err] Result & error if block supplied
2532
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListScopeNamespacesResponse] parsed result object
2533
+ # @yieldparam err [StandardError] error object if request failed
2534
+ #
2535
+ # @return [Google::Apis::GkehubV1alpha::ListScopeNamespacesResponse]
2536
+ #
2537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2540
+ def list_project_location_scope_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2541
+ command = make_simple_command(:get, 'v1alpha/{+parent}/namespaces', options)
2542
+ command.response_representation = Google::Apis::GkehubV1alpha::ListScopeNamespacesResponse::Representation
2543
+ command.response_class = Google::Apis::GkehubV1alpha::ListScopeNamespacesResponse
2544
+ command.params['parent'] = parent unless parent.nil?
2545
+ command.query['pageSize'] = page_size unless page_size.nil?
2546
+ command.query['pageToken'] = page_token unless page_token.nil?
2547
+ command.query['fields'] = fields unless fields.nil?
2548
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2549
+ execute_or_queue_command(command, &block)
2550
+ end
2551
+
2552
+ # Updates a fleet namespace.
2553
+ # @param [String] name
2554
+ # The resource name for the namespace `projects/`project`/locations/`location`/
2555
+ # namespaces/`namespace``
2556
+ # @param [Google::Apis::GkehubV1alpha::Namespace] namespace_object
2557
+ # @param [String] update_mask
2558
+ # Required. The fields to be updated.
2559
+ # @param [String] fields
2560
+ # Selector specifying which fields to include in a partial response.
2561
+ # @param [String] quota_user
2562
+ # Available to use for quota purposes for server-side applications. Can be any
2563
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2564
+ # @param [Google::Apis::RequestOptions] options
2565
+ # Request-specific options
2566
+ #
2567
+ # @yield [result, err] Result & error if block supplied
2568
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2569
+ # @yieldparam err [StandardError] error object if request failed
2570
+ #
2571
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2572
+ #
2573
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2574
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2575
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2576
+ def patch_project_location_scope_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2577
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2578
+ command.request_representation = Google::Apis::GkehubV1alpha::Namespace::Representation
2579
+ command.request_object = namespace_object
2580
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2581
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2582
+ command.params['name'] = name unless name.nil?
2583
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2584
+ command.query['fields'] = fields unless fields.nil?
2585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2586
+ execute_or_queue_command(command, &block)
2587
+ end
2588
+
2589
+ # Creates a Scope RBACRoleBinding.
2590
+ # @param [String] parent
2591
+ # Required. The parent (project and location) where the RBACRoleBinding will be
2592
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2593
+ # @param [Google::Apis::GkehubV1alpha::RbacRoleBinding] rbac_role_binding_object
2594
+ # @param [String] rbacrolebinding_id
2595
+ # Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
2596
+ # be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
2597
+ # It must consist of lower case alphanumeric characters or `-` 3. It must start
2598
+ # and end with an alphanumeric character Which can be expressed as the regex: `[
2599
+ # a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2600
+ # @param [String] fields
2601
+ # Selector specifying which fields to include in a partial response.
2602
+ # @param [String] quota_user
2603
+ # Available to use for quota purposes for server-side applications. Can be any
2604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2605
+ # @param [Google::Apis::RequestOptions] options
2606
+ # Request-specific options
2607
+ #
2608
+ # @yield [result, err] Result & error if block supplied
2609
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2610
+ # @yieldparam err [StandardError] error object if request failed
2611
+ #
2612
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2613
+ #
2614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2617
+ def create_project_location_scope_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2618
+ command = make_simple_command(:post, 'v1alpha/{+parent}/rbacrolebindings', options)
2619
+ command.request_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
2620
+ command.request_object = rbac_role_binding_object
2621
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2622
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2623
+ command.params['parent'] = parent unless parent.nil?
2624
+ command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
2625
+ command.query['fields'] = fields unless fields.nil?
2626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2627
+ execute_or_queue_command(command, &block)
2628
+ end
2629
+
2630
+ # Deletes a Scope RBACRoleBinding.
2631
+ # @param [String] name
2632
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2633
+ # locations/*/scopes/*/rbacrolebindings/*`.
2634
+ # @param [String] fields
2635
+ # Selector specifying which fields to include in a partial response.
2636
+ # @param [String] quota_user
2637
+ # Available to use for quota purposes for server-side applications. Can be any
2638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2639
+ # @param [Google::Apis::RequestOptions] options
2640
+ # Request-specific options
2641
+ #
2642
+ # @yield [result, err] Result & error if block supplied
2643
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2644
+ # @yieldparam err [StandardError] error object if request failed
2645
+ #
2646
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2647
+ #
2648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2651
+ def delete_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2652
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
2653
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2654
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2655
+ command.params['name'] = name unless name.nil?
2656
+ command.query['fields'] = fields unless fields.nil?
2657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2658
+ execute_or_queue_command(command, &block)
2659
+ end
2660
+
2661
+ # Returns the details of a Scope RBACRoleBinding.
2662
+ # @param [String] name
2663
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2664
+ # locations/*/scopes/*/rbacrolebindings/*`.
2665
+ # @param [String] fields
2666
+ # Selector specifying which fields to include in a partial response.
2667
+ # @param [String] quota_user
2668
+ # Available to use for quota purposes for server-side applications. Can be any
2669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2670
+ # @param [Google::Apis::RequestOptions] options
2671
+ # Request-specific options
2672
+ #
2673
+ # @yield [result, err] Result & error if block supplied
2674
+ # @yieldparam result [Google::Apis::GkehubV1alpha::RbacRoleBinding] parsed result object
2675
+ # @yieldparam err [StandardError] error object if request failed
2676
+ #
2677
+ # @return [Google::Apis::GkehubV1alpha::RbacRoleBinding]
2678
+ #
2679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2682
+ def get_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2683
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2684
+ command.response_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
2685
+ command.response_class = Google::Apis::GkehubV1alpha::RbacRoleBinding
2686
+ command.params['name'] = name unless name.nil?
2687
+ command.query['fields'] = fields unless fields.nil?
2688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2689
+ execute_or_queue_command(command, &block)
2690
+ end
2691
+
2692
+ # Lists all Scope RBACRoleBindings.
2693
+ # @param [String] parent
2694
+ # Required. The parent (project and location) where the Features will be listed.
2695
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2696
+ # @param [Fixnum] page_size
2697
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2698
+ # of resources to return. If unspecified or set to 0, all resources will be
2699
+ # returned.
2700
+ # @param [String] page_token
2701
+ # Optional. Token returned by previous call to `ListScopeRBACRoleBindings` which
2702
+ # specifies the position in the list from where to continue listing the
2703
+ # resources.
2704
+ # @param [String] fields
2705
+ # Selector specifying which fields to include in a partial response.
2706
+ # @param [String] quota_user
2707
+ # Available to use for quota purposes for server-side applications. Can be any
2708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2709
+ # @param [Google::Apis::RequestOptions] options
2710
+ # Request-specific options
2711
+ #
2712
+ # @yield [result, err] Result & error if block supplied
2713
+ # @yieldparam result [Google::Apis::GkehubV1alpha::ListScopeRbacRoleBindingsResponse] parsed result object
2714
+ # @yieldparam err [StandardError] error object if request failed
2715
+ #
2716
+ # @return [Google::Apis::GkehubV1alpha::ListScopeRbacRoleBindingsResponse]
2717
+ #
2718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2721
+ def list_project_location_scope_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2722
+ command = make_simple_command(:get, 'v1alpha/{+parent}/rbacrolebindings', options)
2723
+ command.response_representation = Google::Apis::GkehubV1alpha::ListScopeRbacRoleBindingsResponse::Representation
2724
+ command.response_class = Google::Apis::GkehubV1alpha::ListScopeRbacRoleBindingsResponse
2725
+ command.params['parent'] = parent unless parent.nil?
2726
+ command.query['pageSize'] = page_size unless page_size.nil?
2727
+ command.query['pageToken'] = page_token unless page_token.nil?
2728
+ command.query['fields'] = fields unless fields.nil?
2729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2730
+ execute_or_queue_command(command, &block)
2731
+ end
2732
+
2733
+ # Updates a Scope RBACRoleBinding.
2734
+ # @param [String] name
2735
+ # The resource name for the rbacrolebinding `projects/`project`/locations/`
2736
+ # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
2737
+ # projects/`project`/locations/`location`/memberships/`membership`/
2738
+ # rbacrolebindings/`rbacrolebinding``
2739
+ # @param [Google::Apis::GkehubV1alpha::RbacRoleBinding] rbac_role_binding_object
2740
+ # @param [String] update_mask
2741
+ # Required. The fields to be updated.
2742
+ # @param [String] fields
2743
+ # Selector specifying which fields to include in a partial response.
2744
+ # @param [String] quota_user
2745
+ # Available to use for quota purposes for server-side applications. Can be any
2746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2747
+ # @param [Google::Apis::RequestOptions] options
2748
+ # Request-specific options
2749
+ #
2750
+ # @yield [result, err] Result & error if block supplied
2751
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Operation] parsed result object
2752
+ # @yieldparam err [StandardError] error object if request failed
2753
+ #
2754
+ # @return [Google::Apis::GkehubV1alpha::Operation]
2755
+ #
2756
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2757
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2758
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2759
+ def patch_project_location_scope_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2760
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2761
+ command.request_representation = Google::Apis::GkehubV1alpha::RbacRoleBinding::Representation
2762
+ command.request_object = rbac_role_binding_object
2763
+ command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
2764
+ command.response_class = Google::Apis::GkehubV1alpha::Operation
2765
+ command.params['name'] = name unless name.nil?
2766
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2767
+ command.query['fields'] = fields unless fields.nil?
2768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2769
+ execute_or_queue_command(command, &block)
2770
+ end
2408
2771
 
2409
2772
  protected
2410
2773
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.60.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-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.59.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.60.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []