google-apis-gkehub_v2alpha 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,6 +124,210 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
+ # Creates membershipFeature under a given parent.
128
+ # @param [String] parent
129
+ # Required. The name of parent where the MembershipFeature will be created.
130
+ # Specified in the format `projects/*/locations/*/memberships/*`.
131
+ # @param [Google::Apis::GkehubV2alpha::MembershipFeature] membership_feature_object
132
+ # @param [String] feature_id
133
+ # Required. The ID of the membership_feature to create.
134
+ # @param [String] request_id
135
+ # Idempotent request UUID.
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::GkehubV2alpha::Operation] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::GkehubV2alpha::Operation]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def create_project_location_membership_feature(parent, membership_feature_object = nil, feature_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:post, 'v2alpha/{+parent}/features', options)
155
+ command.request_representation = Google::Apis::GkehubV2alpha::MembershipFeature::Representation
156
+ command.request_object = membership_feature_object
157
+ command.response_representation = Google::Apis::GkehubV2alpha::Operation::Representation
158
+ command.response_class = Google::Apis::GkehubV2alpha::Operation
159
+ command.params['parent'] = parent unless parent.nil?
160
+ command.query['featureId'] = feature_id unless feature_id.nil?
161
+ command.query['requestId'] = request_id unless request_id.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ execute_or_queue_command(command, &block)
165
+ end
166
+
167
+ # Removes a membershipFeature.
168
+ # @param [String] name
169
+ # Required. The name of the membershipFeature to be deleted. Specified in the
170
+ # format `projects/*/locations/*/memberships/*/features/*`.
171
+ # @param [String] request_id
172
+ # Idempotent request UUID.
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::GkehubV2alpha::Operation] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::GkehubV2alpha::Operation]
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 delete_project_location_membership_feature(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:delete, 'v2alpha/{+name}', options)
192
+ command.response_representation = Google::Apis::GkehubV2alpha::Operation::Representation
193
+ command.response_class = Google::Apis::GkehubV2alpha::Operation
194
+ command.params['name'] = name unless name.nil?
195
+ command.query['requestId'] = request_id unless request_id.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ execute_or_queue_command(command, &block)
199
+ end
200
+
201
+ # ========= MembershipFeature Services ========= Gets details of a
202
+ # membershipFeature.
203
+ # @param [String] name
204
+ # Required. The MembershipFeature resource name in the format `projects/*/
205
+ # locations/*/memberships/*/features/*`.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::GkehubV2alpha::MembershipFeature] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::GkehubV2alpha::MembershipFeature]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def get_project_location_membership_feature(name, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:get, 'v2alpha/{+name}', options)
225
+ command.response_representation = Google::Apis::GkehubV2alpha::MembershipFeature::Representation
226
+ command.response_class = Google::Apis::GkehubV2alpha::MembershipFeature
227
+ command.params['name'] = name unless name.nil?
228
+ command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ execute_or_queue_command(command, &block)
231
+ end
232
+
233
+ # Lists MembershipFeatures in a given project and location.
234
+ # @param [String] parent
235
+ # Required. The parent where the MembershipFeature will be listed. In the format:
236
+ # `projects/*/locations/*/memberships/*`.
237
+ # @param [String] filter
238
+ # Lists MembershipFeatures that match the filter expression, following the
239
+ # syntax outlined in https://google.aip.dev/160. Examples: - Feature with the
240
+ # name "helloworld" in project "foo-proj" and membership "member-bar": name = "
241
+ # projects/foo-proj/locations/global/memberships/member-bar/features/helloworld"
242
+ # - Features that have a label called `foo`: labels.foo:* - Features that have a
243
+ # label called `foo` whose value is `bar`: labels.foo = bar
244
+ # @param [String] order_by
245
+ # One or more fields to compare and use to sort the output. See https://google.
246
+ # aip.dev/132#ordering.
247
+ # @param [Fixnum] page_size
248
+ # When requesting a 'page' of resources, `page_size` specifies number of
249
+ # resources to return. If unspecified or set to 0, all resources will be
250
+ # returned.
251
+ # @param [String] page_token
252
+ # Token returned by previous call to `ListFeatures` which specifies the position
253
+ # in the list from where to continue listing the resources.
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::GkehubV2alpha::ListMembershipFeaturesResponse] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::GkehubV2alpha::ListMembershipFeaturesResponse]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def list_project_location_membership_features(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
272
+ command = make_simple_command(:get, 'v2alpha/{+parent}/features', options)
273
+ command.response_representation = Google::Apis::GkehubV2alpha::ListMembershipFeaturesResponse::Representation
274
+ command.response_class = Google::Apis::GkehubV2alpha::ListMembershipFeaturesResponse
275
+ command.params['parent'] = parent unless parent.nil?
276
+ command.query['filter'] = filter unless filter.nil?
277
+ command.query['orderBy'] = order_by unless order_by.nil?
278
+ command.query['pageSize'] = page_size unless page_size.nil?
279
+ command.query['pageToken'] = page_token unless page_token.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Updates an existing MembershipFeature.
286
+ # @param [String] name
287
+ # Output only. The resource name of the membershipFeature, in the format: `
288
+ # projects/`project`/locations/`location`/memberships/`membership`/features/`
289
+ # feature``. Note that `membershipFeatures` is shortened to `features` in the
290
+ # resource name. (see http://go/aip/122#collection-identifiers)
291
+ # @param [Google::Apis::GkehubV2alpha::MembershipFeature] membership_feature_object
292
+ # @param [Boolean] allow_missing
293
+ # Optional. If set to true, and the MembershipFeature is not found, a new
294
+ # MembershipFeature will be created. In this situation, `update_mask` is ignored.
295
+ # @param [String] request_id
296
+ # Idempotent request UUID.
297
+ # @param [String] update_mask
298
+ # Required. Mask of fields to update.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::GkehubV2alpha::Operation] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::GkehubV2alpha::Operation]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def patch_project_location_membership_feature(name, membership_feature_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:patch, 'v2alpha/{+name}', options)
318
+ command.request_representation = Google::Apis::GkehubV2alpha::MembershipFeature::Representation
319
+ command.request_object = membership_feature_object
320
+ command.response_representation = Google::Apis::GkehubV2alpha::Operation::Representation
321
+ command.response_class = Google::Apis::GkehubV2alpha::Operation
322
+ command.params['name'] = name unless name.nil?
323
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
324
+ command.query['requestId'] = request_id unless request_id.nil?
325
+ command.query['updateMask'] = update_mask unless update_mask.nil?
326
+ command.query['fields'] = fields unless fields.nil?
327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
328
+ execute_or_queue_command(command, &block)
329
+ end
330
+
127
331
  # Starts asynchronous cancellation on a long-running operation. The server makes
128
332
  # a best effort to cancel the operation, but success is not guaranteed. If the
129
333
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkehub_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.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: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v2alpha/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkehub_v2alpha/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkehub_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for GKE Hub API V2alpha