google-api-client 0.33.0 → 0.33.1

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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1/classes.rb +19 -0
  5. data/generated/google/apis/accessapproval_v1beta1/representations.rb +12 -0
  6. data/generated/google/apis/accessapproval_v1beta1/service.rb +105 -0
  7. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  10. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  13. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
  14. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  17. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  18. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  19. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -1
  20. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  21. data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
  22. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
  24. data/generated/google/apis/cloudasset_v1.rb +1 -1
  25. data/generated/google/apis/cloudasset_v1/classes.rb +14 -15
  26. data/generated/google/apis/cloudasset_v1/service.rb +1 -2
  27. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  28. data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
  29. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  30. data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
  31. data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
  32. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  33. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +11 -8
  34. data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
  35. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  36. data/generated/google/apis/cloudsearch_v1/classes.rb +5 -2
  37. data/generated/google/apis/cloudsearch_v1/service.rb +5 -2
  38. data/generated/google/apis/cloudshell_v1.rb +1 -1
  39. data/generated/google/apis/cloudshell_v1/classes.rb +15 -0
  40. data/generated/google/apis/cloudshell_v1/representations.rb +2 -0
  41. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  42. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +15 -0
  43. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +2 -0
  44. data/generated/google/apis/compute_alpha.rb +1 -1
  45. data/generated/google/apis/compute_alpha/classes.rb +481 -126
  46. data/generated/google/apis/compute_alpha/representations.rb +107 -2
  47. data/generated/google/apis/compute_alpha/service.rb +1035 -640
  48. data/generated/google/apis/compute_beta.rb +1 -1
  49. data/generated/google/apis/compute_beta/classes.rb +986 -241
  50. data/generated/google/apis/compute_beta/representations.rb +284 -0
  51. data/generated/google/apis/compute_beta/service.rb +1242 -532
  52. data/generated/google/apis/compute_v1.rb +1 -1
  53. data/generated/google/apis/compute_v1/classes.rb +252 -99
  54. data/generated/google/apis/compute_v1/representations.rb +24 -0
  55. data/generated/google/apis/compute_v1/service.rb +749 -472
  56. data/generated/google/apis/docs_v1.rb +1 -1
  57. data/generated/google/apis/docs_v1/classes.rb +63 -0
  58. data/generated/google/apis/docs_v1/representations.rb +17 -0
  59. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  60. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  61. data/generated/google/apis/healthcare_v1beta1/classes.rb +203 -8
  62. data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
  63. data/generated/google/apis/healthcare_v1beta1/service.rb +100 -3
  64. data/generated/google/apis/iam_v1.rb +1 -1
  65. data/generated/google/apis/iam_v1/classes.rb +1 -1
  66. data/generated/google/apis/iap_v1.rb +1 -1
  67. data/generated/google/apis/iap_v1/classes.rb +185 -0
  68. data/generated/google/apis/iap_v1/representations.rb +102 -0
  69. data/generated/google/apis/iap_v1/service.rb +72 -0
  70. data/generated/google/apis/{speech_v2beta.rb → lifesciences_v2beta.rb} +9 -8
  71. data/generated/google/apis/lifesciences_v2beta/classes.rb +1328 -0
  72. data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
  73. data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
  74. data/generated/google/apis/monitoring_v1.rb +36 -0
  75. data/generated/google/apis/monitoring_v1/classes.rb +260 -0
  76. data/generated/google/apis/monitoring_v1/representations.rb +123 -0
  77. data/generated/google/apis/monitoring_v1/service.rb +64 -0
  78. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  79. data/generated/google/apis/run_v1.rb +1 -1
  80. data/generated/google/apis/run_v1/classes.rb +0 -7
  81. data/generated/google/apis/run_v1/service.rb +156 -94
  82. data/generated/google/apis/sql_v1beta4.rb +37 -0
  83. data/generated/google/apis/sql_v1beta4/classes.rb +2689 -0
  84. data/generated/google/apis/sql_v1beta4/representations.rb +1099 -0
  85. data/generated/google/apis/sql_v1beta4/service.rb +1660 -0
  86. data/generated/google/apis/testing_v1.rb +1 -1
  87. data/generated/google/apis/testing_v1/classes.rb +1 -1
  88. data/generated/google/apis/vision_v1.rb +1 -1
  89. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  90. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  91. data/lib/google/apis/version.rb +1 -1
  92. metadata +14 -6
  93. data/generated/google/apis/speech_v2beta/classes.rb +0 -355
  94. data/generated/google/apis/speech_v2beta/representations.rb +0 -152
  95. data/generated/google/apis/speech_v2beta/service.rb +0 -138
@@ -0,0 +1,303 @@
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 LifesciencesV2beta
23
+ # Cloud Life Sciences API
24
+ #
25
+ # Cloud Life Sciences is a suite of services and tools for managing, processing,
26
+ # and transforming life sciences data.
27
+ #
28
+ # @example
29
+ # require 'google/apis/lifesciences_v2beta'
30
+ #
31
+ # Lifesciences = Google::Apis::LifesciencesV2beta # Alias the module
32
+ # service = Lifesciences::CloudLifeSciencesService.new
33
+ #
34
+ # @see https://cloud.google.com/life-sciences
35
+ class CloudLifeSciencesService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://lifesciences.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::LifesciencesV2beta::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::LifesciencesV2beta::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v2beta/{+name}', options)
73
+ command.response_representation = Google::Apis::LifesciencesV2beta::Location::Representation
74
+ command.response_class = Google::Apis::LifesciencesV2beta::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
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::LifesciencesV2beta::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::LifesciencesV2beta::ListLocationsResponse]
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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v2beta/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::LifesciencesV2beta::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::LifesciencesV2beta::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Starts asynchronous cancellation on a long-running operation.
121
+ # The server makes a best effort to cancel the operation, but success is not
122
+ # guaranteed. Clients may use Operations.GetOperation
123
+ # or Operations.ListOperations
124
+ # to check whether the cancellation succeeded or the operation completed
125
+ # despite cancellation.
126
+ # Authorization requires the following [Google IAM](https://cloud.google.com/iam)
127
+ # permission&#58;
128
+ # * `lifesciences.operations.cancel`
129
+ # @param [String] name
130
+ # The name of the operation resource to be cancelled.
131
+ # @param [Google::Apis::LifesciencesV2beta::CancelOperationRequest] cancel_operation_request_object
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::LifesciencesV2beta::Empty] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::LifesciencesV2beta::Empty]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:post, 'v2beta/{+name}:cancel', options)
151
+ command.request_representation = Google::Apis::LifesciencesV2beta::CancelOperationRequest::Representation
152
+ command.request_object = cancel_operation_request_object
153
+ command.response_representation = Google::Apis::LifesciencesV2beta::Empty::Representation
154
+ command.response_class = Google::Apis::LifesciencesV2beta::Empty
155
+ command.params['name'] = name unless name.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Gets the latest state of a long-running operation.
162
+ # Clients can use this method to poll the operation result at intervals as
163
+ # recommended by the API service.
164
+ # Authorization requires the following [Google IAM](https://cloud.google.com/iam)
165
+ # permission&#58;
166
+ # * `lifesciences.operations.get`
167
+ # @param [String] name
168
+ # The name of the operation resource.
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
171
+ # @param [String] quota_user
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::LifesciencesV2beta::Operation] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::LifesciencesV2beta::Operation]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
187
+ command = make_simple_command(:get, 'v2beta/{+name}', options)
188
+ command.response_representation = Google::Apis::LifesciencesV2beta::Operation::Representation
189
+ command.response_class = Google::Apis::LifesciencesV2beta::Operation
190
+ command.params['name'] = name unless name.nil?
191
+ command.query['fields'] = fields unless fields.nil?
192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
193
+ execute_or_queue_command(command, &block)
194
+ end
195
+
196
+ # Lists operations that match the specified filter in the request.
197
+ # Authorization requires the following [Google IAM](https://cloud.google.com/iam)
198
+ # permission&#58;
199
+ # * `lifesciences.operations.list`
200
+ # @param [String] name
201
+ # The name of the operation's parent resource.
202
+ # @param [String] filter
203
+ # A string for filtering Operations.
204
+ # The following filter fields are supported&#58;
205
+ # * createTime&#58; The time this job was created
206
+ # * events&#58; The set of event (names) that have occurred while running
207
+ # the pipeline. The &#58; operator can be used to determine if a
208
+ # particular event has occurred.
209
+ # * error&#58; If the pipeline is running, this value is NULL. Once the
210
+ # pipeline finishes, the value is the standard Google error code.
211
+ # * labels.key or labels."key with space" where key is a label key.
212
+ # * done&#58; If the pipeline is running, this value is false. Once the
213
+ # pipeline finishes, the value is true.
214
+ # @param [Fixnum] page_size
215
+ # The maximum number of results to return. The maximum value is 256.
216
+ # @param [String] page_token
217
+ # The standard list page token.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::LifesciencesV2beta::ListOperationsResponse] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::LifesciencesV2beta::ListOperationsResponse]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
237
+ command.response_representation = Google::Apis::LifesciencesV2beta::ListOperationsResponse::Representation
238
+ command.response_class = Google::Apis::LifesciencesV2beta::ListOperationsResponse
239
+ command.params['name'] = name unless name.nil?
240
+ command.query['filter'] = filter unless filter.nil?
241
+ command.query['pageSize'] = page_size unless page_size.nil?
242
+ command.query['pageToken'] = page_token unless page_token.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
248
+ # Runs a pipeline. The returned Operation's metadata field will contain a
249
+ # google.cloud.lifesciences.v2beta.Metadata object describing the status
250
+ # of the pipeline execution. The
251
+ # response field will contain a
252
+ # google.cloud.lifesciences.v2beta.RunPipelineResponse object if the
253
+ # pipeline completes successfully.
254
+ # **Note:** Before you can use this method, the *Life Sciences Service Agent*
255
+ # must have access to your project. This is done automatically when the
256
+ # Cloud Life Sciences API is first enabled, but if you delete this permission
257
+ # you must disable and re-enable the API to grant the Life Sciences
258
+ # Service Agent the required permissions.
259
+ # Authorization requires the following [Google
260
+ # IAM](https://cloud.google.com/iam/) permission:
261
+ # * `lifesciences.workflows.run`
262
+ # @param [String] parent
263
+ # The project and location that this request should be executed against.
264
+ # @param [Google::Apis::LifesciencesV2beta::RunPipelineRequest] run_pipeline_request_object
265
+ # @param [String] fields
266
+ # Selector specifying which fields to include in a partial response.
267
+ # @param [String] quota_user
268
+ # Available to use for quota purposes for server-side applications. Can be any
269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::LifesciencesV2beta::Operation] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::LifesciencesV2beta::Operation]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def run_pipeline(parent, run_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
283
+ command = make_simple_command(:post, 'v2beta/{+parent}/pipelines:run', options)
284
+ command.request_representation = Google::Apis::LifesciencesV2beta::RunPipelineRequest::Representation
285
+ command.request_object = run_pipeline_request_object
286
+ command.response_representation = Google::Apis::LifesciencesV2beta::Operation::Representation
287
+ command.response_class = Google::Apis::LifesciencesV2beta::Operation
288
+ command.params['parent'] = parent unless parent.nil?
289
+ command.query['fields'] = fields unless fields.nil?
290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
291
+ execute_or_queue_command(command, &block)
292
+ end
293
+
294
+ protected
295
+
296
+ def apply_command_defaults(command)
297
+ command.query['key'] = key unless key.nil?
298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
299
+ end
300
+ end
301
+ end
302
+ end
303
+ end
@@ -0,0 +1,36 @@
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/monitoring_v1/service.rb'
16
+ require 'google/apis/monitoring_v1/classes.rb'
17
+ require 'google/apis/monitoring_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Stackdriver Monitoring API
22
+ #
23
+ # Manages your Stackdriver Monitoring data and configurations. Most projects
24
+ # must be associated with a Stackdriver account, with a few exceptions as noted
25
+ # on the individual method pages. The table entries below are presented in
26
+ # alphabetical order, not in order of common use. For explanations of the
27
+ # concepts found in the table entries, read the Stackdriver Monitoring
28
+ # documentation.
29
+ #
30
+ # @see https://cloud.google.com/monitoring/api/
31
+ module MonitoringV1
32
+ VERSION = 'V1'
33
+ REVISION = '20191005'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,260 @@
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
+ # A set of (label, value) pairs which were dropped during aggregation, attached
26
+ # to google.api.Distribution.Exemplars in google.api.Distribution values during
27
+ # aggregation.These values are used in combination with the label values that
28
+ # remain on the aggregated Distribution timeseries to construct the full label
29
+ # set for the exemplar values. The resulting full label set may be used to
30
+ # identify the specific task/job/instance (for example) which may be
31
+ # contributing to a long-tail, while allowing the storage savings of only
32
+ # storing aggregated distribution values for a large group.Note that there are
33
+ # no guarantees on ordering of the labels from exemplar-to-exemplar and from
34
+ # distribution-to-distribution in the same stream, and there may be duplicates.
35
+ # It is up to clients to resolve any ambiguities.
36
+ class DroppedLabels
37
+ include Google::Apis::Core::Hashable
38
+
39
+ # Map from label to its value, for all labels dropped in any aggregation.
40
+ # Corresponds to the JSON property `label`
41
+ # @return [Hash<String,String>]
42
+ attr_accessor :label
43
+
44
+ def initialize(**args)
45
+ update!(**args)
46
+ end
47
+
48
+ # Update properties of this object
49
+ def update!(**args)
50
+ @label = args[:label] if args.key?(:label)
51
+ end
52
+ end
53
+
54
+ # A single field of a message type.
55
+ class Field
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # The field cardinality.
59
+ # Corresponds to the JSON property `cardinality`
60
+ # @return [String]
61
+ attr_accessor :cardinality
62
+
63
+ # The string value of the default value of this field. Proto2 syntax only.
64
+ # Corresponds to the JSON property `defaultValue`
65
+ # @return [String]
66
+ attr_accessor :default_value
67
+
68
+ # The field JSON name.
69
+ # Corresponds to the JSON property `jsonName`
70
+ # @return [String]
71
+ attr_accessor :json_name
72
+
73
+ # The field type.
74
+ # Corresponds to the JSON property `kind`
75
+ # @return [String]
76
+ attr_accessor :kind
77
+
78
+ # The field name.
79
+ # Corresponds to the JSON property `name`
80
+ # @return [String]
81
+ attr_accessor :name
82
+
83
+ # The field number.
84
+ # Corresponds to the JSON property `number`
85
+ # @return [Fixnum]
86
+ attr_accessor :number
87
+
88
+ # The index of the field type in Type.oneofs, for message or enumeration types.
89
+ # The first type has index 1; zero means the type is not in the list.
90
+ # Corresponds to the JSON property `oneofIndex`
91
+ # @return [Fixnum]
92
+ attr_accessor :oneof_index
93
+
94
+ # The protocol buffer options.
95
+ # Corresponds to the JSON property `options`
96
+ # @return [Array<Google::Apis::MonitoringV1::Option>]
97
+ attr_accessor :options
98
+
99
+ # Whether to use alternative packed wire representation.
100
+ # Corresponds to the JSON property `packed`
101
+ # @return [Boolean]
102
+ attr_accessor :packed
103
+ alias_method :packed?, :packed
104
+
105
+ # The field type URL, without the scheme, for message or enumeration types.
106
+ # Example: "type.googleapis.com/google.protobuf.Timestamp".
107
+ # Corresponds to the JSON property `typeUrl`
108
+ # @return [String]
109
+ attr_accessor :type_url
110
+
111
+ def initialize(**args)
112
+ update!(**args)
113
+ end
114
+
115
+ # Update properties of this object
116
+ def update!(**args)
117
+ @cardinality = args[:cardinality] if args.key?(:cardinality)
118
+ @default_value = args[:default_value] if args.key?(:default_value)
119
+ @json_name = args[:json_name] if args.key?(:json_name)
120
+ @kind = args[:kind] if args.key?(:kind)
121
+ @name = args[:name] if args.key?(:name)
122
+ @number = args[:number] if args.key?(:number)
123
+ @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
124
+ @options = args[:options] if args.key?(:options)
125
+ @packed = args[:packed] if args.key?(:packed)
126
+ @type_url = args[:type_url] if args.key?(:type_url)
127
+ end
128
+ end
129
+
130
+ # A protocol buffer option, which can be attached to a message, field,
131
+ # enumeration, etc.
132
+ class Option
133
+ include Google::Apis::Core::Hashable
134
+
135
+ # The option's name. For protobuf built-in options (options defined in
136
+ # descriptor.proto), this is the short name. For example, "map_entry". For
137
+ # custom options, it should be the fully-qualified name. For example, "google.
138
+ # api.http".
139
+ # Corresponds to the JSON property `name`
140
+ # @return [String]
141
+ attr_accessor :name
142
+
143
+ # The option's value packed in an Any message. If the value is a primitive, the
144
+ # corresponding wrapper type defined in google/protobuf/wrappers.proto should be
145
+ # used. If the value is an enum, it should be stored as an int32 value using the
146
+ # google.protobuf.Int32Value type.
147
+ # Corresponds to the JSON property `value`
148
+ # @return [Hash<String,Object>]
149
+ attr_accessor :value
150
+
151
+ def initialize(**args)
152
+ update!(**args)
153
+ end
154
+
155
+ # Update properties of this object
156
+ def update!(**args)
157
+ @name = args[:name] if args.key?(:name)
158
+ @value = args[:value] if args.key?(:value)
159
+ end
160
+ end
161
+
162
+ # SourceContext represents information about the source of a protobuf element,
163
+ # like the file in which it is defined.
164
+ class SourceContext
165
+ include Google::Apis::Core::Hashable
166
+
167
+ # The path-qualified name of the .proto file that contained the associated
168
+ # protobuf element. For example: "google/protobuf/source_context.proto".
169
+ # Corresponds to the JSON property `fileName`
170
+ # @return [String]
171
+ attr_accessor :file_name
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @file_name = args[:file_name] if args.key?(:file_name)
180
+ end
181
+ end
182
+
183
+ # The context of a span, attached to google.api.Distribution.Exemplars in google.
184
+ # api.Distribution values during aggregation.It contains the name of a span with
185
+ # format: projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID
186
+ class SpanContext
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # The resource name of the span in the following format:
190
+ # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
191
+ # TRACE_ID is a unique identifier for a trace within a project; it is a 32-
192
+ # character hexadecimal encoding of a 16-byte array.SPAN_ID is a unique
193
+ # identifier for a span within a trace; it is a 16-character hexadecimal
194
+ # encoding of an 8-byte array.
195
+ # Corresponds to the JSON property `spanName`
196
+ # @return [String]
197
+ attr_accessor :span_name
198
+
199
+ def initialize(**args)
200
+ update!(**args)
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update!(**args)
205
+ @span_name = args[:span_name] if args.key?(:span_name)
206
+ end
207
+ end
208
+
209
+ # A protocol buffer message type.
210
+ class Type
211
+ include Google::Apis::Core::Hashable
212
+
213
+ # The list of fields.
214
+ # Corresponds to the JSON property `fields`
215
+ # @return [Array<Google::Apis::MonitoringV1::Field>]
216
+ attr_accessor :fields
217
+
218
+ # The fully qualified message name.
219
+ # Corresponds to the JSON property `name`
220
+ # @return [String]
221
+ attr_accessor :name
222
+
223
+ # The list of types appearing in oneof definitions in this type.
224
+ # Corresponds to the JSON property `oneofs`
225
+ # @return [Array<String>]
226
+ attr_accessor :oneofs
227
+
228
+ # The protocol buffer options.
229
+ # Corresponds to the JSON property `options`
230
+ # @return [Array<Google::Apis::MonitoringV1::Option>]
231
+ attr_accessor :options
232
+
233
+ # SourceContext represents information about the source of a protobuf element,
234
+ # like the file in which it is defined.
235
+ # Corresponds to the JSON property `sourceContext`
236
+ # @return [Google::Apis::MonitoringV1::SourceContext]
237
+ attr_accessor :source_context
238
+
239
+ # The source syntax.
240
+ # Corresponds to the JSON property `syntax`
241
+ # @return [String]
242
+ attr_accessor :syntax
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @fields = args[:fields] if args.key?(:fields)
251
+ @name = args[:name] if args.key?(:name)
252
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
253
+ @options = args[:options] if args.key?(:options)
254
+ @source_context = args[:source_context] if args.key?(:source_context)
255
+ @syntax = args[:syntax] if args.key?(:syntax)
256
+ end
257
+ end
258
+ end
259
+ end
260
+ end