google-apis-gkehub_v1alpha 0.2.0 → 0.3.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: 64b073981dbc8a16c45efba791ab5347488bf25b14856382dd956e15843272bb
4
- data.tar.gz: 2770a37900c0e6a229c577f07af98c5ae7dc521b45873d8297c9d4951cf05816
3
+ metadata.gz: 2cbf89993972508aa4b85fa00817849c0c9fee834c5da63ad5626400853477d9
4
+ data.tar.gz: 90555c65d099f1a606952390d87598d2eeae37765c26e119d6b007e8e3099e71
5
5
  SHA512:
6
- metadata.gz: ad9a4ac1267728177ec268b1786523b18fbd2880367f38b4c29c15da8b211044b6ae3453f1d1e1e514e55faa79df0b27e38f048a0ca1c70856e7f88fbb0723ca
7
- data.tar.gz: 180631fc2c82aef7be8db37b4a47439238e441b0dc24245f847a3fadaea1dd5aa734827697464b9a8e5630c24d9f4619b1add16664e42af9698a78b2daf28880
6
+ metadata.gz: a162ca503c8237bd08901461b94e2372cd5bf43922515e73886708c5be4da8244dadd849bdfe066a0be15c28e97cc16107be8ddde350e079f11ecb6550f5cfcf
7
+ data.tar.gz: 3134d79d6cc00b42055c0f65ad92b870a6248d73c0338930e5fd26c46f2771f2d934e47d2d574143e8eec6d37221f81072a086160b5073cb9fbb58c5812ce7ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkehub_v1alpha
2
2
 
3
+ ### v0.3.0 (2021-05-13)
4
+
5
+ * Regenerated from discovery document revision 20210507
6
+
3
7
  ### v0.2.0 (2021-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20210322
@@ -177,7 +177,7 @@ module Google
177
177
  end
178
178
  end
179
179
 
180
- # Spec for Audit Logging Allowlisting.
180
+ # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
181
181
  class CloudAuditLoggingFeatureSpec
182
182
  include Google::Apis::Core::Hashable
183
183
 
@@ -204,12 +204,13 @@ module Google
204
204
  class CommonFeatureSpec
205
205
  include Google::Apis::Core::Hashable
206
206
 
207
- # Spec for Audit Logging Allowlisting.
207
+ # **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
208
208
  # Corresponds to the JSON property `cloudauditlogging`
209
209
  # @return [Google::Apis::GkehubV1alpha::CloudAuditLoggingFeatureSpec]
210
210
  attr_accessor :cloudauditlogging
211
211
 
212
- # FeatureSpec contains the input for the MultiClusterIngress feature.
212
+ # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
213
+ # feature.
213
214
  # Corresponds to the JSON property `multiclusteringress`
214
215
  # @return [Google::Apis::GkehubV1alpha::MultiClusterIngressFeatureSpec]
215
216
  attr_accessor :multiclusteringress
@@ -229,8 +230,8 @@ module Google
229
230
  class CommonFeatureState
230
231
  include Google::Apis::Core::Hashable
231
232
 
232
- # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
233
- # by the Service Mesh Hub Controller, for the whole Hub.
233
+ # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub
234
+ # Controller.
234
235
  # Corresponds to the JSON property `servicemesh`
235
236
  # @return [Google::Apis::GkehubV1alpha::ServiceMeshFeatureState]
236
237
  attr_accessor :servicemesh
@@ -756,8 +757,8 @@ module Google
756
757
  end
757
758
  end
758
759
 
759
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
760
- # CR.
760
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
761
+ # parallel the ConfigManagement CR.
761
762
  class ConfigManagementMembershipSpec
762
763
  include Google::Apis::Core::Hashable
763
764
 
@@ -800,7 +801,7 @@ module Google
800
801
  end
801
802
  end
802
803
 
803
- # State for Anthos Config Management
804
+ # **Anthos Config Management**: State for a single cluster.
804
805
  class ConfigManagementMembershipState
805
806
  include Google::Apis::Core::Hashable
806
807
 
@@ -827,8 +828,8 @@ module Google
827
828
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerState]
828
829
  attr_accessor :hierarchy_controller_state
829
830
 
830
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
831
- # CR.
831
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
832
+ # parallel the ConfigManagement CR.
832
833
  # Corresponds to the JSON property `membershipSpec`
833
834
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
834
835
  attr_accessor :membership_spec
@@ -1175,9 +1176,14 @@ module Google
1175
1176
  # Optional. Membership-specific configuration for this Feature. If this Feature
1176
1177
  # does not support any per-Membership configuration, this field may be unused.
1177
1178
  # The keys indicate which Membership the configuration is for, in the form:
1178
- # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project number, `l`
1179
- # is a valid location and `m` is a valid Membership in this project at that
1180
- # location. `p` MUST match the Feature's project number.
1179
+ # projects/`p`/locations/`l`/memberships/`m` Where `p` is the project, `l` is a
1180
+ # valid location and `m` is a valid Membership in this project at that location.
1181
+ # `p` WILL match the Feature's project. `p` will always be returned as the
1182
+ # project number, but the project ID is also accepted during input. If the same
1183
+ # Membership is specified in the map twice (using the project ID form, and the
1184
+ # project number form), exactly ONE of the entries will be saved, with no
1185
+ # guarantees as to which. For this reason, it is recommended the same format be
1186
+ # used for all entries when mutating a Feature.
1181
1187
  # Corresponds to the JSON property `membershipSpecs`
1182
1188
  # @return [Hash<String,Google::Apis::GkehubV1alpha::MembershipFeatureSpec>]
1183
1189
  attr_accessor :membership_specs
@@ -1193,7 +1199,7 @@ module Google
1193
1199
  attr_accessor :membership_states
1194
1200
 
1195
1201
  # Output only. The full, unique name of this Feature resource in the format `
1196
- # projects/*/locations/global/features/*`.
1202
+ # projects/*/locations/*/features/*`.
1197
1203
  # Corresponds to the JSON property `name`
1198
1204
  # @return [String]
1199
1205
  attr_accessor :name
@@ -1460,8 +1466,8 @@ module Google
1460
1466
  class MembershipFeatureSpec
1461
1467
  include Google::Apis::Core::Hashable
1462
1468
 
1463
- # Configuration for a single cluster. Intended to parallel the ConfigManagement
1464
- # CR.
1469
+ # **Anthos Config Management**: Configuration for a single cluster. Intended to
1470
+ # parallel the ConfigManagement CR.
1465
1471
  # Corresponds to the JSON property `configmanagement`
1466
1472
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipSpec]
1467
1473
  attr_accessor :configmanagement
@@ -1481,18 +1487,18 @@ module Google
1481
1487
  class MembershipFeatureState
1482
1488
  include Google::Apis::Core::Hashable
1483
1489
 
1484
- # State for Anthos Config Management
1490
+ # **Anthos Config Management**: State for a single cluster.
1485
1491
  # Corresponds to the JSON property `configmanagement`
1486
1492
  # @return [Google::Apis::GkehubV1alpha::ConfigManagementMembershipState]
1487
1493
  attr_accessor :configmanagement
1488
1494
 
1489
- # Metering per-Membership Feature State.
1495
+ # **Metering**: Per-Membership Feature State.
1490
1496
  # Corresponds to the JSON property `metering`
1491
1497
  # @return [Google::Apis::GkehubV1alpha::MeteringMembershipState]
1492
1498
  attr_accessor :metering
1493
1499
 
1494
- # MembershipState describes the state of the Service Mesh Hub Feature as
1495
- # analyzed by the Service Mesh Hub Controller, for single Membership.
1500
+ # **Service Mesh**: State for a single Membership, as analyzed by the Service
1501
+ # Mesh Hub Controller.
1496
1502
  # Corresponds to the JSON property `servicemesh`
1497
1503
  # @return [Google::Apis::GkehubV1alpha::ServiceMeshMembershipState]
1498
1504
  attr_accessor :servicemesh
@@ -1517,7 +1523,7 @@ module Google
1517
1523
  end
1518
1524
  end
1519
1525
 
1520
- # Metering per-Membership Feature State.
1526
+ # **Metering**: Per-Membership Feature State.
1521
1527
  class MeteringMembershipState
1522
1528
  include Google::Apis::Core::Hashable
1523
1529
 
@@ -1544,10 +1550,16 @@ module Google
1544
1550
  end
1545
1551
  end
1546
1552
 
1547
- # FeatureSpec contains the input for the MultiClusterIngress feature.
1553
+ # **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
1554
+ # feature.
1548
1555
  class MultiClusterIngressFeatureSpec
1549
1556
  include Google::Apis::Core::Hashable
1550
1557
 
1558
+ # Customer's billing structure
1559
+ # Corresponds to the JSON property `billing`
1560
+ # @return [String]
1561
+ attr_accessor :billing
1562
+
1551
1563
  # Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
1552
1564
  # Example: `projects/foo-proj/locations/global/memberships/bar`
1553
1565
  # Corresponds to the JSON property `configMembership`
@@ -1560,6 +1572,7 @@ module Google
1560
1572
 
1561
1573
  # Update properties of this object
1562
1574
  def update!(**args)
1575
+ @billing = args[:billing] if args.key?(:billing)
1563
1576
  @config_membership = args[:config_membership] if args.key?(:config_membership)
1564
1577
  end
1565
1578
  end
@@ -1857,8 +1870,8 @@ module Google
1857
1870
  end
1858
1871
  end
1859
1872
 
1860
- # FeatureState describes the state of the Service Mesh Hub Feature as analyzed
1861
- # by the Service Mesh Hub Controller, for the whole Hub.
1873
+ # **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub
1874
+ # Controller.
1862
1875
  class ServiceMeshFeatureState
1863
1876
  include Google::Apis::Core::Hashable
1864
1877
 
@@ -1877,8 +1890,8 @@ module Google
1877
1890
  end
1878
1891
  end
1879
1892
 
1880
- # MembershipState describes the state of the Service Mesh Hub Feature as
1881
- # analyzed by the Service Mesh Hub Controller, for single Membership.
1893
+ # **Service Mesh**: State for a single Membership, as analyzed by the Service
1894
+ # Mesh Hub Controller.
1882
1895
  class ServiceMeshMembershipState
1883
1896
  include Google::Apis::Core::Hashable
1884
1897
 
@@ -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.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210322"
25
+ REVISION = "20210507"
26
26
  end
27
27
  end
28
28
  end
@@ -800,6 +800,7 @@ module Google
800
800
  class MultiClusterIngressFeatureSpec
801
801
  # @private
802
802
  class Representation < Google::Apis::Core::JsonRepresentation
803
+ property :billing, as: 'billing'
803
804
  property :config_membership, as: 'configMembership'
804
805
  end
805
806
  end
@@ -87,7 +87,7 @@ module Google
87
87
  # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
88
  # AIP-160](https://google.aip.dev/160).
89
89
  # @param [Fixnum] page_size
90
- # The maximum number of results to return. If not set, the service will select a
90
+ # The maximum number of results to return. If not set, the service selects a
91
91
  # default.
92
92
  # @param [String] page_token
93
93
  # A page token received from the `next_page_token` field in the response. Send
@@ -122,125 +122,10 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
- # Gets the access control policy for a resource. Returns an empty policy if the
126
- # resource exists and does not have a policy set.
127
- # @param [String] resource
128
- # REQUIRED: The resource for which the policy is being requested. See the
129
- # operation documentation for the appropriate value for this field.
130
- # @param [Fixnum] options_requested_policy_version
131
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
132
- # 3. Requests specifying an invalid value will be rejected. Requests for
133
- # policies with any conditional bindings must specify version 3. Policies
134
- # without any conditional bindings may specify any valid value or leave the
135
- # field unset. To learn which resources support conditions in their IAM policies,
136
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
137
- # resource-policies).
138
- # @param [String] fields
139
- # Selector specifying which fields to include in a partial response.
140
- # @param [String] quota_user
141
- # Available to use for quota purposes for server-side applications. Can be any
142
- # arbitrary string assigned to a user, but should not exceed 40 characters.
143
- # @param [Google::Apis::RequestOptions] options
144
- # Request-specific options
145
- #
146
- # @yield [result, err] Result & error if block supplied
147
- # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
148
- # @yieldparam err [StandardError] error object if request failed
149
- #
150
- # @return [Google::Apis::GkehubV1alpha::Policy]
151
- #
152
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
- # @raise [Google::Apis::AuthorizationError] Authorization is required
155
- def get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
156
- command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
157
- command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
158
- command.response_class = Google::Apis::GkehubV1alpha::Policy
159
- command.params['resource'] = resource unless resource.nil?
160
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
161
- command.query['fields'] = fields unless fields.nil?
162
- command.query['quotaUser'] = quota_user unless quota_user.nil?
163
- execute_or_queue_command(command, &block)
164
- end
165
-
166
- # Sets the access control policy on the specified resource. Replaces any
167
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
168
- # PERMISSION_DENIED` errors.
169
- # @param [String] resource
170
- # REQUIRED: The resource for which the policy is being specified. See the
171
- # operation documentation for the appropriate value for this field.
172
- # @param [Google::Apis::GkehubV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
173
- # @param [String] fields
174
- # Selector specifying which fields to include in a partial response.
175
- # @param [String] quota_user
176
- # Available to use for quota purposes for server-side applications. Can be any
177
- # arbitrary string assigned to a user, but should not exceed 40 characters.
178
- # @param [Google::Apis::RequestOptions] options
179
- # Request-specific options
180
- #
181
- # @yield [result, err] Result & error if block supplied
182
- # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
183
- # @yieldparam err [StandardError] error object if request failed
184
- #
185
- # @return [Google::Apis::GkehubV1alpha::Policy]
186
- #
187
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
- # @raise [Google::Apis::AuthorizationError] Authorization is required
190
- def set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
191
- command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
192
- command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation
193
- command.request_object = set_iam_policy_request_object
194
- command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
195
- command.response_class = Google::Apis::GkehubV1alpha::Policy
196
- command.params['resource'] = resource unless resource.nil?
197
- command.query['fields'] = fields unless fields.nil?
198
- command.query['quotaUser'] = quota_user unless quota_user.nil?
199
- execute_or_queue_command(command, &block)
200
- end
201
-
202
- # Returns permissions that a caller has on the specified resource. If the
203
- # resource does not exist, this will return an empty set of permissions, not a `
204
- # NOT_FOUND` error. Note: This operation is designed to be used for building
205
- # permission-aware UIs and command-line tools, not for authorization checking.
206
- # This operation may "fail open" without warning.
207
- # @param [String] resource
208
- # REQUIRED: The resource for which the policy detail is being requested. See the
209
- # operation documentation for the appropriate value for this field.
210
- # @param [Google::Apis::GkehubV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
211
- # @param [String] fields
212
- # Selector specifying which fields to include in a partial response.
213
- # @param [String] quota_user
214
- # Available to use for quota purposes for server-side applications. Can be any
215
- # arbitrary string assigned to a user, but should not exceed 40 characters.
216
- # @param [Google::Apis::RequestOptions] options
217
- # Request-specific options
218
- #
219
- # @yield [result, err] Result & error if block supplied
220
- # @yieldparam result [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse] parsed result object
221
- # @yieldparam err [StandardError] error object if request failed
222
- #
223
- # @return [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse]
224
- #
225
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
- # @raise [Google::Apis::AuthorizationError] Authorization is required
228
- def test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
229
- command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
230
- command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation
231
- command.request_object = test_iam_permissions_request_object
232
- command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation
233
- command.response_class = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
234
- command.params['resource'] = resource unless resource.nil?
235
- command.query['fields'] = fields unless fields.nil?
236
- command.query['quotaUser'] = quota_user unless quota_user.nil?
237
- execute_or_queue_command(command, &block)
238
- end
239
-
240
125
  # Adds a new Feature.
241
126
  # @param [String] parent
242
127
  # The parent (project and location) where the Feature will be created. Specified
243
- # in the format `projects/*/locations/global`.
128
+ # in the format `projects/*/locations/*`.
244
129
  # @param [Google::Apis::GkehubV1alpha::Feature] feature_object
245
130
  # @param [String] feature_id
246
131
  # The ID of the feature to create.
@@ -272,7 +157,7 @@ module Google
272
157
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
158
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
159
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def create_project_location_global_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ def create_project_location_feature(parent, feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
276
161
  command = make_simple_command(:post, 'v1alpha/{+parent}/features', options)
277
162
  command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation
278
163
  command.request_object = feature_object
@@ -288,8 +173,7 @@ module Google
288
173
 
289
174
  # Removes a Feature.
290
175
  # @param [String] name
291
- # The Feature resource name in the format `projects/*/locations/global/features/*
292
- # `.
176
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
293
177
  # @param [Boolean] force
294
178
  # If set to true, the delete will ignore any outstanding resources for this
295
179
  # Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -322,7 +206,7 @@ module Google
322
206
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def delete_project_location_global_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
209
+ def delete_project_location_feature(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
326
210
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
327
211
  command.response_representation = Google::Apis::GkehubV1alpha::Operation::Representation
328
212
  command.response_class = Google::Apis::GkehubV1alpha::Operation
@@ -336,8 +220,7 @@ module Google
336
220
 
337
221
  # Gets details of a single Feature.
338
222
  # @param [String] name
339
- # The Feature resource name in the format `projects/*/locations/global/features/*
340
- # `
223
+ # The Feature resource name in the format `projects/*/locations/*/features/*`
341
224
  # @param [String] fields
342
225
  # Selector specifying which fields to include in a partial response.
343
226
  # @param [String] quota_user
@@ -355,7 +238,7 @@ module Google
355
238
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
356
239
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
357
240
  # @raise [Google::Apis::AuthorizationError] Authorization is required
358
- def get_project_location_global_feature(name, fields: nil, quota_user: nil, options: nil, &block)
241
+ def get_project_location_feature(name, fields: nil, quota_user: nil, options: nil, &block)
359
242
  command = make_simple_command(:get, 'v1alpha/{+name}', options)
360
243
  command.response_representation = Google::Apis::GkehubV1alpha::Feature::Representation
361
244
  command.response_class = Google::Apis::GkehubV1alpha::Feature
@@ -365,10 +248,51 @@ module Google
365
248
  execute_or_queue_command(command, &block)
366
249
  end
367
250
 
251
+ # Gets the access control policy for a resource. Returns an empty policy if the
252
+ # resource exists and does not have a policy set.
253
+ # @param [String] resource
254
+ # REQUIRED: The resource for which the policy is being requested. See the
255
+ # operation documentation for the appropriate value for this field.
256
+ # @param [Fixnum] options_requested_policy_version
257
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
258
+ # 3. Requests specifying an invalid value will be rejected. Requests for
259
+ # policies with any conditional bindings must specify version 3. Policies
260
+ # without any conditional bindings may specify any valid value or leave the
261
+ # field unset. To learn which resources support conditions in their IAM policies,
262
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
263
+ # resource-policies).
264
+ # @param [String] fields
265
+ # Selector specifying which fields to include in a partial response.
266
+ # @param [String] quota_user
267
+ # Available to use for quota purposes for server-side applications. Can be any
268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
269
+ # @param [Google::Apis::RequestOptions] options
270
+ # Request-specific options
271
+ #
272
+ # @yield [result, err] Result & error if block supplied
273
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::GkehubV1alpha::Policy]
277
+ #
278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
281
+ def get_project_location_feature_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
282
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
283
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
284
+ command.response_class = Google::Apis::GkehubV1alpha::Policy
285
+ command.params['resource'] = resource unless resource.nil?
286
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
287
+ command.query['fields'] = fields unless fields.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
368
292
  # Lists Features in a given project and location.
369
293
  # @param [String] parent
370
294
  # The parent (project and location) where the Features will be listed. Specified
371
- # in the format `projects/*/locations/global`.
295
+ # in the format `projects/*/locations/*`.
372
296
  # @param [String] filter
373
297
  # Lists Features that match the filter expression, following the syntax outlined
374
298
  # in https://google.aip.dev/160. Examples: - Feature with the name "servicemesh"
@@ -402,7 +326,7 @@ module Google
402
326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
405
- def list_project_location_global_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
329
+ def list_project_location_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
406
330
  command = make_simple_command(:get, 'v1alpha/{+parent}/features', options)
407
331
  command.response_representation = Google::Apis::GkehubV1alpha::ListFeaturesResponse::Representation
408
332
  command.response_class = Google::Apis::GkehubV1alpha::ListFeaturesResponse
@@ -418,8 +342,7 @@ module Google
418
342
 
419
343
  # Updates an existing Feature.
420
344
  # @param [String] name
421
- # The Feature resource name in the format `projects/*/locations/global/features/*
422
- # `.
345
+ # The Feature resource name in the format `projects/*/locations/*/features/*`.
423
346
  # @param [Google::Apis::GkehubV1alpha::Feature] feature_object
424
347
  # @param [String] request_id
425
348
  # Optional. A request ID to identify requests. Specify a unique request ID so
@@ -451,7 +374,7 @@ module Google
451
374
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
375
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
376
  # @raise [Google::Apis::AuthorizationError] Authorization is required
454
- def patch_project_location_global_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
377
+ def patch_project_location_feature(name, feature_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
455
378
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
456
379
  command.request_representation = Google::Apis::GkehubV1alpha::Feature::Representation
457
380
  command.request_object = feature_object
@@ -465,6 +388,80 @@ module Google
465
388
  execute_or_queue_command(command, &block)
466
389
  end
467
390
 
391
+ # Sets the access control policy on the specified resource. Replaces any
392
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
393
+ # PERMISSION_DENIED` errors.
394
+ # @param [String] resource
395
+ # REQUIRED: The resource for which the policy is being specified. See the
396
+ # operation documentation for the appropriate value for this field.
397
+ # @param [Google::Apis::GkehubV1alpha::SetIamPolicyRequest] set_iam_policy_request_object
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
400
+ # @param [String] quota_user
401
+ # Available to use for quota purposes for server-side applications. Can be any
402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
403
+ # @param [Google::Apis::RequestOptions] options
404
+ # Request-specific options
405
+ #
406
+ # @yield [result, err] Result & error if block supplied
407
+ # @yieldparam result [Google::Apis::GkehubV1alpha::Policy] parsed result object
408
+ # @yieldparam err [StandardError] error object if request failed
409
+ #
410
+ # @return [Google::Apis::GkehubV1alpha::Policy]
411
+ #
412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
415
+ def set_feature_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
416
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
417
+ command.request_representation = Google::Apis::GkehubV1alpha::SetIamPolicyRequest::Representation
418
+ command.request_object = set_iam_policy_request_object
419
+ command.response_representation = Google::Apis::GkehubV1alpha::Policy::Representation
420
+ command.response_class = Google::Apis::GkehubV1alpha::Policy
421
+ command.params['resource'] = resource unless resource.nil?
422
+ command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ execute_or_queue_command(command, &block)
425
+ end
426
+
427
+ # Returns permissions that a caller has on the specified resource. If the
428
+ # resource does not exist, this will return an empty set of permissions, not a `
429
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
430
+ # permission-aware UIs and command-line tools, not for authorization checking.
431
+ # This operation may "fail open" without warning.
432
+ # @param [String] resource
433
+ # REQUIRED: The resource for which the policy detail is being requested. See the
434
+ # operation documentation for the appropriate value for this field.
435
+ # @param [Google::Apis::GkehubV1alpha::TestIamPermissionsRequest] test_iam_permissions_request_object
436
+ # @param [String] fields
437
+ # Selector specifying which fields to include in a partial response.
438
+ # @param [String] quota_user
439
+ # Available to use for quota purposes for server-side applications. Can be any
440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # @param [Google::Apis::RequestOptions] options
442
+ # Request-specific options
443
+ #
444
+ # @yield [result, err] Result & error if block supplied
445
+ # @yieldparam result [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse] parsed result object
446
+ # @yieldparam err [StandardError] error object if request failed
447
+ #
448
+ # @return [Google::Apis::GkehubV1alpha::TestIamPermissionsResponse]
449
+ #
450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
453
+ def test_feature_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
454
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
455
+ command.request_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsRequest::Representation
456
+ command.request_object = test_iam_permissions_request_object
457
+ command.response_representation = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse::Representation
458
+ command.response_class = Google::Apis::GkehubV1alpha::TestIamPermissionsResponse
459
+ command.params['resource'] = resource unless resource.nil?
460
+ command.query['fields'] = fields unless fields.nil?
461
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
468
465
  # Gets the access control policy for a resource. Returns an empty policy if the
469
466
  # resource exists and does not have a policy set.
470
467
  # @param [String] resource
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.2.0
4
+ version: 0.3.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: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v1alpha/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-gkehub_v1alpha
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for GKE Hub V1alpha