google-apis-observability_v1 0.10.0 → 0.11.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: 9d24afbff42ddd73fbd45c649d7eb50145bf7909270dc63e7fc9e1410df17f80
4
- data.tar.gz: bdeb6af0e33c296417456820ec6326623fb63f63c46a25dcd16227882d252ee5
3
+ metadata.gz: 1e15d109052af2518b6bea47cd6a878fe0d07ba03941eb33a3cd508cffd41590
4
+ data.tar.gz: 5cee9c19d7a3d6b61974b7e62e2f9748ea96965e8e7055ea1ecd4a38e9a86f16
5
5
  SHA512:
6
- metadata.gz: 6073f33ee80b68c0d003fb85b8a9430997c275d56c975cc99b10cb5755a02259fedad52b84bb826782d0d550d00a9d50e6f9c1b52cea38845e43fd972567dfda
7
- data.tar.gz: f7d1fd6669747d78f701e323b6e2632c919fe216151e9a98bbf164b07b27441007d0df85af1772c909f4a366b4a34a5087174fa10a523f38b1bb7473c7a30f23
6
+ metadata.gz: 1a1647ff43cd90b3af1ab0ec3afc9ecb5a0035eac5a288afd82c70fc2bedd862f4c4dc708b0b2df4956725a7066458857420cda1cb681558b2e0dc94e398eb27
7
+ data.tar.gz: 66b644fa79c82517ea9ab7ea4f5134f791130a3e0d88376ee98db29b5c9d5f334f11303e2e8e6b29d498a97985c7252a89b89c2e9479bae9682acde296a66c04
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-observability_v1
2
2
 
3
+ ### v0.11.0 (2025-12-14)
4
+
5
+ * Regenerated from discovery document revision 20251204
6
+
3
7
  ### v0.10.0 (2025-11-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20251113
@@ -347,6 +347,50 @@ module Google
347
347
  end
348
348
  end
349
349
 
350
+ # Describes the settings associated with a project, organization, or folder.
351
+ class Settings
352
+ include Google::Apis::Core::Hashable
353
+
354
+ # Optional. The location which should be used when any regional resources are
355
+ # provisioned by GCP.
356
+ # Corresponds to the JSON property `defaultStorageLocation`
357
+ # @return [String]
358
+ attr_accessor :default_storage_location
359
+
360
+ # Optional. The resource name for the configured Cloud KMS key. KMS key name
361
+ # format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
362
+ # cryptoKeys/[KEY]" For example: `"projects/my-project/locations/us-central1/
363
+ # keyRings/my-ring/cryptoKeys/my-key"`
364
+ # Corresponds to the JSON property `kmsKeyName`
365
+ # @return [String]
366
+ attr_accessor :kms_key_name
367
+
368
+ # Identifier. The resource name of the settings.
369
+ # Corresponds to the JSON property `name`
370
+ # @return [String]
371
+ attr_accessor :name
372
+
373
+ # Output only. The service account for the given resource container, such as
374
+ # project or folder. This will be used by Cloud Observability to perform actions
375
+ # in the container's project like access KMS keys or create Links. Always the
376
+ # same service account per resource container regardless of region.
377
+ # Corresponds to the JSON property `serviceAccountId`
378
+ # @return [String]
379
+ attr_accessor :service_account_id
380
+
381
+ def initialize(**args)
382
+ update!(**args)
383
+ end
384
+
385
+ # Update properties of this object
386
+ def update!(**args)
387
+ @default_storage_location = args[:default_storage_location] if args.key?(:default_storage_location)
388
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
389
+ @name = args[:name] if args.key?(:name)
390
+ @service_account_id = args[:service_account_id] if args.key?(:service_account_id)
391
+ end
392
+ end
393
+
350
394
  # The `Status` type defines a logical error model that is suitable for different
351
395
  # programming environments, including REST APIs and RPC APIs. It is used by [
352
396
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ObservabilityV1
18
18
  # Version of the google-apis-observability_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251113"
25
+ REVISION = "20251204"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class Settings
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Status
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -174,6 +180,16 @@ module Google
174
180
  end
175
181
  end
176
182
 
183
+ class Settings
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :default_storage_location, as: 'defaultStorageLocation'
187
+ property :kms_key_name, as: 'kmsKeyName'
188
+ property :name, as: 'name'
189
+ property :service_account_id, as: 'serviceAccountId'
190
+ end
191
+ end
192
+
177
193
  class Status
178
194
  # @private
179
195
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,144 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Get Settings
55
+ # @param [String] name
56
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
57
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
58
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::ObservabilityV1::Settings]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def get_folder_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:get, 'v1/{+name}', options)
78
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
79
+ command.response_class = Google::Apis::ObservabilityV1::Settings
80
+ command.params['name'] = name unless name.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Update Settings
87
+ # @param [String] name
88
+ # Identifier. The resource name of the settings.
89
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
90
+ # @param [String] update_mask
91
+ # Optional. The field mask specifying which fields of the settings are to be
92
+ # updated.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::ObservabilityV1::Operation]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def update_folder_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:patch, 'v1/{+name}', options)
112
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
113
+ command.request_object = settings_object
114
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
115
+ command.response_class = Google::Apis::ObservabilityV1::Operation
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['updateMask'] = update_mask unless update_mask.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
123
+ # Get Settings
124
+ # @param [String] name
125
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
126
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
127
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::ObservabilityV1::Settings]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:get, 'v1/{+name}', options)
147
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
148
+ command.response_class = Google::Apis::ObservabilityV1::Settings
149
+ command.params['name'] = name unless name.nil?
150
+ command.query['fields'] = fields unless fields.nil?
151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
155
+ # Update Settings
156
+ # @param [String] name
157
+ # Identifier. The resource name of the settings.
158
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
159
+ # @param [String] update_mask
160
+ # Optional. The field mask specifying which fields of the settings are to be
161
+ # updated.
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::ObservabilityV1::Operation]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def update_organization_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:patch, 'v1/{+name}', options)
181
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
182
+ command.request_object = settings_object
183
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
184
+ command.response_class = Google::Apis::ObservabilityV1::Operation
185
+ command.params['name'] = name unless name.nil?
186
+ command.query['updateMask'] = update_mask unless update_mask.nil?
187
+ command.query['fields'] = fields unless fields.nil?
188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ execute_or_queue_command(command, &block)
190
+ end
191
+
54
192
  # Gets information about a location.
55
193
  # @param [String] name
56
194
  # Resource name for the location.
@@ -81,6 +219,38 @@ module Google
81
219
  execute_or_queue_command(command, &block)
82
220
  end
83
221
 
222
+ # Get Settings
223
+ # @param [String] name
224
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
225
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
226
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
227
+ # @param [String] fields
228
+ # Selector specifying which fields to include in a partial response.
229
+ # @param [String] quota_user
230
+ # Available to use for quota purposes for server-side applications. Can be any
231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
+ # @param [Google::Apis::RequestOptions] options
233
+ # Request-specific options
234
+ #
235
+ # @yield [result, err] Result & error if block supplied
236
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
237
+ # @yieldparam err [StandardError] error object if request failed
238
+ #
239
+ # @return [Google::Apis::ObservabilityV1::Settings]
240
+ #
241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
244
+ def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
245
+ command = make_simple_command(:get, 'v1/{+name}', options)
246
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
247
+ command.response_class = Google::Apis::ObservabilityV1::Settings
248
+ command.params['name'] = name unless name.nil?
249
+ command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
84
254
  # Lists information about the supported locations for this service.
85
255
  # @param [String] name
86
256
  # The resource that owns the locations collection, if applicable.
@@ -128,6 +298,43 @@ module Google
128
298
  execute_or_queue_command(command, &block)
129
299
  end
130
300
 
301
+ # Update Settings
302
+ # @param [String] name
303
+ # Identifier. The resource name of the settings.
304
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
305
+ # @param [String] update_mask
306
+ # Optional. The field mask specifying which fields of the settings are to be
307
+ # updated.
308
+ # @param [String] fields
309
+ # Selector specifying which fields to include in a partial response.
310
+ # @param [String] quota_user
311
+ # Available to use for quota purposes for server-side applications. Can be any
312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
313
+ # @param [Google::Apis::RequestOptions] options
314
+ # Request-specific options
315
+ #
316
+ # @yield [result, err] Result & error if block supplied
317
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
318
+ # @yieldparam err [StandardError] error object if request failed
319
+ #
320
+ # @return [Google::Apis::ObservabilityV1::Operation]
321
+ #
322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
325
+ def update_project_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
326
+ command = make_simple_command(:patch, 'v1/{+name}', options)
327
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
328
+ command.request_object = settings_object
329
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
330
+ command.response_class = Google::Apis::ObservabilityV1::Operation
331
+ command.params['name'] = name unless name.nil?
332
+ command.query['updateMask'] = update_mask unless update_mask.nil?
333
+ command.query['fields'] = fields unless fields.nil?
334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
131
338
  # Starts asynchronous cancellation on a long-running operation. The server makes
132
339
  # a best effort to cancel the operation, but success is not guaranteed. If the
133
340
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-observability_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.10.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.11.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1
62
62
  rdoc_options: []
63
63
  require_paths: