google-api-client 0.27.3 → 0.28.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 +4 -4
- data/CHANGELOG.md +44 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/service.rb +4 -4
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +18 -112
- data/generated/google/apis/analytics_v3/representations.rb +0 -36
- data/generated/google/apis/analytics_v3/service.rb +18 -18
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +20 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +7 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -8
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +59 -0
- data/generated/google/apis/composer_v1/representations.rb +30 -0
- data/generated/google/apis/composer_v1/service.rb +37 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +59 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
- data/generated/google/apis/composer_v1beta1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +2 -0
- data/generated/google/apis/dialogflow_v2/service.rb +8 -16
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -16
- data/generated/google/apis/firebasehosting_v1beta1.rb +4 -3
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +3 -2
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +7 -6
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +37 -0
- data/generated/google/apis/iam_v1/representations.rb +15 -0
- data/generated/google/apis/iam_v1/service.rb +44 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/service.rb +3 -558
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/service.rb +3 -568
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +1 -1
- data/generated/google/apis/jobs_v2/service.rb +2 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +52 -10
- data/generated/google/apis/logging_v2/representations.rb +6 -0
- data/generated/google/apis/logging_v2/service.rb +9 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +37 -9
- data/generated/google/apis/logging_v2beta1/representations.rb +4 -0
- data/generated/google/apis/logging_v2beta1/service.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +10 -12
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +111 -88
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +111 -88
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +141 -116
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -1
- data/generated/google/apis/remotebuildexecution_v2/service.rb +6 -5
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +2 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +12 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +71 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +30 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/service.rb +0 -3
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +20 -0
- data/generated/google/apis/speech_v1/representations.rb +2 -0
- data/generated/google/apis/speech_v1/service.rb +111 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +111 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +14 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +14 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +14 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -6
- data/generated/google/apis/monitoring_v1.rb +0 -33
- data/generated/google/apis/monitoring_v1/classes.rb +0 -474
- data/generated/google/apis/monitoring_v1/representations.rb +0 -195
- data/generated/google/apis/monitoring_v1/service.rb +0 -211
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
# Copyright 2015 Google Inc.
|
|
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 MonitoringV1
|
|
24
|
-
|
|
25
|
-
class CancelOperationRequest
|
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
-
|
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
class DroppedLabels
|
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
-
|
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
class Empty
|
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
-
|
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
class Field
|
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
-
|
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
class ListOperationsResponse
|
|
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 Option
|
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
-
|
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
class SourceContext
|
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
-
|
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
class SpanContext
|
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
-
|
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
class Status
|
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
-
|
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
class Type
|
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
-
|
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
class CancelOperationRequest
|
|
92
|
-
# @private
|
|
93
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
class DroppedLabels
|
|
98
|
-
# @private
|
|
99
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
100
|
-
hash :label, as: 'label'
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
class Empty
|
|
105
|
-
# @private
|
|
106
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
class Field
|
|
111
|
-
# @private
|
|
112
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
113
|
-
property :cardinality, as: 'cardinality'
|
|
114
|
-
property :default_value, as: 'defaultValue'
|
|
115
|
-
property :json_name, as: 'jsonName'
|
|
116
|
-
property :kind, as: 'kind'
|
|
117
|
-
property :name, as: 'name'
|
|
118
|
-
property :number, as: 'number'
|
|
119
|
-
property :oneof_index, as: 'oneofIndex'
|
|
120
|
-
collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation
|
|
121
|
-
|
|
122
|
-
property :packed, as: 'packed'
|
|
123
|
-
property :type_url, as: 'typeUrl'
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
class ListOperationsResponse
|
|
128
|
-
# @private
|
|
129
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
130
|
-
property :next_page_token, as: 'nextPageToken'
|
|
131
|
-
collection :operations, as: 'operations', class: Google::Apis::MonitoringV1::Operation, decorator: Google::Apis::MonitoringV1::Operation::Representation
|
|
132
|
-
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
class Operation
|
|
137
|
-
# @private
|
|
138
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
139
|
-
property :done, as: 'done'
|
|
140
|
-
property :error, as: 'error', class: Google::Apis::MonitoringV1::Status, decorator: Google::Apis::MonitoringV1::Status::Representation
|
|
141
|
-
|
|
142
|
-
hash :metadata, as: 'metadata'
|
|
143
|
-
property :name, as: 'name'
|
|
144
|
-
hash :response, as: 'response'
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
class Option
|
|
149
|
-
# @private
|
|
150
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
151
|
-
property :name, as: 'name'
|
|
152
|
-
hash :value, as: 'value'
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
class SourceContext
|
|
157
|
-
# @private
|
|
158
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
159
|
-
property :file_name, as: 'fileName'
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
class SpanContext
|
|
164
|
-
# @private
|
|
165
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
166
|
-
property :span_name, as: 'spanName'
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
class Status
|
|
171
|
-
# @private
|
|
172
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
173
|
-
property :code, as: 'code'
|
|
174
|
-
collection :details, as: 'details'
|
|
175
|
-
property :message, as: 'message'
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
class Type
|
|
180
|
-
# @private
|
|
181
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
182
|
-
collection :fields, as: 'fields', class: Google::Apis::MonitoringV1::Field, decorator: Google::Apis::MonitoringV1::Field::Representation
|
|
183
|
-
|
|
184
|
-
property :name, as: 'name'
|
|
185
|
-
collection :oneofs, as: 'oneofs'
|
|
186
|
-
collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation
|
|
187
|
-
|
|
188
|
-
property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV1::SourceContext, decorator: Google::Apis::MonitoringV1::SourceContext::Representation
|
|
189
|
-
|
|
190
|
-
property :syntax, as: 'syntax'
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
end
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
# Copyright 2015 Google Inc.
|
|
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 MonitoringV1
|
|
23
|
-
# Stackdriver Monitoring API
|
|
24
|
-
#
|
|
25
|
-
# Manages your Stackdriver Monitoring data and configurations. Most projects
|
|
26
|
-
# must be associated with a Stackdriver account, with a few exceptions as noted
|
|
27
|
-
# on the individual method pages.
|
|
28
|
-
#
|
|
29
|
-
# @example
|
|
30
|
-
# require 'google/apis/monitoring_v1'
|
|
31
|
-
#
|
|
32
|
-
# Monitoring = Google::Apis::MonitoringV1 # Alias the module
|
|
33
|
-
# service = Monitoring::MonitoringService.new
|
|
34
|
-
#
|
|
35
|
-
# @see https://cloud.google.com/monitoring/api/
|
|
36
|
-
class MonitoringService < Google::Apis::Core::BaseService
|
|
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('https://monitoring.googleapis.com/', '')
|
|
49
|
-
@batch_path = 'batch'
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
53
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
54
|
-
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
55
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
56
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
57
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
58
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
|
59
|
-
# corresponding to Code.CANCELLED.
|
|
60
|
-
# @param [String] name
|
|
61
|
-
# The name of the operation resource to be cancelled.
|
|
62
|
-
# @param [Google::Apis::MonitoringV1::CancelOperationRequest] cancel_operation_request_object
|
|
63
|
-
# @param [String] fields
|
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
|
65
|
-
# @param [String] quota_user
|
|
66
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
67
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
68
|
-
# @param [Google::Apis::RequestOptions] options
|
|
69
|
-
# Request-specific options
|
|
70
|
-
#
|
|
71
|
-
# @yield [result, err] Result & error if block supplied
|
|
72
|
-
# @yieldparam result [Google::Apis::MonitoringV1::Empty] parsed result object
|
|
73
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
74
|
-
#
|
|
75
|
-
# @return [Google::Apis::MonitoringV1::Empty]
|
|
76
|
-
#
|
|
77
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
78
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
|
-
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
81
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
82
|
-
command.request_representation = Google::Apis::MonitoringV1::CancelOperationRequest::Representation
|
|
83
|
-
command.request_object = cancel_operation_request_object
|
|
84
|
-
command.response_representation = Google::Apis::MonitoringV1::Empty::Representation
|
|
85
|
-
command.response_class = Google::Apis::MonitoringV1::Empty
|
|
86
|
-
command.params['name'] = name unless name.nil?
|
|
87
|
-
command.query['fields'] = fields unless fields.nil?
|
|
88
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
89
|
-
execute_or_queue_command(command, &block)
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
|
93
|
-
# longer interested in the operation result. It does not cancel the operation.
|
|
94
|
-
# If the server doesn't support this method, it returns google.rpc.Code.
|
|
95
|
-
# UNIMPLEMENTED.
|
|
96
|
-
# @param [String] name
|
|
97
|
-
# The name of the operation resource to be deleted.
|
|
98
|
-
# @param [String] fields
|
|
99
|
-
# Selector specifying which fields to include in a partial response.
|
|
100
|
-
# @param [String] quota_user
|
|
101
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
102
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
103
|
-
# @param [Google::Apis::RequestOptions] options
|
|
104
|
-
# Request-specific options
|
|
105
|
-
#
|
|
106
|
-
# @yield [result, err] Result & error if block supplied
|
|
107
|
-
# @yieldparam result [Google::Apis::MonitoringV1::Empty] parsed result object
|
|
108
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
109
|
-
#
|
|
110
|
-
# @return [Google::Apis::MonitoringV1::Empty]
|
|
111
|
-
#
|
|
112
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
113
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
114
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
115
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
116
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
117
|
-
command.response_representation = Google::Apis::MonitoringV1::Empty::Representation
|
|
118
|
-
command.response_class = Google::Apis::MonitoringV1::Empty
|
|
119
|
-
command.params['name'] = name unless name.nil?
|
|
120
|
-
command.query['fields'] = fields unless fields.nil?
|
|
121
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
-
execute_or_queue_command(command, &block)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
|
126
|
-
# to poll the operation result at intervals as recommended by the API service.
|
|
127
|
-
# @param [String] name
|
|
128
|
-
# The name of the operation resource.
|
|
129
|
-
# @param [String] fields
|
|
130
|
-
# Selector specifying which fields to include in a partial response.
|
|
131
|
-
# @param [String] quota_user
|
|
132
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
133
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
134
|
-
# @param [Google::Apis::RequestOptions] options
|
|
135
|
-
# Request-specific options
|
|
136
|
-
#
|
|
137
|
-
# @yield [result, err] Result & error if block supplied
|
|
138
|
-
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
|
139
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
140
|
-
#
|
|
141
|
-
# @return [Google::Apis::MonitoringV1::Operation]
|
|
142
|
-
#
|
|
143
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
-
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
147
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
148
|
-
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
|
149
|
-
command.response_class = Google::Apis::MonitoringV1::Operation
|
|
150
|
-
command.params['name'] = name unless name.nil?
|
|
151
|
-
command.query['fields'] = fields unless fields.nil?
|
|
152
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
153
|
-
execute_or_queue_command(command, &block)
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
# Lists operations that match the specified filter in the request. If the server
|
|
157
|
-
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
|
158
|
-
# allows API services to override the binding to use different resource name
|
|
159
|
-
# schemes, such as users/*/operations. To override the binding, API services can
|
|
160
|
-
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
|
161
|
-
# configuration. For backwards compatibility, the default name includes the
|
|
162
|
-
# operations collection id, however overriding users must ensure the name
|
|
163
|
-
# binding is the parent resource, without the operations collection id.
|
|
164
|
-
# @param [String] name
|
|
165
|
-
# The name of the operation's parent resource.
|
|
166
|
-
# @param [String] filter
|
|
167
|
-
# The standard list filter.
|
|
168
|
-
# @param [Fixnum] page_size
|
|
169
|
-
# The standard list page size.
|
|
170
|
-
# @param [String] page_token
|
|
171
|
-
# The standard list page token.
|
|
172
|
-
# @param [String] fields
|
|
173
|
-
# Selector specifying which fields to include in a partial response.
|
|
174
|
-
# @param [String] quota_user
|
|
175
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
176
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
177
|
-
# @param [Google::Apis::RequestOptions] options
|
|
178
|
-
# Request-specific options
|
|
179
|
-
#
|
|
180
|
-
# @yield [result, err] Result & error if block supplied
|
|
181
|
-
# @yieldparam result [Google::Apis::MonitoringV1::ListOperationsResponse] parsed result object
|
|
182
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
183
|
-
#
|
|
184
|
-
# @return [Google::Apis::MonitoringV1::ListOperationsResponse]
|
|
185
|
-
#
|
|
186
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
187
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
|
-
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
190
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
191
|
-
command.response_representation = Google::Apis::MonitoringV1::ListOperationsResponse::Representation
|
|
192
|
-
command.response_class = Google::Apis::MonitoringV1::ListOperationsResponse
|
|
193
|
-
command.params['name'] = name unless name.nil?
|
|
194
|
-
command.query['filter'] = filter unless filter.nil?
|
|
195
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
196
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
197
|
-
command.query['fields'] = fields unless fields.nil?
|
|
198
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
199
|
-
execute_or_queue_command(command, &block)
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
protected
|
|
203
|
-
|
|
204
|
-
def apply_command_defaults(command)
|
|
205
|
-
command.query['key'] = key unless key.nil?
|
|
206
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
|
-
end
|