google-apis-observability_v1 0.14.0 → 0.15.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: 2c48821fd8cd63b25ff168988e6eb2a540a8673122f1c500a2e1c0cf36ab3965
4
- data.tar.gz: ffd2aca599200573471dfcedc18c8b878462ca475255391fb64524d3824787a4
3
+ metadata.gz: 2e330b789049bf5015543326f09634048c37c355cb489e5df2da1441af372305
4
+ data.tar.gz: 0a2e63109e8fafe33ab527794c4b1eec8a402113b4a0925acf6c590937ff923b
5
5
  SHA512:
6
- metadata.gz: f44cc3d60253081a6932917221c6a5447c0cbc82bd54895cb269d1ed9804c8fe65d7be69a1272b31b41b1fff403b574943c739f63227e8984e0438a0ab60209e
7
- data.tar.gz: e9d401125756037423d6d7ca2991235810803865e83d4796e81d38395df6452c565321581ae7dfde0128694af8c3438bc0edf2c02a675926ec6f811c3d8cea78
6
+ metadata.gz: c0726bc5f832c74ae4cca7874a9736d0e5f2b53bac15401832bf748a14f1668b588be0890b60094589c041a5d025e2f467ff5c1026b9417c9447b52913600129
7
+ data.tar.gz: e09adc355883d623dd0b042140356b4bb7baa4934ea13f3cbb1a33f5f829e75c77c0fe567c1b89f84bbd12d9c3cc01b79566dac4ba9a6a71e19182a63be87a16
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-observability_v1
2
2
 
3
+ ### v0.15.0 (2026-03-01)
4
+
5
+ * Regenerated from discovery document revision 20260220
6
+
3
7
  ### v0.14.0 (2026-02-08)
4
8
 
5
9
  * Regenerated from discovery document revision 20260129
@@ -642,6 +642,50 @@ module Google
642
642
  end
643
643
  end
644
644
 
645
+ # Describes the settings associated with a project, organization, or folder.
646
+ class Settings
647
+ include Google::Apis::Core::Hashable
648
+
649
+ # Optional. The location which should be used when any regional resources are
650
+ # provisioned by Google Cloud.
651
+ # Corresponds to the JSON property `defaultStorageLocation`
652
+ # @return [String]
653
+ attr_accessor :default_storage_location
654
+
655
+ # Optional. The resource name for the configured Cloud KMS key. KMS key name
656
+ # format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
657
+ # cryptoKeys/[KEY]" For example: `"projects/my-project/locations/us-central1/
658
+ # keyRings/my-ring/cryptoKeys/my-key"`
659
+ # Corresponds to the JSON property `kmsKeyName`
660
+ # @return [String]
661
+ attr_accessor :kms_key_name
662
+
663
+ # Identifier. The resource name of the settings.
664
+ # Corresponds to the JSON property `name`
665
+ # @return [String]
666
+ attr_accessor :name
667
+
668
+ # Output only. The service account for the given resource container, such as
669
+ # project or folder. This will be used by Cloud Observability to perform actions
670
+ # in the container's project like access KMS keys or create Links. Always the
671
+ # same service account per resource container regardless of region.
672
+ # Corresponds to the JSON property `serviceAccountId`
673
+ # @return [String]
674
+ attr_accessor :service_account_id
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @default_storage_location = args[:default_storage_location] if args.key?(:default_storage_location)
683
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
684
+ @name = args[:name] if args.key?(:name)
685
+ @service_account_id = args[:service_account_id] if args.key?(:service_account_id)
686
+ end
687
+ end
688
+
645
689
  # The `Status` type defines a logical error model that is suitable for different
646
690
  # programming environments, including REST APIs and RPC APIs. It is used by [
647
691
  # 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.14.0"
19
+ GEM_VERSION = "0.15.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 = "20260129"
25
+ REVISION = "20260220"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class Settings
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class Status
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -310,6 +316,16 @@ module Google
310
316
  end
311
317
  end
312
318
 
319
+ class Settings
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :default_storage_location, as: 'defaultStorageLocation'
323
+ property :kms_key_name, as: 'kmsKeyName'
324
+ property :name, as: 'name'
325
+ property :service_account_id, as: 'serviceAccountId'
326
+ end
327
+ end
328
+
313
329
  class Status
314
330
  # @private
315
331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -82,6 +82,38 @@ module Google
82
82
  execute_or_queue_command(command, &block)
83
83
  end
84
84
 
85
+ # Get Settings
86
+ # @param [String] name
87
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
88
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
89
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ObservabilityV1::Settings]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def get_folder_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1/{+name}', options)
109
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
110
+ command.response_class = Google::Apis::ObservabilityV1::Settings
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['fields'] = fields unless fields.nil?
113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
85
117
  # Lists information about the supported locations for this service. This method
86
118
  # can be called in two ways: * **List all public locations:** Use the path `GET /
87
119
  # v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -133,6 +165,43 @@ module Google
133
165
  execute_or_queue_command(command, &block)
134
166
  end
135
167
 
168
+ # Update Settings
169
+ # @param [String] name
170
+ # Identifier. The resource name of the settings.
171
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
172
+ # @param [String] update_mask
173
+ # Optional. The field mask specifying which fields of the settings are to be
174
+ # updated.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
177
+ # @param [String] quota_user
178
+ # Available to use for quota purposes for server-side applications. Can be any
179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::ObservabilityV1::Operation]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def update_folder_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
193
+ command = make_simple_command(:patch, 'v1/{+name}', options)
194
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
195
+ command.request_object = settings_object
196
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
197
+ command.response_class = Google::Apis::ObservabilityV1::Operation
198
+ command.params['name'] = name unless name.nil?
199
+ command.query['updateMask'] = update_mask unless update_mask.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
136
205
  # Starts asynchronous cancellation on a long-running operation. The server makes
137
206
  # a best effort to cancel the operation, but success is not guaranteed. If the
138
207
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -316,6 +385,38 @@ module Google
316
385
  execute_or_queue_command(command, &block)
317
386
  end
318
387
 
388
+ # Get Settings
389
+ # @param [String] name
390
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
391
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
392
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
393
+ # @param [String] fields
394
+ # Selector specifying which fields to include in a partial response.
395
+ # @param [String] quota_user
396
+ # Available to use for quota purposes for server-side applications. Can be any
397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
398
+ # @param [Google::Apis::RequestOptions] options
399
+ # Request-specific options
400
+ #
401
+ # @yield [result, err] Result & error if block supplied
402
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
403
+ # @yieldparam err [StandardError] error object if request failed
404
+ #
405
+ # @return [Google::Apis::ObservabilityV1::Settings]
406
+ #
407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
410
+ def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:get, 'v1/{+name}', options)
412
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
413
+ command.response_class = Google::Apis::ObservabilityV1::Settings
414
+ command.params['name'] = name unless name.nil?
415
+ command.query['fields'] = fields unless fields.nil?
416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
419
+
319
420
  # Lists information about the supported locations for this service. This method
320
421
  # can be called in two ways: * **List all public locations:** Use the path `GET /
321
422
  # v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -367,6 +468,43 @@ module Google
367
468
  execute_or_queue_command(command, &block)
368
469
  end
369
470
 
471
+ # Update Settings
472
+ # @param [String] name
473
+ # Identifier. The resource name of the settings.
474
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
475
+ # @param [String] update_mask
476
+ # Optional. The field mask specifying which fields of the settings are to be
477
+ # updated.
478
+ # @param [String] fields
479
+ # Selector specifying which fields to include in a partial response.
480
+ # @param [String] quota_user
481
+ # Available to use for quota purposes for server-side applications. Can be any
482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
483
+ # @param [Google::Apis::RequestOptions] options
484
+ # Request-specific options
485
+ #
486
+ # @yield [result, err] Result & error if block supplied
487
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
488
+ # @yieldparam err [StandardError] error object if request failed
489
+ #
490
+ # @return [Google::Apis::ObservabilityV1::Operation]
491
+ #
492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
495
+ def update_organization_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:patch, 'v1/{+name}', options)
497
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
498
+ command.request_object = settings_object
499
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
500
+ command.response_class = Google::Apis::ObservabilityV1::Operation
501
+ command.params['name'] = name unless name.nil?
502
+ command.query['updateMask'] = update_mask unless update_mask.nil?
503
+ command.query['fields'] = fields unless fields.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
370
508
  # Starts asynchronous cancellation on a long-running operation. The server makes
371
509
  # a best effort to cancel the operation, but success is not guaranteed. If the
372
510
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -550,6 +688,38 @@ module Google
550
688
  execute_or_queue_command(command, &block)
551
689
  end
552
690
 
691
+ # Get Settings
692
+ # @param [String] name
693
+ # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
694
+ # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
695
+ # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
696
+ # @param [String] fields
697
+ # Selector specifying which fields to include in a partial response.
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [Google::Apis::RequestOptions] options
702
+ # Request-specific options
703
+ #
704
+ # @yield [result, err] Result & error if block supplied
705
+ # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
706
+ # @yieldparam err [StandardError] error object if request failed
707
+ #
708
+ # @return [Google::Apis::ObservabilityV1::Settings]
709
+ #
710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
713
+ def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
714
+ command = make_simple_command(:get, 'v1/{+name}', options)
715
+ command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
716
+ command.response_class = Google::Apis::ObservabilityV1::Settings
717
+ command.params['name'] = name unless name.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ execute_or_queue_command(command, &block)
721
+ end
722
+
553
723
  # Lists information about the supported locations for this service. This method
554
724
  # can be called in two ways: * **List all public locations:** Use the path `GET /
555
725
  # v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -601,6 +771,43 @@ module Google
601
771
  execute_or_queue_command(command, &block)
602
772
  end
603
773
 
774
+ # Update Settings
775
+ # @param [String] name
776
+ # Identifier. The resource name of the settings.
777
+ # @param [Google::Apis::ObservabilityV1::Settings] settings_object
778
+ # @param [String] update_mask
779
+ # Optional. The field mask specifying which fields of the settings are to be
780
+ # updated.
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # @param [Google::Apis::RequestOptions] options
787
+ # Request-specific options
788
+ #
789
+ # @yield [result, err] Result & error if block supplied
790
+ # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
791
+ # @yieldparam err [StandardError] error object if request failed
792
+ #
793
+ # @return [Google::Apis::ObservabilityV1::Operation]
794
+ #
795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
798
+ def update_project_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
799
+ command = make_simple_command(:patch, 'v1/{+name}', options)
800
+ command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
801
+ command.request_object = settings_object
802
+ command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
803
+ command.response_class = Google::Apis::ObservabilityV1::Operation
804
+ command.params['name'] = name unless name.nil?
805
+ command.query['updateMask'] = update_mask unless update_mask.nil?
806
+ command.query['fields'] = fields unless fields.nil?
807
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
808
+ execute_or_queue_command(command, &block)
809
+ end
810
+
604
811
  # Get bucket resource.
605
812
  # @param [String] name
606
813
  # Required. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/
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.14.0
4
+ version: 0.15.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.14.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-observability_v1/v0.15.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: