google-apis-gkehub_v1beta 0.52.0 → 0.54.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: cc209156ad2c0b1c3118b3fed901f6481a411691634a0b27a034d0c1d7ce74c6
4
- data.tar.gz: 434bd8e0e6748092cf1f3c1d6aa0577715f3dff0138746b3991b22f01abf122f
3
+ metadata.gz: 4a7b518666904c0e9b15a0c92a69bba855abc9377a844b863cb5b49b69113f9a
4
+ data.tar.gz: 75657a2014ba0ca8d0ef725cbc87567bc3fd968af0a55c29d233fae4211dcacb
5
5
  SHA512:
6
- metadata.gz: 1ecd179f8fbf94634730ef0d08224b39ef4406d6f7ca9bacd96cc39dff7963413efd72a38283b43c2457fbad8b7f53dd58525bf154802b46ff6011ac193cd936
7
- data.tar.gz: '05088f395097ebd8deaa139838de7786a1e993d9d7b94da3f901eaa8c80089331d4cf6cd13a5bf6ddb1fd97d61dde8b7c4fa78e8087dc8ba61837df5525062ad'
6
+ metadata.gz: 9f52fa11efa9697f42371077674cdfaec3d1eda270e017c6639ed4f145915b8fd87fec9d7436f2f34189ff88dd2d8f26b7e7d1901d185d2e7b3809477bd20345
7
+ data.tar.gz: 73d1a5a6c2242a8074a37428e75ec4257f25157988f6d18dd126f1e9d7ac68f2b65301a0302c5843465d723aad697340162005a25c97f58b646f551bd019da7f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-gkehub_v1beta
2
2
 
3
+ ### v0.54.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230804
6
+
7
+ ### v0.53.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230728
10
+
3
11
  ### v0.52.0 (2023-07-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230707
@@ -453,7 +453,7 @@ module Google
453
453
  # Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
454
454
  # enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
455
455
  # metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
456
- # namespace `config-management-monitoring` should be binded to the GSA. This
456
+ # namespace `config-management-monitoring` should be bound to the GSA. This
457
457
  # field is required when automatic Feature management is enabled.
458
458
  # Corresponds to the JSON property `metricsGcpServiceAccountEmail`
459
459
  # @return [String]
@@ -2513,6 +2513,59 @@ module Google
2513
2513
  end
2514
2514
  end
2515
2515
 
2516
+ # List of fleet namespaces.
2517
+ class ListScopeNamespacesResponse
2518
+ include Google::Apis::Core::Hashable
2519
+
2520
+ # A token to request the next page of resources from the `ListNamespaces` method.
2521
+ # The value of an empty string means that there are no more resources to return.
2522
+ # Corresponds to the JSON property `nextPageToken`
2523
+ # @return [String]
2524
+ attr_accessor :next_page_token
2525
+
2526
+ # The list of fleet namespaces
2527
+ # Corresponds to the JSON property `scopeNamespaces`
2528
+ # @return [Array<Google::Apis::GkehubV1beta::Namespace>]
2529
+ attr_accessor :scope_namespaces
2530
+
2531
+ def initialize(**args)
2532
+ update!(**args)
2533
+ end
2534
+
2535
+ # Update properties of this object
2536
+ def update!(**args)
2537
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2538
+ @scope_namespaces = args[:scope_namespaces] if args.key?(:scope_namespaces)
2539
+ end
2540
+ end
2541
+
2542
+ # List of Scope RBACRoleBindings.
2543
+ class ListScopeRbacRoleBindingsResponse
2544
+ include Google::Apis::Core::Hashable
2545
+
2546
+ # A token to request the next page of resources from the `
2547
+ # ListScopeRBACRoleBindings` method. The value of an empty string means that
2548
+ # there are no more resources to return.
2549
+ # Corresponds to the JSON property `nextPageToken`
2550
+ # @return [String]
2551
+ attr_accessor :next_page_token
2552
+
2553
+ # The list of Scope RBACRoleBindings.
2554
+ # Corresponds to the JSON property `rbacrolebindings`
2555
+ # @return [Array<Google::Apis::GkehubV1beta::RbacRoleBinding>]
2556
+ attr_accessor :rbacrolebindings
2557
+
2558
+ def initialize(**args)
2559
+ update!(**args)
2560
+ end
2561
+
2562
+ # Update properties of this object
2563
+ def update!(**args)
2564
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2565
+ @rbacrolebindings = args[:rbacrolebindings] if args.key?(:rbacrolebindings)
2566
+ end
2567
+ end
2568
+
2516
2569
  # List of Scopes.
2517
2570
  class ListScopesResponse
2518
2571
  include Google::Apis::Core::Hashable
@@ -2914,6 +2967,15 @@ module Google
2914
2967
  # @return [String]
2915
2968
  attr_accessor :name
2916
2969
 
2970
+ # Optional. Namespace-level cluster namespace labels. These labels are applied
2971
+ # to the related namespace of the member clusters bound to the parent Scope.
2972
+ # Scope-level labels (`namespace_labels` in the Fleet Scope resource) take
2973
+ # precedence over Namespace-level labels if they share a key. Keys and values
2974
+ # must be Kubernetes-conformant.
2975
+ # Corresponds to the JSON property `namespaceLabels`
2976
+ # @return [Hash<String,String>]
2977
+ attr_accessor :namespace_labels
2978
+
2917
2979
  # Required. Scope associated with the namespace
2918
2980
  # Corresponds to the JSON property `scope`
2919
2981
  # @return [String]
@@ -2946,6 +3008,7 @@ module Google
2946
3008
  @delete_time = args[:delete_time] if args.key?(:delete_time)
2947
3009
  @labels = args[:labels] if args.key?(:labels)
2948
3010
  @name = args[:name] if args.key?(:name)
3011
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
2949
3012
  @scope = args[:scope] if args.key?(:scope)
2950
3013
  @state = args[:state] if args.key?(:state)
2951
3014
  @uid = args[:uid] if args.key?(:uid)
@@ -3009,13 +3072,13 @@ module Google
3009
3072
  # @return [String]
3010
3073
  attr_accessor :name
3011
3074
 
3012
- # The normal response of the operation in case of success. If the original
3013
- # method returns no data on success, such as `Delete`, the response is `google.
3014
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3015
- # the response should be the resource. For other methods, the response should
3016
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3017
- # example, if the original method name is `TakeSnapshot()`, the inferred
3018
- # response type is `TakeSnapshotResponse`.
3075
+ # The normal, successful response of the operation. If the original method
3076
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
3077
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
3078
+ # response should be the resource. For other methods, the response should have
3079
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
3080
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
3081
+ # `TakeSnapshotResponse`.
3019
3082
  # Corresponds to the JSON property `response`
3020
3083
  # @return [Hash<String,Object>]
3021
3084
  attr_accessor :response
@@ -3123,22 +3186,22 @@ module Google
3123
3186
  # evaluates to `true`. A condition can add constraints based on attributes of
3124
3187
  # the request, the resource, or both. To learn which resources support
3125
3188
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3126
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3189
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
3127
3190
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3128
3191
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3129
3192
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3130
3193
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3131
3194
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
3132
3195
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3133
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3134
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
3135
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3136
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3137
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3138
- # access description: Does not grant access after Sep 2020 expression: request.
3139
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3140
- # a description of IAM and its features, see the [IAM documentation](https://
3141
- # cloud.google.com/iam/docs/).
3196
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
3197
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
3198
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
3199
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
3200
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
3201
+ # title: expirable access description: Does not grant access after Sep 2020
3202
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
3203
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
3204
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
3142
3205
  class Policy
3143
3206
  include Google::Apis::Core::Hashable
3144
3207
 
@@ -3779,6 +3842,15 @@ module Google
3779
3842
  # @return [String]
3780
3843
  attr_accessor :name
3781
3844
 
3845
+ # Optional. Scope-level cluster namespace labels. For the member clusters bound
3846
+ # to the Scope, these labels are applied to each namespace under the Scope.
3847
+ # Scope-level labels take precedence over Namespace-level labels (`
3848
+ # namespace_labels` in the Fleet Namespace resource) if they share a key. Keys
3849
+ # and values must be Kubernetes-conformant.
3850
+ # Corresponds to the JSON property `namespaceLabels`
3851
+ # @return [Hash<String,String>]
3852
+ attr_accessor :namespace_labels
3853
+
3782
3854
  # ScopeLifecycleState describes the state of a Scope resource.
3783
3855
  # Corresponds to the JSON property `state`
3784
3856
  # @return [Google::Apis::GkehubV1beta::ScopeLifecycleState]
@@ -3807,6 +3879,7 @@ module Google
3807
3879
  @delete_time = args[:delete_time] if args.key?(:delete_time)
3808
3880
  @labels = args[:labels] if args.key?(:labels)
3809
3881
  @name = args[:name] if args.key?(:name)
3882
+ @namespace_labels = args[:namespace_labels] if args.key?(:namespace_labels)
3810
3883
  @state = args[:state] if args.key?(:state)
3811
3884
  @uid = args[:uid] if args.key?(:uid)
3812
3885
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -4008,22 +4081,22 @@ module Google
4008
4081
  # evaluates to `true`. A condition can add constraints based on attributes of
4009
4082
  # the request, the resource, or both. To learn which resources support
4010
4083
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4011
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
4084
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
4012
4085
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
4013
4086
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
4014
4087
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
4015
4088
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
4016
4089
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
4017
4090
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
4018
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
4019
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
4020
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
4021
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
4022
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
4023
- # access description: Does not grant access after Sep 2020 expression: request.
4024
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
4025
- # a description of IAM and its features, see the [IAM documentation](https://
4026
- # cloud.google.com/iam/docs/).
4091
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
4092
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
4093
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
4094
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
4095
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
4096
+ # title: expirable access description: Does not grant access after Sep 2020
4097
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
4098
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
4099
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
4027
4100
  # Corresponds to the JSON property `policy`
4028
4101
  # @return [Google::Apis::GkehubV1beta::Policy]
4029
4102
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkehubV1beta
18
18
  # Version of the google-apis-gkehub_v1beta gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.54.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 = "20230707"
25
+ REVISION = "20230804"
26
26
  end
27
27
  end
28
28
  end
@@ -454,6 +454,18 @@ module Google
454
454
  include Google::Apis::Core::JsonObjectSupport
455
455
  end
456
456
 
457
+ class ListScopeNamespacesResponse
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
463
+ class ListScopeRbacRoleBindingsResponse
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
457
469
  class ListScopesResponse
458
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
471
 
@@ -1441,6 +1453,24 @@ module Google
1441
1453
  end
1442
1454
  end
1443
1455
 
1456
+ class ListScopeNamespacesResponse
1457
+ # @private
1458
+ class Representation < Google::Apis::Core::JsonRepresentation
1459
+ property :next_page_token, as: 'nextPageToken'
1460
+ collection :scope_namespaces, as: 'scopeNamespaces', class: Google::Apis::GkehubV1beta::Namespace, decorator: Google::Apis::GkehubV1beta::Namespace::Representation
1461
+
1462
+ end
1463
+ end
1464
+
1465
+ class ListScopeRbacRoleBindingsResponse
1466
+ # @private
1467
+ class Representation < Google::Apis::Core::JsonRepresentation
1468
+ property :next_page_token, as: 'nextPageToken'
1469
+ collection :rbacrolebindings, as: 'rbacrolebindings', class: Google::Apis::GkehubV1beta::RbacRoleBinding, decorator: Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
1470
+
1471
+ end
1472
+ end
1473
+
1444
1474
  class ListScopesResponse
1445
1475
  # @private
1446
1476
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1559,6 +1589,7 @@ module Google
1559
1589
  property :delete_time, as: 'deleteTime'
1560
1590
  hash :labels, as: 'labels'
1561
1591
  property :name, as: 'name'
1592
+ hash :namespace_labels, as: 'namespaceLabels'
1562
1593
  property :scope, as: 'scope'
1563
1594
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::NamespaceLifecycleState, decorator: Google::Apis::GkehubV1beta::NamespaceLifecycleState::Representation
1564
1595
 
@@ -1789,6 +1820,7 @@ module Google
1789
1820
  property :delete_time, as: 'deleteTime'
1790
1821
  hash :labels, as: 'labels'
1791
1822
  property :name, as: 'name'
1823
+ hash :namespace_labels, as: 'namespaceLabels'
1792
1824
  property :state, as: 'state', class: Google::Apis::GkehubV1beta::ScopeLifecycleState, decorator: Google::Apis::GkehubV1beta::ScopeLifecycleState::Representation
1793
1825
 
1794
1826
  property :uid, as: 'uid'
@@ -2019,6 +2019,369 @@ module Google
2019
2019
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2020
2020
  execute_or_queue_command(command, &block)
2021
2021
  end
2022
+
2023
+ # Creates a fleet namespace.
2024
+ # @param [String] parent
2025
+ # Required. The parent (project and location) where the Namespace will be
2026
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2027
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
2028
+ # @param [String] scope_namespace_id
2029
+ # Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
2030
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
2031
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
2032
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
2033
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2034
+ # @param [String] fields
2035
+ # Selector specifying which fields to include in a partial response.
2036
+ # @param [String] quota_user
2037
+ # Available to use for quota purposes for server-side applications. Can be any
2038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2039
+ # @param [Google::Apis::RequestOptions] options
2040
+ # Request-specific options
2041
+ #
2042
+ # @yield [result, err] Result & error if block supplied
2043
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2044
+ # @yieldparam err [StandardError] error object if request failed
2045
+ #
2046
+ # @return [Google::Apis::GkehubV1beta::Operation]
2047
+ #
2048
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2049
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2050
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2051
+ def create_project_location_scope_namespace(parent, namespace_object = nil, scope_namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2052
+ command = make_simple_command(:post, 'v1beta/{+parent}/namespaces', options)
2053
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2054
+ command.request_object = namespace_object
2055
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2056
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2057
+ command.params['parent'] = parent unless parent.nil?
2058
+ command.query['scopeNamespaceId'] = scope_namespace_id unless scope_namespace_id.nil?
2059
+ command.query['fields'] = fields unless fields.nil?
2060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2061
+ execute_or_queue_command(command, &block)
2062
+ end
2063
+
2064
+ # Deletes a fleet namespace.
2065
+ # @param [String] name
2066
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2067
+ # scopes/*/namespaces/*`.
2068
+ # @param [String] fields
2069
+ # Selector specifying which fields to include in a partial response.
2070
+ # @param [String] quota_user
2071
+ # Available to use for quota purposes for server-side applications. Can be any
2072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2073
+ # @param [Google::Apis::RequestOptions] options
2074
+ # Request-specific options
2075
+ #
2076
+ # @yield [result, err] Result & error if block supplied
2077
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2078
+ # @yieldparam err [StandardError] error object if request failed
2079
+ #
2080
+ # @return [Google::Apis::GkehubV1beta::Operation]
2081
+ #
2082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2085
+ def delete_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2086
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
2087
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2088
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2089
+ command.params['name'] = name unless name.nil?
2090
+ command.query['fields'] = fields unless fields.nil?
2091
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2092
+ execute_or_queue_command(command, &block)
2093
+ end
2094
+
2095
+ # Returns the details of a fleet namespace.
2096
+ # @param [String] name
2097
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
2098
+ # scopes/*/namespaces/*`.
2099
+ # @param [String] fields
2100
+ # Selector specifying which fields to include in a partial response.
2101
+ # @param [String] quota_user
2102
+ # Available to use for quota purposes for server-side applications. Can be any
2103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2104
+ # @param [Google::Apis::RequestOptions] options
2105
+ # Request-specific options
2106
+ #
2107
+ # @yield [result, err] Result & error if block supplied
2108
+ # @yieldparam result [Google::Apis::GkehubV1beta::Namespace] parsed result object
2109
+ # @yieldparam err [StandardError] error object if request failed
2110
+ #
2111
+ # @return [Google::Apis::GkehubV1beta::Namespace]
2112
+ #
2113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2116
+ def get_project_location_scope_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
2117
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2118
+ command.response_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2119
+ command.response_class = Google::Apis::GkehubV1beta::Namespace
2120
+ command.params['name'] = name unless name.nil?
2121
+ command.query['fields'] = fields unless fields.nil?
2122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
+ execute_or_queue_command(command, &block)
2124
+ end
2125
+
2126
+ # Lists fleet namespaces.
2127
+ # @param [String] parent
2128
+ # Required. The parent (project and location) where the Features will be listed.
2129
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2130
+ # @param [Fixnum] page_size
2131
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2132
+ # of resources to return. If unspecified or set to 0, all resources will be
2133
+ # returned.
2134
+ # @param [String] page_token
2135
+ # Optional. Token returned by previous call to `ListFeatures` which specifies
2136
+ # the position in the list from where to continue listing the resources.
2137
+ # @param [String] fields
2138
+ # Selector specifying which fields to include in a partial response.
2139
+ # @param [String] quota_user
2140
+ # Available to use for quota purposes for server-side applications. Can be any
2141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2142
+ # @param [Google::Apis::RequestOptions] options
2143
+ # Request-specific options
2144
+ #
2145
+ # @yield [result, err] Result & error if block supplied
2146
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListScopeNamespacesResponse] parsed result object
2147
+ # @yieldparam err [StandardError] error object if request failed
2148
+ #
2149
+ # @return [Google::Apis::GkehubV1beta::ListScopeNamespacesResponse]
2150
+ #
2151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2154
+ def list_project_location_scope_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2155
+ command = make_simple_command(:get, 'v1beta/{+parent}/namespaces', options)
2156
+ command.response_representation = Google::Apis::GkehubV1beta::ListScopeNamespacesResponse::Representation
2157
+ command.response_class = Google::Apis::GkehubV1beta::ListScopeNamespacesResponse
2158
+ command.params['parent'] = parent unless parent.nil?
2159
+ command.query['pageSize'] = page_size unless page_size.nil?
2160
+ command.query['pageToken'] = page_token unless page_token.nil?
2161
+ command.query['fields'] = fields unless fields.nil?
2162
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2163
+ execute_or_queue_command(command, &block)
2164
+ end
2165
+
2166
+ # Updates a fleet namespace.
2167
+ # @param [String] name
2168
+ # The resource name for the namespace `projects/`project`/locations/`location`/
2169
+ # namespaces/`namespace``
2170
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
2171
+ # @param [String] update_mask
2172
+ # Required. The fields to be updated.
2173
+ # @param [String] fields
2174
+ # Selector specifying which fields to include in a partial response.
2175
+ # @param [String] quota_user
2176
+ # Available to use for quota purposes for server-side applications. Can be any
2177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2178
+ # @param [Google::Apis::RequestOptions] options
2179
+ # Request-specific options
2180
+ #
2181
+ # @yield [result, err] Result & error if block supplied
2182
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2183
+ # @yieldparam err [StandardError] error object if request failed
2184
+ #
2185
+ # @return [Google::Apis::GkehubV1beta::Operation]
2186
+ #
2187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2190
+ def patch_project_location_scope_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2191
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
2192
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
2193
+ command.request_object = namespace_object
2194
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2195
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2196
+ command.params['name'] = name unless name.nil?
2197
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2198
+ command.query['fields'] = fields unless fields.nil?
2199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2200
+ execute_or_queue_command(command, &block)
2201
+ end
2202
+
2203
+ # Creates a Scope RBACRoleBinding.
2204
+ # @param [String] parent
2205
+ # Required. The parent (project and location) where the RBACRoleBinding will be
2206
+ # created. Specified in the format `projects/*/locations/*/scopes/*`.
2207
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
2208
+ # @param [String] rbacrolebinding_id
2209
+ # Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
2210
+ # be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
2211
+ # It must consist of lower case alphanumeric characters or `-` 3. It must start
2212
+ # and end with an alphanumeric character Which can be expressed as the regex: `[
2213
+ # a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
2214
+ # @param [String] fields
2215
+ # Selector specifying which fields to include in a partial response.
2216
+ # @param [String] quota_user
2217
+ # Available to use for quota purposes for server-side applications. Can be any
2218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2219
+ # @param [Google::Apis::RequestOptions] options
2220
+ # Request-specific options
2221
+ #
2222
+ # @yield [result, err] Result & error if block supplied
2223
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2224
+ # @yieldparam err [StandardError] error object if request failed
2225
+ #
2226
+ # @return [Google::Apis::GkehubV1beta::Operation]
2227
+ #
2228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2231
+ def create_project_location_scope_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2232
+ command = make_simple_command(:post, 'v1beta/{+parent}/rbacrolebindings', options)
2233
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2234
+ command.request_object = rbac_role_binding_object
2235
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2236
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2237
+ command.params['parent'] = parent unless parent.nil?
2238
+ command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
2239
+ command.query['fields'] = fields unless fields.nil?
2240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2241
+ execute_or_queue_command(command, &block)
2242
+ end
2243
+
2244
+ # Deletes a Scope RBACRoleBinding.
2245
+ # @param [String] name
2246
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2247
+ # locations/*/scopes/*/rbacrolebindings/*`.
2248
+ # @param [String] fields
2249
+ # Selector specifying which fields to include in a partial response.
2250
+ # @param [String] quota_user
2251
+ # Available to use for quota purposes for server-side applications. Can be any
2252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
+ # @param [Google::Apis::RequestOptions] options
2254
+ # Request-specific options
2255
+ #
2256
+ # @yield [result, err] Result & error if block supplied
2257
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2258
+ # @yieldparam err [StandardError] error object if request failed
2259
+ #
2260
+ # @return [Google::Apis::GkehubV1beta::Operation]
2261
+ #
2262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
+ def delete_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2266
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
2267
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2268
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2269
+ command.params['name'] = name unless name.nil?
2270
+ command.query['fields'] = fields unless fields.nil?
2271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2272
+ execute_or_queue_command(command, &block)
2273
+ end
2274
+
2275
+ # Returns the details of a Scope RBACRoleBinding.
2276
+ # @param [String] name
2277
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
2278
+ # locations/*/scopes/*/rbacrolebindings/*`.
2279
+ # @param [String] fields
2280
+ # Selector specifying which fields to include in a partial response.
2281
+ # @param [String] quota_user
2282
+ # Available to use for quota purposes for server-side applications. Can be any
2283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2284
+ # @param [Google::Apis::RequestOptions] options
2285
+ # Request-specific options
2286
+ #
2287
+ # @yield [result, err] Result & error if block supplied
2288
+ # @yieldparam result [Google::Apis::GkehubV1beta::RbacRoleBinding] parsed result object
2289
+ # @yieldparam err [StandardError] error object if request failed
2290
+ #
2291
+ # @return [Google::Apis::GkehubV1beta::RbacRoleBinding]
2292
+ #
2293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2296
+ def get_project_location_scope_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
2297
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
2298
+ command.response_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2299
+ command.response_class = Google::Apis::GkehubV1beta::RbacRoleBinding
2300
+ command.params['name'] = name unless name.nil?
2301
+ command.query['fields'] = fields unless fields.nil?
2302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2303
+ execute_or_queue_command(command, &block)
2304
+ end
2305
+
2306
+ # Lists all Scope RBACRoleBindings.
2307
+ # @param [String] parent
2308
+ # Required. The parent (project and location) where the Features will be listed.
2309
+ # Specified in the format `projects/*/locations/*/scopes/*`.
2310
+ # @param [Fixnum] page_size
2311
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
2312
+ # of resources to return. If unspecified or set to 0, all resources will be
2313
+ # returned.
2314
+ # @param [String] page_token
2315
+ # Optional. Token returned by previous call to `ListScopeRBACRoleBindings` which
2316
+ # specifies the position in the list from where to continue listing the
2317
+ # resources.
2318
+ # @param [String] fields
2319
+ # Selector specifying which fields to include in a partial response.
2320
+ # @param [String] quota_user
2321
+ # Available to use for quota purposes for server-side applications. Can be any
2322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2323
+ # @param [Google::Apis::RequestOptions] options
2324
+ # Request-specific options
2325
+ #
2326
+ # @yield [result, err] Result & error if block supplied
2327
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse] parsed result object
2328
+ # @yieldparam err [StandardError] error object if request failed
2329
+ #
2330
+ # @return [Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse]
2331
+ #
2332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2335
+ def list_project_location_scope_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2336
+ command = make_simple_command(:get, 'v1beta/{+parent}/rbacrolebindings', options)
2337
+ command.response_representation = Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse::Representation
2338
+ command.response_class = Google::Apis::GkehubV1beta::ListScopeRbacRoleBindingsResponse
2339
+ command.params['parent'] = parent unless parent.nil?
2340
+ command.query['pageSize'] = page_size unless page_size.nil?
2341
+ command.query['pageToken'] = page_token unless page_token.nil?
2342
+ command.query['fields'] = fields unless fields.nil?
2343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2344
+ execute_or_queue_command(command, &block)
2345
+ end
2346
+
2347
+ # Updates a Scope RBACRoleBinding.
2348
+ # @param [String] name
2349
+ # The resource name for the rbacrolebinding `projects/`project`/locations/`
2350
+ # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding`` or `
2351
+ # projects/`project`/locations/`location`/memberships/`membership`/
2352
+ # rbacrolebindings/`rbacrolebinding``
2353
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
2354
+ # @param [String] update_mask
2355
+ # Required. The fields to be updated.
2356
+ # @param [String] fields
2357
+ # Selector specifying which fields to include in a partial response.
2358
+ # @param [String] quota_user
2359
+ # Available to use for quota purposes for server-side applications. Can be any
2360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2361
+ # @param [Google::Apis::RequestOptions] options
2362
+ # Request-specific options
2363
+ #
2364
+ # @yield [result, err] Result & error if block supplied
2365
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
2366
+ # @yieldparam err [StandardError] error object if request failed
2367
+ #
2368
+ # @return [Google::Apis::GkehubV1beta::Operation]
2369
+ #
2370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2373
+ def patch_project_location_scope_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2374
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
2375
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
2376
+ command.request_object = rbac_role_binding_object
2377
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
2378
+ command.response_class = Google::Apis::GkehubV1beta::Operation
2379
+ command.params['name'] = name unless name.nil?
2380
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2381
+ command.query['fields'] = fields unless fields.nil?
2382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2383
+ execute_or_queue_command(command, &block)
2384
+ end
2022
2385
 
2023
2386
  protected
2024
2387
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.54.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-07-16 00:00:00.000000000 Z
11
+ date: 2023-08-20 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_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.52.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1beta/v0.54.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []