google-apis-apim_v1alpha 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc638ef34d1f76a562c5a28b0b5842e112285af31cec0397d2aca7114e27a1a2
4
- data.tar.gz: c05fec5120f16f790fe0df5597186817745aae41399ee1edfc9e8da0fee7d305
3
+ metadata.gz: 1a058dbe2bb30df7b672270d92e6adbe29c051bce5f2738314e43c391f20f0ee
4
+ data.tar.gz: 733bbe6528d91963d339621a1651a0c5aac7a96095d6cec05cd51d9b33bb55d5
5
5
  SHA512:
6
- metadata.gz: aad2553cf6826ad6c161a19cffd0e36f73727eb97517a1c2f658277310750625bef78221942c722e8144c222691ae15554905d68194af7641542fd17b49cbc3e
7
- data.tar.gz: 5a051b2374a4643ab721e1f108d169bf143e7e9ab218eb8e6c55dc2404ebca12738e7d3b429a60e10b1963aa81093be291393b4ee83008b0b3b3b0a5e06d05b3
6
+ metadata.gz: 4511e4e4cc01054379b8a78e405f16e7f0cfee7df4d1939ebbbc2d5aff8091fd61ee1382c35079fa40517860e89e8859e0f14a11578ca57f1b46250aed902865
7
+ data.tar.gz: bd116b8abb5841902cb2c1dae04d70095308bdc368d457287fb6a80f0cab2030155755a03d7413be4dc240de10fddbc7b09b3f72404f3fc089029042348ee5fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-apim_v1alpha
2
2
 
3
+ ### v0.2.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240717
6
+
3
7
  ### v0.1.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240605
@@ -141,6 +141,45 @@ module Google
141
141
  end
142
142
  end
143
143
 
144
+ # Message for requesting batch edit tags for ApiObservations
145
+ class BatchEditTagsApiObservationsRequest
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # Required. The request message specifying the resources to update. A maximum of
149
+ # 1000 apiObservations can be modified in a batch.
150
+ # Corresponds to the JSON property `requests`
151
+ # @return [Array<Google::Apis::ApimV1alpha::EditTagsApiObservationsRequest>]
152
+ attr_accessor :requests
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @requests = args[:requests] if args.key?(:requests)
161
+ end
162
+ end
163
+
164
+ # Message for response to edit Tags for ApiObservations
165
+ class BatchEditTagsApiObservationsResponse
166
+ include Google::Apis::Core::Hashable
167
+
168
+ # ApiObservations that were changed
169
+ # Corresponds to the JSON property `apiObservations`
170
+ # @return [Array<Google::Apis::ApimV1alpha::ApiObservation>]
171
+ attr_accessor :api_observations
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @api_observations = args[:api_observations] if args.key?(:api_observations)
180
+ end
181
+ end
182
+
144
183
  # The request message for Operations.CancelOperation.
145
184
  class CancelOperationRequest
146
185
  include Google::Apis::Core::Hashable
@@ -167,6 +206,32 @@ module Google
167
206
  end
168
207
  end
169
208
 
209
+ # Message for requesting edit tags for ApiObservation
210
+ class EditTagsApiObservationsRequest
211
+ include Google::Apis::Core::Hashable
212
+
213
+ # Required. Identifier of ApiObservation need to be edit tags Format example: "
214
+ # apigee.googleapis.com|us-west1|443"
215
+ # Corresponds to the JSON property `apiObservationId`
216
+ # @return [String]
217
+ attr_accessor :api_observation_id
218
+
219
+ # Required. Tag actions to be applied
220
+ # Corresponds to the JSON property `tagActions`
221
+ # @return [Array<Google::Apis::ApimV1alpha::TagAction>]
222
+ attr_accessor :tag_actions
223
+
224
+ def initialize(**args)
225
+ update!(**args)
226
+ end
227
+
228
+ # Update properties of this object
229
+ def update!(**args)
230
+ @api_observation_id = args[:api_observation_id] if args.key?(:api_observation_id)
231
+ @tag_actions = args[:tag_actions] if args.key?(:tag_actions)
232
+ end
233
+ end
234
+
170
235
  # A generic empty message that you can re-use to avoid defining duplicated empty
171
236
  # messages in your APIs. A typical example is to use it as the request or the
172
237
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -425,6 +490,32 @@ module Google
425
490
  end
426
491
  end
427
492
 
493
+ # Message for response to listing tags
494
+ class ListApiObservationTagsResponse
495
+ include Google::Apis::Core::Hashable
496
+
497
+ # The tags from the specified project
498
+ # Corresponds to the JSON property `apiObservationTags`
499
+ # @return [Array<String>]
500
+ attr_accessor :api_observation_tags
501
+
502
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
503
+ # field is omitted, there are no subsequent pages.
504
+ # Corresponds to the JSON property `nextPageToken`
505
+ # @return [String]
506
+ attr_accessor :next_page_token
507
+
508
+ def initialize(**args)
509
+ update!(**args)
510
+ end
511
+
512
+ # Update properties of this object
513
+ def update!(**args)
514
+ @api_observation_tags = args[:api_observation_tags] if args.key?(:api_observation_tags)
515
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
516
+ end
517
+ end
518
+
428
519
  # Message for response to listing ApiObservations
429
520
  class ListApiObservationsResponse
430
521
  include Google::Apis::Core::Hashable
@@ -885,6 +976,31 @@ module Google
885
976
  @message = args[:message] if args.key?(:message)
886
977
  end
887
978
  end
979
+
980
+ # Message for edit tag action
981
+ class TagAction
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # Required. Action to be applied
985
+ # Corresponds to the JSON property `action`
986
+ # @return [String]
987
+ attr_accessor :action
988
+
989
+ # Required. Tag to be added or removed
990
+ # Corresponds to the JSON property `tag`
991
+ # @return [String]
992
+ attr_accessor :tag
993
+
994
+ def initialize(**args)
995
+ update!(**args)
996
+ end
997
+
998
+ # Update properties of this object
999
+ def update!(**args)
1000
+ @action = args[:action] if args.key?(:action)
1001
+ @tag = args[:tag] if args.key?(:tag)
1002
+ end
1003
+ end
888
1004
  end
889
1005
  end
890
1006
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApimV1alpha
18
18
  # Version of the google-apis-apim_v1alpha gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240605"
25
+ REVISION = "20240717"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class BatchEditTagsApiObservationsRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class BatchEditTagsApiObservationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class CancelOperationRequest
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -46,6 +58,12 @@ module Google
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class EditTagsApiObservationsRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class Empty
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -106,6 +124,12 @@ module Google
106
124
  include Google::Apis::Core::JsonObjectSupport
107
125
  end
108
126
 
127
+ class ListApiObservationTagsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
109
133
  class ListApiObservationsResponse
110
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
135
 
@@ -178,6 +202,12 @@ module Google
178
202
  include Google::Apis::Core::JsonObjectSupport
179
203
  end
180
204
 
205
+ class TagAction
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
181
211
  class ApiObservation
182
212
  # @private
183
213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -206,6 +236,22 @@ module Google
206
236
  end
207
237
  end
208
238
 
239
+ class BatchEditTagsApiObservationsRequest
240
+ # @private
241
+ class Representation < Google::Apis::Core::JsonRepresentation
242
+ collection :requests, as: 'requests', class: Google::Apis::ApimV1alpha::EditTagsApiObservationsRequest, decorator: Google::Apis::ApimV1alpha::EditTagsApiObservationsRequest::Representation
243
+
244
+ end
245
+ end
246
+
247
+ class BatchEditTagsApiObservationsResponse
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ collection :api_observations, as: 'apiObservations', class: Google::Apis::ApimV1alpha::ApiObservation, decorator: Google::Apis::ApimV1alpha::ApiObservation::Representation
251
+
252
+ end
253
+ end
254
+
209
255
  class CancelOperationRequest
210
256
  # @private
211
257
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -218,6 +264,15 @@ module Google
218
264
  end
219
265
  end
220
266
 
267
+ class EditTagsApiObservationsRequest
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ property :api_observation_id, as: 'apiObservationId'
271
+ collection :tag_actions, as: 'tagActions', class: Google::Apis::ApimV1alpha::TagAction, decorator: Google::Apis::ApimV1alpha::TagAction::Representation
272
+
273
+ end
274
+ end
275
+
221
276
  class Empty
222
277
  # @private
223
278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -305,6 +360,14 @@ module Google
305
360
  end
306
361
  end
307
362
 
363
+ class ListApiObservationTagsResponse
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ collection :api_observation_tags, as: 'apiObservationTags'
367
+ property :next_page_token, as: 'nextPageToken'
368
+ end
369
+ end
370
+
308
371
  class ListApiObservationsResponse
309
372
  # @private
310
373
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -428,6 +491,14 @@ module Google
428
491
  property :message, as: 'message'
429
492
  end
430
493
  end
494
+
495
+ class TagAction
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ property :action, as: 'action'
499
+ property :tag, as: 'tag'
500
+ end
501
+ end
431
502
  end
432
503
  end
433
504
  end
@@ -124,6 +124,49 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
+ # ListApiObservationTags lists all extant tags on any observation in the given
128
+ # project.
129
+ # @param [String] parent
130
+ # Required. The parent, which owns this collection of tags. Format: projects/`
131
+ # project`/locations/`location`
132
+ # @param [Fixnum] page_size
133
+ # Optional. The maximum number of tags to return. The service may return fewer
134
+ # than this value. If unspecified, at most 10 tags will be returned. The maximum
135
+ # value is 1000; values above 1000 will be coerced to 1000.
136
+ # @param [String] page_token
137
+ # Optional. A page token, received from a previous `ListApiObservationTags` call.
138
+ # Provide this to retrieve the subsequent page. When paginating, all other
139
+ # parameters provided to `ListApiObservationTags` must match the call that
140
+ # provided the page token.
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
143
+ # @param [String] quota_user
144
+ # Available to use for quota purposes for server-side applications. Can be any
145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::ApimV1alpha::ListApiObservationTagsResponse] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::ApimV1alpha::ListApiObservationTagsResponse]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def list_project_location_api_observation_tags(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
159
+ command = make_simple_command(:get, 'v1alpha/{+parent}:listApiObservationTags', options)
160
+ command.response_representation = Google::Apis::ApimV1alpha::ListApiObservationTagsResponse::Representation
161
+ command.response_class = Google::Apis::ApimV1alpha::ListApiObservationTagsResponse
162
+ command.params['parent'] = parent unless parent.nil?
163
+ command.query['pageSize'] = page_size unless page_size.nil?
164
+ command.query['pageToken'] = page_token unless page_token.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
127
170
  # CreateObservationJob creates a new ObservationJob but does not have any
128
171
  # effecton its own. It is a configuration that can be used in an Observation Job
129
172
  # to collect data about existing APIs.
@@ -308,7 +351,7 @@ module Google
308
351
  execute_or_queue_command(command, &block)
309
352
  end
310
353
 
311
- # ListObservationJobs gets all ObservationJobs for a given project and location
354
+ # ListObservationJobs gets all ObservationJobs for a given project and location.
312
355
  # @param [String] parent
313
356
  # Required. The parent, which owns this collection of ObservationJobs. Format:
314
357
  # projects/`project`/locations/`location`
@@ -351,6 +394,41 @@ module Google
351
394
  execute_or_queue_command(command, &block)
352
395
  end
353
396
 
397
+ # BatchEditTagsApiObservations adds or removes Tags for ApiObservations.
398
+ # @param [String] parent
399
+ # Required. The parent resource shared by all ApiObservations being edited.
400
+ # Format: projects/`project`/locations/`location`/observationJobs/`
401
+ # observation_job`
402
+ # @param [Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsRequest] batch_edit_tags_api_observations_request_object
403
+ # @param [String] fields
404
+ # Selector specifying which fields to include in a partial response.
405
+ # @param [String] quota_user
406
+ # Available to use for quota purposes for server-side applications. Can be any
407
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsResponse] parsed result object
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsResponse]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def batch_edit_tags_api_observations(parent, batch_edit_tags_api_observations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ command = make_simple_command(:post, 'v1alpha/{+parent}/apiObservations:batchEditTags', options)
422
+ command.request_representation = Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsRequest::Representation
423
+ command.request_object = batch_edit_tags_api_observations_request_object
424
+ command.response_representation = Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsResponse::Representation
425
+ command.response_class = Google::Apis::ApimV1alpha::BatchEditTagsApiObservationsResponse
426
+ command.params['parent'] = parent unless parent.nil?
427
+ command.query['fields'] = fields unless fields.nil?
428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
429
+ execute_or_queue_command(command, &block)
430
+ end
431
+
354
432
  # GetApiObservation retrieves a single ApiObservation by name.
355
433
  # @param [String] name
356
434
  # Required. The name of the ApiObservation to retrieve. Format: projects/`
@@ -384,7 +462,7 @@ module Google
384
462
  end
385
463
 
386
464
  # ListApiObservations gets all ApiObservations for a given project and location
387
- # and ObservationJob
465
+ # and ObservationJob.
388
466
  # @param [String] parent
389
467
  # Required. The parent, which owns this collection of ApiObservations. Format:
390
468
  # projects/`project`/locations/`location`/observationJobs/`observation_job`
@@ -460,7 +538,7 @@ module Google
460
538
  end
461
539
 
462
540
  # ListApiOperations gets all ApiOperations for a given project and location and
463
- # ObservationJob and ApiObservation
541
+ # ObservationJob and ApiObservation.
464
542
  # @param [String] parent
465
543
  # Required. The parent, which owns this collection of ApiOperations. Format:
466
544
  # projects/`project`/locations/`location`/observationJobs/`observation_job`/
@@ -619,7 +697,7 @@ module Google
619
697
  end
620
698
 
621
699
  # ListObservationSources gets all ObservationSources for a given project and
622
- # location
700
+ # location.
623
701
  # @param [String] parent
624
702
  # Required. The parent, which owns this collection of ObservationSources. Format:
625
703
  # projects/`project`/locations/`location`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apim_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-06-16 00:00:00.000000000 Z
11
+ date: 2024-07-25 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-apim_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apim_v1alpha/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apim_v1alpha/v0.2.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apim_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []