@@ -22,7 +22,8 @@ module Apis
2222 module ObservabilityV1
2323 # Observability API
2424 #
25- #
25+ # Provides functionality for configuring the observability scope, which controls
26+ # the log, metric, and trace data that you can view.
2627 #
2728 # @example
2829 # require 'google/apis/observability_v1'
@@ -51,144 +52,6 @@ def initialize
5152 @batch_path = 'batch'
5253 end
5354
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-
19255 # Gets information about a location.
19356 # @param [String] name
19457 # Resource name for the location.
@@ -219,38 +82,6 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
21982 execute_or_queue_command ( command , &block )
22083 end
22184
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-
25485 # Lists information about the supported locations for this service.
25586 # @param [String] name
25687 # The resource that owns the locations collection, if applicable.
@@ -298,43 +129,6 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si
298129 execute_or_queue_command ( command , &block )
299130 end
300131
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-
338132 # Starts asynchronous cancellation on a long-running operation. The server makes
339133 # a best effort to cancel the operation, but success is not guaranteed. If the
340134 # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
0 commit comments