google-api-client 0.21.2 → 0.22.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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +181 -0
  7. data/generated/google/apis/androidmanagement_v1/representations.rb +59 -0
  8. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  9. data/generated/google/apis/androidpublisher_v3/service.rb +42 -0
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +31 -0
  12. data/generated/google/apis/bigquery_v2/representations.rb +16 -0
  13. data/generated/google/apis/bigquery_v2/service.rb +6 -3
  14. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  15. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -5
  16. data/generated/google/apis/cloudiot_v1.rb +1 -1
  17. data/generated/google/apis/cloudiot_v1/service.rb +0 -56
  18. data/generated/google/apis/cloudkms_v1.rb +1 -1
  19. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  20. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  21. data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -0
  22. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  23. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -0
  24. data/generated/google/apis/container_v1beta1.rb +1 -1
  25. data/generated/google/apis/container_v1beta1/classes.rb +33 -0
  26. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  27. data/generated/google/apis/content_v2.rb +1 -1
  28. data/generated/google/apis/content_v2/classes.rb +2 -2
  29. data/generated/google/apis/content_v2sandbox.rb +1 -1
  30. data/generated/google/apis/content_v2sandbox/classes.rb +2 -2
  31. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  32. data/generated/google/apis/dataproc_v1beta2/classes.rb +146 -0
  33. data/generated/google/apis/dataproc_v1beta2/representations.rb +62 -0
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +19 -9
  36. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  37. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +6 -0
  38. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  39. data/generated/google/apis/ml_v1.rb +1 -1
  40. data/generated/google/apis/ml_v1/classes.rb +27 -15
  41. data/generated/google/apis/monitoring_v3.rb +1 -1
  42. data/generated/google/apis/monitoring_v3/classes.rb +48 -0
  43. data/generated/google/apis/monitoring_v3/representations.rb +17 -0
  44. data/generated/google/apis/people_v1.rb +1 -1
  45. data/generated/google/apis/people_v1/classes.rb +76 -28
  46. data/generated/google/apis/people_v1/representations.rb +19 -0
  47. data/generated/google/apis/people_v1/service.rb +4 -0
  48. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  49. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +2 -1
  50. data/generated/google/apis/pubsub_v1.rb +1 -1
  51. data/generated/google/apis/pubsub_v1/classes.rb +45 -12
  52. data/generated/google/apis/pubsub_v1/service.rb +41 -20
  53. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  54. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +8 -0
  55. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +1 -0
  56. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  57. data/generated/google/apis/servicebroker_v1beta1/classes.rb +41 -0
  58. data/generated/google/apis/servicebroker_v1beta1/representations.rb +5 -0
  59. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  60. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -27
  61. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -15
  62. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  63. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -27
  64. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -15
  65. data/generated/google/apis/sheets_v4.rb +1 -1
  66. data/generated/google/apis/sheets_v4/classes.rb +41 -41
  67. data/generated/google/apis/slides_v1.rb +1 -1
  68. data/generated/google/apis/slides_v1/classes.rb +4 -2
  69. data/generated/google/apis/storage_v1.rb +1 -1
  70. data/generated/google/apis/storage_v1/classes.rb +44 -38
  71. data/generated/google/apis/storage_v1/service.rb +10 -2
  72. data/generated/google/apis/testing_v1.rb +1 -1
  73. data/generated/google/apis/testing_v1/classes.rb +26 -0
  74. data/generated/google/apis/testing_v1/representations.rb +15 -0
  75. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  76. data/lib/google/apis/version.rb +1 -1
  77. metadata +2 -10
  78. data/generated/google/apis/resourceviews_v1beta1.rb +0 -50
  79. data/generated/google/apis/resourceviews_v1beta1/classes.rb +0 -338
  80. data/generated/google/apis/resourceviews_v1beta1/representations.rb +0 -201
  81. data/generated/google/apis/resourceviews_v1beta1/service.rb +0 -637
  82. data/generated/google/apis/resourceviews_v1beta2.rb +0 -50
  83. data/generated/google/apis/resourceviews_v1beta2/classes.rb +0 -660
  84. data/generated/google/apis/resourceviews_v1beta2/representations.rb +0 -301
  85. data/generated/google/apis/resourceviews_v1beta2/service.rb +0 -540
@@ -1,301 +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 ResourceviewsV1beta2
24
-
25
- class Label
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ListResourceResponseItem
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class Operation
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- class Error
41
- class Representation < Google::Apis::Core::JsonRepresentation; end
42
-
43
- class Error
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- include Google::Apis::Core::JsonObjectSupport
50
- end
51
-
52
- class Warning
53
- class Representation < Google::Apis::Core::JsonRepresentation; end
54
-
55
- class Datum
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- include Google::Apis::Core::JsonObjectSupport
62
- end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class OperationList
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class ResourceView
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class ServiceEndpoint
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class AddResourcesRequest
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class GetServiceResponse
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class ZoneViewsList
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class ListResourcesResponse
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class RemoveResourcesRequest
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class SetServiceRequest
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class Label
122
- # @private
123
- class Representation < Google::Apis::Core::JsonRepresentation
124
- property :key, as: 'key'
125
- property :value, as: 'value'
126
- end
127
- end
128
-
129
- class ListResourceResponseItem
130
- # @private
131
- class Representation < Google::Apis::Core::JsonRepresentation
132
- hash :endpoints, as: 'endpoints', :class => Array do
133
- include Representable::JSON::Collection
134
- items
135
- end
136
-
137
- property :resource, as: 'resource'
138
- end
139
- end
140
-
141
- class Operation
142
- # @private
143
- class Representation < Google::Apis::Core::JsonRepresentation
144
- property :client_operation_id, as: 'clientOperationId'
145
- property :creation_timestamp, as: 'creationTimestamp'
146
- property :end_time, as: 'endTime'
147
- property :error, as: 'error', class: Google::Apis::ResourceviewsV1beta2::Operation::Error, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Error::Representation
148
-
149
- property :http_error_message, as: 'httpErrorMessage'
150
- property :http_error_status_code, as: 'httpErrorStatusCode'
151
- property :id, :numeric_string => true, as: 'id'
152
- property :insert_time, as: 'insertTime'
153
- property :kind, as: 'kind'
154
- property :name, as: 'name'
155
- property :operation_type, as: 'operationType'
156
- property :progress, as: 'progress'
157
- property :region, as: 'region'
158
- property :self_link, as: 'selfLink'
159
- property :start_time, as: 'startTime'
160
- property :status, as: 'status'
161
- property :status_message, as: 'statusMessage'
162
- property :target_id, :numeric_string => true, as: 'targetId'
163
- property :target_link, as: 'targetLink'
164
- property :user, as: 'user'
165
- collection :warnings, as: 'warnings', class: Google::Apis::ResourceviewsV1beta2::Operation::Warning, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Representation
166
-
167
- property :zone, as: 'zone'
168
- end
169
-
170
- class Error
171
- # @private
172
- class Representation < Google::Apis::Core::JsonRepresentation
173
- collection :errors, as: 'errors', class: Google::Apis::ResourceviewsV1beta2::Operation::Error::Error, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Error::Error::Representation
174
-
175
- end
176
-
177
- class Error
178
- # @private
179
- class Representation < Google::Apis::Core::JsonRepresentation
180
- property :code, as: 'code'
181
- property :location, as: 'location'
182
- property :message, as: 'message'
183
- end
184
- end
185
- end
186
-
187
- class Warning
188
- # @private
189
- class Representation < Google::Apis::Core::JsonRepresentation
190
- property :code, as: 'code'
191
- collection :data, as: 'data', class: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Datum, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Warning::Datum::Representation
192
-
193
- property :message, as: 'message'
194
- end
195
-
196
- class Datum
197
- # @private
198
- class Representation < Google::Apis::Core::JsonRepresentation
199
- property :key, as: 'key'
200
- property :value, as: 'value'
201
- end
202
- end
203
- end
204
- end
205
-
206
- class OperationList
207
- # @private
208
- class Representation < Google::Apis::Core::JsonRepresentation
209
- property :id, as: 'id'
210
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::Operation, decorator: Google::Apis::ResourceviewsV1beta2::Operation::Representation
211
-
212
- property :kind, as: 'kind'
213
- property :next_page_token, as: 'nextPageToken'
214
- property :self_link, as: 'selfLink'
215
- end
216
- end
217
-
218
- class ResourceView
219
- # @private
220
- class Representation < Google::Apis::Core::JsonRepresentation
221
- property :creation_timestamp, as: 'creationTimestamp'
222
- property :description, as: 'description'
223
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
224
-
225
- property :fingerprint, as: 'fingerprint'
226
- property :id, as: 'id'
227
- property :kind, as: 'kind'
228
- collection :labels, as: 'labels', class: Google::Apis::ResourceviewsV1beta2::Label, decorator: Google::Apis::ResourceviewsV1beta2::Label::Representation
229
-
230
- property :name, as: 'name'
231
- property :network, as: 'network'
232
- collection :resources, as: 'resources'
233
- property :self_link, as: 'selfLink'
234
- property :size, as: 'size'
235
- end
236
- end
237
-
238
- class ServiceEndpoint
239
- # @private
240
- class Representation < Google::Apis::Core::JsonRepresentation
241
- property :name, as: 'name'
242
- property :port, as: 'port'
243
- end
244
- end
245
-
246
- class AddResourcesRequest
247
- # @private
248
- class Representation < Google::Apis::Core::JsonRepresentation
249
- collection :resources, as: 'resources'
250
- end
251
- end
252
-
253
- class GetServiceResponse
254
- # @private
255
- class Representation < Google::Apis::Core::JsonRepresentation
256
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
257
-
258
- property :fingerprint, as: 'fingerprint'
259
- end
260
- end
261
-
262
- class ZoneViewsList
263
- # @private
264
- class Representation < Google::Apis::Core::JsonRepresentation
265
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::ResourceView, decorator: Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
266
-
267
- property :kind, as: 'kind'
268
- property :next_page_token, as: 'nextPageToken'
269
- property :self_link, as: 'selfLink'
270
- end
271
- end
272
-
273
- class ListResourcesResponse
274
- # @private
275
- class Representation < Google::Apis::Core::JsonRepresentation
276
- collection :items, as: 'items', class: Google::Apis::ResourceviewsV1beta2::ListResourceResponseItem, decorator: Google::Apis::ResourceviewsV1beta2::ListResourceResponseItem::Representation
277
-
278
- property :network, as: 'network'
279
- property :next_page_token, as: 'nextPageToken'
280
- end
281
- end
282
-
283
- class RemoveResourcesRequest
284
- # @private
285
- class Representation < Google::Apis::Core::JsonRepresentation
286
- collection :resources, as: 'resources'
287
- end
288
- end
289
-
290
- class SetServiceRequest
291
- # @private
292
- class Representation < Google::Apis::Core::JsonRepresentation
293
- collection :endpoints, as: 'endpoints', class: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint, decorator: Google::Apis::ResourceviewsV1beta2::ServiceEndpoint::Representation
294
-
295
- property :fingerprint, as: 'fingerprint'
296
- property :resource_name, as: 'resourceName'
297
- end
298
- end
299
- end
300
- end
301
- end
@@ -1,540 +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 ResourceviewsV1beta2
23
- # Google Compute Engine Instance Groups API
24
- #
25
- # The Resource View API allows users to create and manage logical sets of Google
26
- # Compute Engine instances.
27
- #
28
- # @example
29
- # require 'google/apis/resourceviews_v1beta2'
30
- #
31
- # Resourceviews = Google::Apis::ResourceviewsV1beta2 # Alias the module
32
- # service = Resourceviews::ResourceviewsService.new
33
- #
34
- # @see https://developers.google.com/compute/
35
- class ResourceviewsService < 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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
43
- # characters.
44
- attr_accessor :quota_user
45
-
46
- # @return [String]
47
- # Deprecated. Please use quotaUser instead.
48
- attr_accessor :user_ip
49
-
50
- def initialize
51
- super('https://www.googleapis.com/', 'resourceviews/v1beta2/projects/')
52
- @batch_path = 'batch/resourceviews/v1beta2'
53
- end
54
-
55
- # Retrieves the specified zone-specific operation resource.
56
- # @param [String] project
57
- # Name of the project scoping this request.
58
- # @param [String] zone
59
- # Name of the zone scoping this request.
60
- # @param [String] operation
61
- # Name of the operation resource to return.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # An opaque string that represents a user for quota purposes. Must not exceed 40
66
- # characters.
67
- # @param [String] user_ip
68
- # Deprecated. Please use quotaUser instead.
69
- # @param [Google::Apis::RequestOptions] options
70
- # Request-specific options
71
- #
72
- # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
77
- #
78
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
- # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
83
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
84
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
85
- command.params['project'] = project unless project.nil?
86
- command.params['zone'] = zone unless zone.nil?
87
- command.params['operation'] = operation unless operation.nil?
88
- command.query['fields'] = fields unless fields.nil?
89
- command.query['quotaUser'] = quota_user unless quota_user.nil?
90
- command.query['userIp'] = user_ip unless user_ip.nil?
91
- execute_or_queue_command(command, &block)
92
- end
93
-
94
- # Retrieves the list of operation resources contained within the specified zone.
95
- # @param [String] project
96
- # Name of the project scoping this request.
97
- # @param [String] zone
98
- # Name of the zone scoping this request.
99
- # @param [String] filter
100
- # Optional. Filter expression for filtering listed resources.
101
- # @param [Fixnum] max_results
102
- # Optional. Maximum count of results to be returned. Maximum value is 500 and
103
- # default value is 500.
104
- # @param [String] page_token
105
- # Optional. Tag returned by a previous list request truncated by maxResults.
106
- # Used to continue a previous list request.
107
- # @param [String] fields
108
- # Selector specifying which fields to include in a partial response.
109
- # @param [String] quota_user
110
- # An opaque string that represents a user for quota purposes. Must not exceed 40
111
- # characters.
112
- # @param [String] user_ip
113
- # Deprecated. Please use quotaUser instead.
114
- # @param [Google::Apis::RequestOptions] options
115
- # Request-specific options
116
- #
117
- # @yield [result, err] Result & error if block supplied
118
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::OperationList] parsed result object
119
- # @yieldparam err [StandardError] error object if request failed
120
- #
121
- # @return [Google::Apis::ResourceviewsV1beta2::OperationList]
122
- #
123
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
124
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
125
- # @raise [Google::Apis::AuthorizationError] Authorization is required
126
- def list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
127
- command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
128
- command.response_representation = Google::Apis::ResourceviewsV1beta2::OperationList::Representation
129
- command.response_class = Google::Apis::ResourceviewsV1beta2::OperationList
130
- command.params['project'] = project unless project.nil?
131
- command.params['zone'] = zone unless zone.nil?
132
- command.query['filter'] = filter unless filter.nil?
133
- command.query['maxResults'] = max_results unless max_results.nil?
134
- command.query['pageToken'] = page_token unless page_token.nil?
135
- command.query['fields'] = fields unless fields.nil?
136
- command.query['quotaUser'] = quota_user unless quota_user.nil?
137
- command.query['userIp'] = user_ip unless user_ip.nil?
138
- execute_or_queue_command(command, &block)
139
- end
140
-
141
- # Add resources to the view.
142
- # @param [String] project
143
- # The project name of the resource view.
144
- # @param [String] zone
145
- # The zone name of the resource view.
146
- # @param [String] resource_view
147
- # The name of the resource view.
148
- # @param [Google::Apis::ResourceviewsV1beta2::AddResourcesRequest] add_resources_request_object
149
- # @param [String] fields
150
- # Selector specifying which fields to include in a partial response.
151
- # @param [String] quota_user
152
- # An opaque string that represents a user for quota purposes. Must not exceed 40
153
- # characters.
154
- # @param [String] user_ip
155
- # Deprecated. Please use quotaUser instead.
156
- # @param [Google::Apis::RequestOptions] options
157
- # Request-specific options
158
- #
159
- # @yield [result, err] Result & error if block supplied
160
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
161
- # @yieldparam err [StandardError] error object if request failed
162
- #
163
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
164
- #
165
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
- # @raise [Google::Apis::AuthorizationError] Authorization is required
168
- def add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
169
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', options)
170
- command.request_representation = Google::Apis::ResourceviewsV1beta2::AddResourcesRequest::Representation
171
- command.request_object = add_resources_request_object
172
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
173
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
174
- command.params['project'] = project unless project.nil?
175
- command.params['zone'] = zone unless zone.nil?
176
- command.params['resourceView'] = resource_view unless resource_view.nil?
177
- command.query['fields'] = fields unless fields.nil?
178
- command.query['quotaUser'] = quota_user unless quota_user.nil?
179
- command.query['userIp'] = user_ip unless user_ip.nil?
180
- execute_or_queue_command(command, &block)
181
- end
182
-
183
- # Delete a resource view.
184
- # @param [String] project
185
- # The project name of the resource view.
186
- # @param [String] zone
187
- # The zone name of the resource view.
188
- # @param [String] resource_view
189
- # The name of the resource view.
190
- # @param [String] fields
191
- # Selector specifying which fields to include in a partial response.
192
- # @param [String] quota_user
193
- # An opaque string that represents a user for quota purposes. Must not exceed 40
194
- # characters.
195
- # @param [String] user_ip
196
- # Deprecated. Please use quotaUser instead.
197
- # @param [Google::Apis::RequestOptions] options
198
- # Request-specific options
199
- #
200
- # @yield [result, err] Result & error if block supplied
201
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
202
- # @yieldparam err [StandardError] error object if request failed
203
- #
204
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
205
- #
206
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
- # @raise [Google::Apis::AuthorizationError] Authorization is required
209
- def delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
210
- command = make_simple_command(:delete, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
211
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
212
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
213
- command.params['project'] = project unless project.nil?
214
- command.params['zone'] = zone unless zone.nil?
215
- command.params['resourceView'] = resource_view unless resource_view.nil?
216
- command.query['fields'] = fields unless fields.nil?
217
- command.query['quotaUser'] = quota_user unless quota_user.nil?
218
- command.query['userIp'] = user_ip unless user_ip.nil?
219
- execute_or_queue_command(command, &block)
220
- end
221
-
222
- # Get the information of a zonal resource view.
223
- # @param [String] project
224
- # The project name of the resource view.
225
- # @param [String] zone
226
- # The zone name of the resource view.
227
- # @param [String] resource_view
228
- # The name of the resource view.
229
- # @param [String] fields
230
- # Selector specifying which fields to include in a partial response.
231
- # @param [String] quota_user
232
- # An opaque string that represents a user for quota purposes. Must not exceed 40
233
- # characters.
234
- # @param [String] user_ip
235
- # Deprecated. Please use quotaUser instead.
236
- # @param [Google::Apis::RequestOptions] options
237
- # Request-specific options
238
- #
239
- # @yield [result, err] Result & error if block supplied
240
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::ResourceView] parsed result object
241
- # @yieldparam err [StandardError] error object if request failed
242
- #
243
- # @return [Google::Apis::ResourceviewsV1beta2::ResourceView]
244
- #
245
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
246
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
- # @raise [Google::Apis::AuthorizationError] Authorization is required
248
- def get_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
249
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
250
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
251
- command.response_class = Google::Apis::ResourceviewsV1beta2::ResourceView
252
- command.params['project'] = project unless project.nil?
253
- command.params['zone'] = zone unless zone.nil?
254
- command.params['resourceView'] = resource_view unless resource_view.nil?
255
- command.query['fields'] = fields unless fields.nil?
256
- command.query['quotaUser'] = quota_user unless quota_user.nil?
257
- command.query['userIp'] = user_ip unless user_ip.nil?
258
- execute_or_queue_command(command, &block)
259
- end
260
-
261
- # Get the service information of a resource view or a resource.
262
- # @param [String] project
263
- # The project name of the resource view.
264
- # @param [String] zone
265
- # The zone name of the resource view.
266
- # @param [String] resource_view
267
- # The name of the resource view.
268
- # @param [String] resource_name
269
- # The name of the resource if user wants to get the service information of the
270
- # resource.
271
- # @param [String] fields
272
- # Selector specifying which fields to include in a partial response.
273
- # @param [String] quota_user
274
- # An opaque string that represents a user for quota purposes. Must not exceed 40
275
- # characters.
276
- # @param [String] user_ip
277
- # Deprecated. Please use quotaUser instead.
278
- # @param [Google::Apis::RequestOptions] options
279
- # Request-specific options
280
- #
281
- # @yield [result, err] Result & error if block supplied
282
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::GetServiceResponse] parsed result object
283
- # @yieldparam err [StandardError] error object if request failed
284
- #
285
- # @return [Google::Apis::ResourceviewsV1beta2::GetServiceResponse]
286
- #
287
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
- # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- def get_zone_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
291
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/getService', options)
292
- command.response_representation = Google::Apis::ResourceviewsV1beta2::GetServiceResponse::Representation
293
- command.response_class = Google::Apis::ResourceviewsV1beta2::GetServiceResponse
294
- command.params['project'] = project unless project.nil?
295
- command.params['zone'] = zone unless zone.nil?
296
- command.params['resourceView'] = resource_view unless resource_view.nil?
297
- command.query['resourceName'] = resource_name unless resource_name.nil?
298
- command.query['fields'] = fields unless fields.nil?
299
- command.query['quotaUser'] = quota_user unless quota_user.nil?
300
- command.query['userIp'] = user_ip unless user_ip.nil?
301
- execute_or_queue_command(command, &block)
302
- end
303
-
304
- # Create a resource view.
305
- # @param [String] project
306
- # The project name of the resource view.
307
- # @param [String] zone
308
- # The zone name of the resource view.
309
- # @param [Google::Apis::ResourceviewsV1beta2::ResourceView] resource_view_object
310
- # @param [String] fields
311
- # Selector specifying which fields to include in a partial response.
312
- # @param [String] quota_user
313
- # An opaque string that represents a user for quota purposes. Must not exceed 40
314
- # characters.
315
- # @param [String] user_ip
316
- # Deprecated. Please use quotaUser instead.
317
- # @param [Google::Apis::RequestOptions] options
318
- # Request-specific options
319
- #
320
- # @yield [result, err] Result & error if block supplied
321
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
322
- # @yieldparam err [StandardError] error object if request failed
323
- #
324
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
325
- #
326
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
- # @raise [Google::Apis::AuthorizationError] Authorization is required
329
- def insert_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
330
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews', options)
331
- command.request_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
332
- command.request_object = resource_view_object
333
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
334
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
335
- command.params['project'] = project unless project.nil?
336
- command.params['zone'] = zone unless zone.nil?
337
- command.query['fields'] = fields unless fields.nil?
338
- command.query['quotaUser'] = quota_user unless quota_user.nil?
339
- command.query['userIp'] = user_ip unless user_ip.nil?
340
- execute_or_queue_command(command, &block)
341
- end
342
-
343
- # List resource views.
344
- # @param [String] project
345
- # The project name of the resource view.
346
- # @param [String] zone
347
- # The zone name of the resource view.
348
- # @param [Fixnum] max_results
349
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
350
- # inclusive. (Default: 5000)
351
- # @param [String] page_token
352
- # Specifies a nextPageToken returned by a previous list request. This token can
353
- # be used to request the next page of results from a previous list request.
354
- # @param [String] fields
355
- # Selector specifying which fields to include in a partial response.
356
- # @param [String] quota_user
357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
358
- # characters.
359
- # @param [String] user_ip
360
- # Deprecated. Please use quotaUser instead.
361
- # @param [Google::Apis::RequestOptions] options
362
- # Request-specific options
363
- #
364
- # @yield [result, err] Result & error if block supplied
365
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::ZoneViewsList] parsed result object
366
- # @yieldparam err [StandardError] error object if request failed
367
- #
368
- # @return [Google::Apis::ResourceviewsV1beta2::ZoneViewsList]
369
- #
370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
373
- def list_zone_views(project, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
374
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews', options)
375
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ZoneViewsList::Representation
376
- command.response_class = Google::Apis::ResourceviewsV1beta2::ZoneViewsList
377
- command.params['project'] = project unless project.nil?
378
- command.params['zone'] = zone unless zone.nil?
379
- command.query['maxResults'] = max_results unless max_results.nil?
380
- command.query['pageToken'] = page_token unless page_token.nil?
381
- command.query['fields'] = fields unless fields.nil?
382
- command.query['quotaUser'] = quota_user unless quota_user.nil?
383
- command.query['userIp'] = user_ip unless user_ip.nil?
384
- execute_or_queue_command(command, &block)
385
- end
386
-
387
- # List the resources of the resource view.
388
- # @param [String] project
389
- # The project name of the resource view.
390
- # @param [String] zone
391
- # The zone name of the resource view.
392
- # @param [String] resource_view
393
- # The name of the resource view.
394
- # @param [String] format
395
- # The requested format of the return value. It can be URL or URL_PORT. A JSON
396
- # object will be included in the response based on the format. The default
397
- # format is NONE, which results in no JSON in the response.
398
- # @param [String] list_state
399
- # The state of the instance to list. By default, it lists all instances.
400
- # @param [Fixnum] max_results
401
- # Maximum count of results to be returned. Acceptable values are 0 to 5000,
402
- # inclusive. (Default: 5000)
403
- # @param [String] page_token
404
- # Specifies a nextPageToken returned by a previous list request. This token can
405
- # be used to request the next page of results from a previous list request.
406
- # @param [String] service_name
407
- # The service name to return in the response. It is optional and if it is not
408
- # set, all the service end points will be returned.
409
- # @param [String] fields
410
- # Selector specifying which fields to include in a partial response.
411
- # @param [String] quota_user
412
- # An opaque string that represents a user for quota purposes. Must not exceed 40
413
- # characters.
414
- # @param [String] user_ip
415
- # Deprecated. Please use quotaUser instead.
416
- # @param [Google::Apis::RequestOptions] options
417
- # Request-specific options
418
- #
419
- # @yield [result, err] Result & error if block supplied
420
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::ListResourcesResponse] parsed result object
421
- # @yieldparam err [StandardError] error object if request failed
422
- #
423
- # @return [Google::Apis::ResourceviewsV1beta2::ListResourcesResponse]
424
- #
425
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
- # @raise [Google::Apis::AuthorizationError] Authorization is required
428
- def list_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
429
- command = make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}/resources', options)
430
- command.response_representation = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse::Representation
431
- command.response_class = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse
432
- command.params['project'] = project unless project.nil?
433
- command.params['zone'] = zone unless zone.nil?
434
- command.params['resourceView'] = resource_view unless resource_view.nil?
435
- command.query['format'] = format unless format.nil?
436
- command.query['listState'] = list_state unless list_state.nil?
437
- command.query['maxResults'] = max_results unless max_results.nil?
438
- command.query['pageToken'] = page_token unless page_token.nil?
439
- command.query['serviceName'] = service_name unless service_name.nil?
440
- command.query['fields'] = fields unless fields.nil?
441
- command.query['quotaUser'] = quota_user unless quota_user.nil?
442
- command.query['userIp'] = user_ip unless user_ip.nil?
443
- execute_or_queue_command(command, &block)
444
- end
445
-
446
- # Remove resources from the view.
447
- # @param [String] project
448
- # The project name of the resource view.
449
- # @param [String] zone
450
- # The zone name of the resource view.
451
- # @param [String] resource_view
452
- # The name of the resource view.
453
- # @param [Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest] remove_resources_request_object
454
- # @param [String] fields
455
- # Selector specifying which fields to include in a partial response.
456
- # @param [String] quota_user
457
- # An opaque string that represents a user for quota purposes. Must not exceed 40
458
- # characters.
459
- # @param [String] user_ip
460
- # Deprecated. Please use quotaUser instead.
461
- # @param [Google::Apis::RequestOptions] options
462
- # Request-specific options
463
- #
464
- # @yield [result, err] Result & error if block supplied
465
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
466
- # @yieldparam err [StandardError] error object if request failed
467
- #
468
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
469
- #
470
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
471
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
472
- # @raise [Google::Apis::AuthorizationError] Authorization is required
473
- def remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
474
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', options)
475
- command.request_representation = Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest::Representation
476
- command.request_object = remove_resources_request_object
477
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
478
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
479
- command.params['project'] = project unless project.nil?
480
- command.params['zone'] = zone unless zone.nil?
481
- command.params['resourceView'] = resource_view unless resource_view.nil?
482
- command.query['fields'] = fields unless fields.nil?
483
- command.query['quotaUser'] = quota_user unless quota_user.nil?
484
- command.query['userIp'] = user_ip unless user_ip.nil?
485
- execute_or_queue_command(command, &block)
486
- end
487
-
488
- # Update the service information of a resource view or a resource.
489
- # @param [String] project
490
- # The project name of the resource view.
491
- # @param [String] zone
492
- # The zone name of the resource view.
493
- # @param [String] resource_view
494
- # The name of the resource view.
495
- # @param [Google::Apis::ResourceviewsV1beta2::SetServiceRequest] set_service_request_object
496
- # @param [String] fields
497
- # Selector specifying which fields to include in a partial response.
498
- # @param [String] quota_user
499
- # An opaque string that represents a user for quota purposes. Must not exceed 40
500
- # characters.
501
- # @param [String] user_ip
502
- # Deprecated. Please use quotaUser instead.
503
- # @param [Google::Apis::RequestOptions] options
504
- # Request-specific options
505
- #
506
- # @yield [result, err] Result & error if block supplied
507
- # @yieldparam result [Google::Apis::ResourceviewsV1beta2::Operation] parsed result object
508
- # @yieldparam err [StandardError] error object if request failed
509
- #
510
- # @return [Google::Apis::ResourceviewsV1beta2::Operation]
511
- #
512
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
513
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
514
- # @raise [Google::Apis::AuthorizationError] Authorization is required
515
- def set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
516
- command = make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/setService', options)
517
- command.request_representation = Google::Apis::ResourceviewsV1beta2::SetServiceRequest::Representation
518
- command.request_object = set_service_request_object
519
- command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
520
- command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
521
- command.params['project'] = project unless project.nil?
522
- command.params['zone'] = zone unless zone.nil?
523
- command.params['resourceView'] = resource_view unless resource_view.nil?
524
- command.query['fields'] = fields unless fields.nil?
525
- command.query['quotaUser'] = quota_user unless quota_user.nil?
526
- command.query['userIp'] = user_ip unless user_ip.nil?
527
- execute_or_queue_command(command, &block)
528
- end
529
-
530
- protected
531
-
532
- def apply_command_defaults(command)
533
- command.query['key'] = key unless key.nil?
534
- command.query['quotaUser'] = quota_user unless quota_user.nil?
535
- command.query['userIp'] = user_ip unless user_ip.nil?
536
- end
537
- end
538
- end
539
- end
540
- end