google-apis-observability_v1 0.1.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 +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/observability_v1/classes.rb +347 -0
- data/lib/google/apis/observability_v1/gem_version.rb +28 -0
- data/lib/google/apis/observability_v1/representations.rb +164 -0
- data/lib/google/apis/observability_v1/service.rb +354 -0
- data/lib/google/apis/observability_v1.rb +36 -0
- data/lib/google-apis-observability_v1.rb +15 -0
- metadata +79 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module ObservabilityV1
|
18
|
+
# Version of the google-apis-observability_v1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20250313"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ObservabilityV1
|
24
|
+
|
25
|
+
class CancelOperationRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ListLocationsResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListOperationsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Location
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Operation
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class OperationMetadata
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Scope
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Status
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class CancelOperationRequest
|
80
|
+
# @private
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class Empty
|
86
|
+
# @private
|
87
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
class ListLocationsResponse
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
collection :locations, as: 'locations', class: Google::Apis::ObservabilityV1::Location, decorator: Google::Apis::ObservabilityV1::Location::Representation
|
95
|
+
|
96
|
+
property :next_page_token, as: 'nextPageToken'
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class ListOperationsResponse
|
101
|
+
# @private
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
103
|
+
property :next_page_token, as: 'nextPageToken'
|
104
|
+
collection :operations, as: 'operations', class: Google::Apis::ObservabilityV1::Operation, decorator: Google::Apis::ObservabilityV1::Operation::Representation
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class Location
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
property :display_name, as: 'displayName'
|
113
|
+
hash :labels, as: 'labels'
|
114
|
+
property :location_id, as: 'locationId'
|
115
|
+
hash :metadata, as: 'metadata'
|
116
|
+
property :name, as: 'name'
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
class Operation
|
121
|
+
# @private
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
123
|
+
property :done, as: 'done'
|
124
|
+
property :error, as: 'error', class: Google::Apis::ObservabilityV1::Status, decorator: Google::Apis::ObservabilityV1::Status::Representation
|
125
|
+
|
126
|
+
hash :metadata, as: 'metadata'
|
127
|
+
property :name, as: 'name'
|
128
|
+
hash :response, as: 'response'
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class OperationMetadata
|
133
|
+
# @private
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
135
|
+
property :api_version, as: 'apiVersion'
|
136
|
+
property :create_time, as: 'createTime'
|
137
|
+
property :end_time, as: 'endTime'
|
138
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
139
|
+
property :status_message, as: 'statusMessage'
|
140
|
+
property :target, as: 'target'
|
141
|
+
property :verb, as: 'verb'
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class Scope
|
146
|
+
# @private
|
147
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
148
|
+
property :log_scope, as: 'logScope'
|
149
|
+
property :name, as: 'name'
|
150
|
+
property :update_time, as: 'updateTime'
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class Status
|
155
|
+
# @private
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
157
|
+
property :code, as: 'code'
|
158
|
+
collection :details, as: 'details'
|
159
|
+
property :message, as: 'message'
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
@@ -0,0 +1,354 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ObservabilityV1
|
23
|
+
# Observability API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/observability_v1'
|
29
|
+
#
|
30
|
+
# Observability = Google::Apis::ObservabilityV1 # Alias the module
|
31
|
+
# service = Observability::CloudObservabilityService.new
|
32
|
+
#
|
33
|
+
# @see
|
34
|
+
class CloudObservabilityService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://observability.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
37
|
+
# @return [String]
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
40
|
+
attr_accessor :key
|
41
|
+
|
42
|
+
# @return [String]
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
+
attr_accessor :quota_user
|
46
|
+
|
47
|
+
def initialize
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
49
|
+
client_name: 'google-apis-observability_v1',
|
50
|
+
client_version: Google::Apis::ObservabilityV1::GEM_VERSION)
|
51
|
+
@batch_path = 'batch'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Gets information about a location.
|
55
|
+
# @param [String] name
|
56
|
+
# Resource name for the location.
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Location] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::ObservabilityV1::Location]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
76
|
+
command.response_representation = Google::Apis::ObservabilityV1::Location::Representation
|
77
|
+
command.response_class = Google::Apis::ObservabilityV1::Location
|
78
|
+
command.params['name'] = name unless name.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Lists information about the supported locations for this service.
|
85
|
+
# @param [String] name
|
86
|
+
# The resource that owns the locations collection, if applicable.
|
87
|
+
# @param [String] filter
|
88
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
89
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
90
|
+
# in [AIP-160](https://google.aip.dev/160).
|
91
|
+
# @param [Fixnum] page_size
|
92
|
+
# The maximum number of results to return. If not set, the service selects a
|
93
|
+
# default.
|
94
|
+
# @param [String] page_token
|
95
|
+
# A page token received from the `next_page_token` field in the response. Send
|
96
|
+
# that page token to receive the subsequent page.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListLocationsResponse] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::ObservabilityV1::ListLocationsResponse]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
116
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListLocationsResponse::Representation
|
117
|
+
command.response_class = Google::Apis::ObservabilityV1::ListLocationsResponse
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['filter'] = filter unless filter.nil?
|
120
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
121
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
execute_or_queue_command(command, &block)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
128
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
129
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
130
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
131
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
132
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
133
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
134
|
+
# , corresponding to `Code.CANCELLED`.
|
135
|
+
# @param [String] name
|
136
|
+
# The name of the operation resource to be cancelled.
|
137
|
+
# @param [Google::Apis::ObservabilityV1::CancelOperationRequest] cancel_operation_request_object
|
138
|
+
# @param [String] fields
|
139
|
+
# Selector specifying which fields to include in a partial response.
|
140
|
+
# @param [String] quota_user
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
144
|
+
# Request-specific options
|
145
|
+
#
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
147
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Empty] parsed result object
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
149
|
+
#
|
150
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
151
|
+
#
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
155
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
156
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
157
|
+
command.request_representation = Google::Apis::ObservabilityV1::CancelOperationRequest::Representation
|
158
|
+
command.request_object = cancel_operation_request_object
|
159
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
160
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
161
|
+
command.params['name'] = name unless name.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
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
168
|
+
# longer interested in the operation result. It does not cancel the operation.
|
169
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
170
|
+
# UNIMPLEMENTED`.
|
171
|
+
# @param [String] name
|
172
|
+
# The name of the operation resource to be deleted.
|
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::ObservabilityV1::Empty] parsed result object
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
184
|
+
#
|
185
|
+
# @return [Google::Apis::ObservabilityV1::Empty]
|
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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
192
|
+
command.response_representation = Google::Apis::ObservabilityV1::Empty::Representation
|
193
|
+
command.response_class = Google::Apis::ObservabilityV1::Empty
|
194
|
+
command.params['name'] = name unless name.nil?
|
195
|
+
command.query['fields'] = fields unless fields.nil?
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
197
|
+
execute_or_queue_command(command, &block)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
201
|
+
# to poll the operation result at intervals as recommended by the API service.
|
202
|
+
# @param [String] name
|
203
|
+
# The name of the operation resource.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::ObservabilityV1::Operation]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
223
|
+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
|
224
|
+
command.response_class = Google::Apis::ObservabilityV1::Operation
|
225
|
+
command.params['name'] = name unless name.nil?
|
226
|
+
command.query['fields'] = fields unless fields.nil?
|
227
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
228
|
+
execute_or_queue_command(command, &block)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Lists operations that match the specified filter in the request. If the server
|
232
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
233
|
+
# @param [String] name
|
234
|
+
# The name of the operation's parent resource.
|
235
|
+
# @param [String] filter
|
236
|
+
# The standard list filter.
|
237
|
+
# @param [Fixnum] page_size
|
238
|
+
# The standard list page size.
|
239
|
+
# @param [String] page_token
|
240
|
+
# The standard list page token.
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
243
|
+
# @param [String] quota_user
|
244
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
245
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
246
|
+
# @param [Google::Apis::RequestOptions] options
|
247
|
+
# Request-specific options
|
248
|
+
#
|
249
|
+
# @yield [result, err] Result & error if block supplied
|
250
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::ListOperationsResponse] parsed result object
|
251
|
+
# @yieldparam err [StandardError] error object if request failed
|
252
|
+
#
|
253
|
+
# @return [Google::Apis::ObservabilityV1::ListOperationsResponse]
|
254
|
+
#
|
255
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
256
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
257
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
258
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
259
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
260
|
+
command.response_representation = Google::Apis::ObservabilityV1::ListOperationsResponse::Representation
|
261
|
+
command.response_class = Google::Apis::ObservabilityV1::ListOperationsResponse
|
262
|
+
command.params['name'] = name unless name.nil?
|
263
|
+
command.query['filter'] = filter unless filter.nil?
|
264
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
265
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
266
|
+
command.query['fields'] = fields unless fields.nil?
|
267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
268
|
+
execute_or_queue_command(command, &block)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Gets details of a single Scope.
|
272
|
+
# @param [String] name
|
273
|
+
# Required. Name of the resource. The format is: projects/`project`/locations/`
|
274
|
+
# location`/scopes/`scope` The ``location`` field must be set to `global`. The ``
|
275
|
+
# scope`` field must be set to `_Default`.
|
276
|
+
# @param [String] fields
|
277
|
+
# Selector specifying which fields to include in a partial response.
|
278
|
+
# @param [String] quota_user
|
279
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
280
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
281
|
+
# @param [Google::Apis::RequestOptions] options
|
282
|
+
# Request-specific options
|
283
|
+
#
|
284
|
+
# @yield [result, err] Result & error if block supplied
|
285
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Scope] parsed result object
|
286
|
+
# @yieldparam err [StandardError] error object if request failed
|
287
|
+
#
|
288
|
+
# @return [Google::Apis::ObservabilityV1::Scope]
|
289
|
+
#
|
290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
293
|
+
def get_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
|
294
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
295
|
+
command.response_representation = Google::Apis::ObservabilityV1::Scope::Representation
|
296
|
+
command.response_class = Google::Apis::ObservabilityV1::Scope
|
297
|
+
command.params['name'] = name unless name.nil?
|
298
|
+
command.query['fields'] = fields unless fields.nil?
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
300
|
+
execute_or_queue_command(command, &block)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Updates the parameters of a single Scope.
|
304
|
+
# @param [String] name
|
305
|
+
# Identifier. Name of the resource. The format is: projects/`project`/locations/`
|
306
|
+
# location`/scopes/`scope` The ``location`` field must be set to `global`. The ``
|
307
|
+
# scope`` field must be set to `_Default`.
|
308
|
+
# @param [Google::Apis::ObservabilityV1::Scope] scope_object
|
309
|
+
# @param [String] update_mask
|
310
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
311
|
+
# Scope resource by the update. The fields specified in the update_mask are
|
312
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
313
|
+
# it is in the mask. If the user does not provide a mask then all fields present
|
314
|
+
# in the request will be overwritten.
|
315
|
+
# @param [String] fields
|
316
|
+
# Selector specifying which fields to include in a partial response.
|
317
|
+
# @param [String] quota_user
|
318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
320
|
+
# @param [Google::Apis::RequestOptions] options
|
321
|
+
# Request-specific options
|
322
|
+
#
|
323
|
+
# @yield [result, err] Result & error if block supplied
|
324
|
+
# @yieldparam result [Google::Apis::ObservabilityV1::Scope] parsed result object
|
325
|
+
# @yieldparam err [StandardError] error object if request failed
|
326
|
+
#
|
327
|
+
# @return [Google::Apis::ObservabilityV1::Scope]
|
328
|
+
#
|
329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
332
|
+
def patch_project_location_scope(name, scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
333
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
334
|
+
command.request_representation = Google::Apis::ObservabilityV1::Scope::Representation
|
335
|
+
command.request_object = scope_object
|
336
|
+
command.response_representation = Google::Apis::ObservabilityV1::Scope::Representation
|
337
|
+
command.response_class = Google::Apis::ObservabilityV1::Scope
|
338
|
+
command.params['name'] = name unless name.nil?
|
339
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
340
|
+
command.query['fields'] = fields unless fields.nil?
|
341
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
342
|
+
execute_or_queue_command(command, &block)
|
343
|
+
end
|
344
|
+
|
345
|
+
protected
|
346
|
+
|
347
|
+
def apply_command_defaults(command)
|
348
|
+
command.query['key'] = key unless key.nil?
|
349
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
350
|
+
end
|
351
|
+
end
|
352
|
+
end
|
353
|
+
end
|
354
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/observability_v1/service.rb'
|
16
|
+
require 'google/apis/observability_v1/classes.rb'
|
17
|
+
require 'google/apis/observability_v1/representations.rb'
|
18
|
+
require 'google/apis/observability_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Observability API
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @see
|
27
|
+
module ObservabilityV1
|
28
|
+
# Version of the Observability API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/observability_v1"
|
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-observability_v1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: google-apis-core
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 0.15.0
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.a
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 0.15.0
|
29
|
+
- - "<"
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 2.a
|
32
|
+
description: This is the simple REST client for Observability API V1. Simple REST
|
33
|
+
clients are Ruby client libraries that provide access to Google services via their
|
34
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
35
|
+
based on the discovery documents published by the service, and they handle most
|
36
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
37
|
+
use this client to access the Observability API, but note that some services may
|
38
|
+
provide a separate modern client that is easier to use.
|
39
|
+
email: googleapis-packages@google.com
|
40
|
+
executables: []
|
41
|
+
extensions: []
|
42
|
+
extra_rdoc_files: []
|
43
|
+
files:
|
44
|
+
- ".yardopts"
|
45
|
+
- CHANGELOG.md
|
46
|
+
- LICENSE.md
|
47
|
+
- OVERVIEW.md
|
48
|
+
- lib/google-apis-observability_v1.rb
|
49
|
+
- lib/google/apis/observability_v1.rb
|
50
|
+
- lib/google/apis/observability_v1/classes.rb
|
51
|
+
- lib/google/apis/observability_v1/gem_version.rb
|
52
|
+
- lib/google/apis/observability_v1/representations.rb
|
53
|
+
- lib/google/apis/observability_v1/service.rb
|
54
|
+
homepage: https://github.com/google/google-api-ruby-client
|
55
|
+
licenses:
|
56
|
+
- Apache-2.0
|
57
|
+
metadata:
|
58
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
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.1.0
|
61
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-observability_v1
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.7'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
requirements: []
|
76
|
+
rubygems_version: 3.6.5
|
77
|
+
specification_version: 4
|
78
|
+
summary: Simple REST client for Observability API V1
|
79
|
+
test_files: []
|