google-api-client 0.21.2 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +181 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +59 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +42 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +31 -0
- data/generated/google/apis/bigquery_v2/representations.rb +16 -0
- data/generated/google/apis/bigquery_v2/service.rb +6 -3
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +0 -56
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +33 -0
- data/generated/google/apis/container_v1beta1/representations.rb +17 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -2
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +146 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +62 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -9
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +6 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +27 -15
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +48 -0
- data/generated/google/apis/monitoring_v3/representations.rb +17 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +76 -28
- data/generated/google/apis/people_v1/representations.rb +19 -0
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +2 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +45 -12
- data/generated/google/apis/pubsub_v1/service.rb +41 -20
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +41 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +5 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -27
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -15
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -27
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -15
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +41 -41
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +4 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +44 -38
- data/generated/google/apis/storage_v1/service.rb +10 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +26 -0
- data/generated/google/apis/testing_v1/representations.rb +15 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -10
- data/generated/google/apis/resourceviews_v1beta1.rb +0 -50
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +0 -338
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +0 -201
- data/generated/google/apis/resourceviews_v1beta1/service.rb +0 -637
- data/generated/google/apis/resourceviews_v1beta2.rb +0 -50
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +0 -660
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +0 -301
- data/generated/google/apis/resourceviews_v1beta2/service.rb +0 -540
@@ -1,201 +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 ResourceviewsV1beta1
|
24
|
-
|
25
|
-
class Label
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class RegionViewsAddResourcesRequest
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class RegionViewsInsertResponse
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class RegionViewsListResourcesResponse
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class RegionViewsListResponse
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class RegionViewsRemoveResourcesRequest
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class ResourceView
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class ZoneViewsAddResourcesRequest
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class ZoneViewsInsertResponse
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class ZoneViewsListResourcesResponse
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class ZoneViewsListResponse
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class ZoneViewsRemoveResourcesRequest
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class Label
|
98
|
-
# @private
|
99
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
-
property :key, as: 'key'
|
101
|
-
property :value, as: 'value'
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
class RegionViewsAddResourcesRequest
|
106
|
-
# @private
|
107
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
108
|
-
collection :resources, as: 'resources'
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
class RegionViewsInsertResponse
|
113
|
-
# @private
|
114
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
115
|
-
property :resource, as: 'resource', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
116
|
-
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
class RegionViewsListResourcesResponse
|
121
|
-
# @private
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
123
|
-
collection :members, as: 'members'
|
124
|
-
property :next_page_token, as: 'nextPageToken'
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
class RegionViewsListResponse
|
129
|
-
# @private
|
130
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
131
|
-
property :next_page_token, as: 'nextPageToken'
|
132
|
-
collection :resource_views, as: 'resourceViews', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
133
|
-
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
class RegionViewsRemoveResourcesRequest
|
138
|
-
# @private
|
139
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
140
|
-
collection :resources, as: 'resources'
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
class ResourceView
|
145
|
-
# @private
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
147
|
-
property :creation_time, as: 'creationTime'
|
148
|
-
property :description, as: 'description'
|
149
|
-
property :id, as: 'id'
|
150
|
-
property :kind, as: 'kind'
|
151
|
-
collection :labels, as: 'labels', class: Google::Apis::ResourceviewsV1beta1::Label, decorator: Google::Apis::ResourceviewsV1beta1::Label::Representation
|
152
|
-
|
153
|
-
property :last_modified, as: 'lastModified'
|
154
|
-
collection :members, as: 'members'
|
155
|
-
property :name, as: 'name'
|
156
|
-
property :num_members, as: 'numMembers'
|
157
|
-
property :self_link, as: 'selfLink'
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
class ZoneViewsAddResourcesRequest
|
162
|
-
# @private
|
163
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
-
collection :resources, as: 'resources'
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
class ZoneViewsInsertResponse
|
169
|
-
# @private
|
170
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
-
property :resource, as: 'resource', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
172
|
-
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
class ZoneViewsListResourcesResponse
|
177
|
-
# @private
|
178
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
-
collection :members, as: 'members'
|
180
|
-
property :next_page_token, as: 'nextPageToken'
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
class ZoneViewsListResponse
|
185
|
-
# @private
|
186
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
-
property :next_page_token, as: 'nextPageToken'
|
188
|
-
collection :resource_views, as: 'resourceViews', class: Google::Apis::ResourceviewsV1beta1::ResourceView, decorator: Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
189
|
-
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
|
-
class ZoneViewsRemoveResourcesRequest
|
194
|
-
# @private
|
195
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
-
collection :resources, as: 'resources'
|
197
|
-
end
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
@@ -1,637 +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 ResourceviewsV1beta1
|
23
|
-
# Resource Views 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_v1beta1'
|
30
|
-
#
|
31
|
-
# Resourceviews = Google::Apis::ResourceviewsV1beta1 # 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/v1beta1/projects/')
|
52
|
-
@batch_path = 'batch/resourceviews/v1beta1'
|
53
|
-
end
|
54
|
-
|
55
|
-
# Add resources to the view.
|
56
|
-
# @param [String] project_name
|
57
|
-
# The project name of the resource view.
|
58
|
-
# @param [String] region
|
59
|
-
# The region name of the resource view.
|
60
|
-
# @param [String] resource_view_name
|
61
|
-
# The name of the resource view.
|
62
|
-
# @param [Google::Apis::ResourceviewsV1beta1::RegionViewsAddResourcesRequest] region_views_add_resources_request_object
|
63
|
-
# @param [String] fields
|
64
|
-
# Selector specifying which fields to include in a partial response.
|
65
|
-
# @param [String] quota_user
|
66
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
67
|
-
# characters.
|
68
|
-
# @param [String] user_ip
|
69
|
-
# Deprecated. Please use quotaUser instead.
|
70
|
-
# @param [Google::Apis::RequestOptions] options
|
71
|
-
# Request-specific options
|
72
|
-
#
|
73
|
-
# @yield [result, err] Result & error if block supplied
|
74
|
-
# @yieldparam result [NilClass] No result returned for this method
|
75
|
-
# @yieldparam err [StandardError] error object if request failed
|
76
|
-
#
|
77
|
-
# @return [void]
|
78
|
-
#
|
79
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
-
def addresources_region_view(project_name, region, resource_view_name, region_views_add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
83
|
-
command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources', options)
|
84
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsAddResourcesRequest::Representation
|
85
|
-
command.request_object = region_views_add_resources_request_object
|
86
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
87
|
-
command.params['region'] = region unless region.nil?
|
88
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
89
|
-
command.query['fields'] = fields unless fields.nil?
|
90
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
92
|
-
execute_or_queue_command(command, &block)
|
93
|
-
end
|
94
|
-
|
95
|
-
# Delete a resource view.
|
96
|
-
# @param [String] project_name
|
97
|
-
# The project name of the resource view.
|
98
|
-
# @param [String] region
|
99
|
-
# The region name of the resource view.
|
100
|
-
# @param [String] resource_view_name
|
101
|
-
# The name of the resource view.
|
102
|
-
# @param [String] fields
|
103
|
-
# Selector specifying which fields to include in a partial response.
|
104
|
-
# @param [String] quota_user
|
105
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
106
|
-
# characters.
|
107
|
-
# @param [String] user_ip
|
108
|
-
# Deprecated. Please use quotaUser instead.
|
109
|
-
# @param [Google::Apis::RequestOptions] options
|
110
|
-
# Request-specific options
|
111
|
-
#
|
112
|
-
# @yield [result, err] Result & error if block supplied
|
113
|
-
# @yieldparam result [NilClass] No result returned for this method
|
114
|
-
# @yieldparam err [StandardError] error object if request failed
|
115
|
-
#
|
116
|
-
# @return [void]
|
117
|
-
#
|
118
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
119
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
|
-
def delete_region_view(project_name, region, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
122
|
-
command = make_simple_command(:delete, '{projectName}/regions/{region}/resourceViews/{resourceViewName}', options)
|
123
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
124
|
-
command.params['region'] = region unless region.nil?
|
125
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
126
|
-
command.query['fields'] = fields unless fields.nil?
|
127
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
128
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
129
|
-
execute_or_queue_command(command, &block)
|
130
|
-
end
|
131
|
-
|
132
|
-
# Get the information of a resource view.
|
133
|
-
# @param [String] project_name
|
134
|
-
# The project name of the resource view.
|
135
|
-
# @param [String] region
|
136
|
-
# The region name of the resource view.
|
137
|
-
# @param [String] resource_view_name
|
138
|
-
# The name of the resource view.
|
139
|
-
# @param [String] fields
|
140
|
-
# Selector specifying which fields to include in a partial response.
|
141
|
-
# @param [String] quota_user
|
142
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
143
|
-
# characters.
|
144
|
-
# @param [String] user_ip
|
145
|
-
# Deprecated. Please use quotaUser instead.
|
146
|
-
# @param [Google::Apis::RequestOptions] options
|
147
|
-
# Request-specific options
|
148
|
-
#
|
149
|
-
# @yield [result, err] Result & error if block supplied
|
150
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::ResourceView] parsed result object
|
151
|
-
# @yieldparam err [StandardError] error object if request failed
|
152
|
-
#
|
153
|
-
# @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
|
154
|
-
#
|
155
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
156
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
157
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
158
|
-
def get_region_view(project_name, region, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
159
|
-
command = make_simple_command(:get, '{projectName}/regions/{region}/resourceViews/{resourceViewName}', options)
|
160
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
161
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::ResourceView
|
162
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
163
|
-
command.params['region'] = region unless region.nil?
|
164
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
165
|
-
command.query['fields'] = fields unless fields.nil?
|
166
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
167
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
168
|
-
execute_or_queue_command(command, &block)
|
169
|
-
end
|
170
|
-
|
171
|
-
# Create a resource view.
|
172
|
-
# @param [String] project_name
|
173
|
-
# The project name of the resource view.
|
174
|
-
# @param [String] region
|
175
|
-
# The region name of the resource view.
|
176
|
-
# @param [Google::Apis::ResourceviewsV1beta1::ResourceView] resource_view_object
|
177
|
-
# @param [String] fields
|
178
|
-
# Selector specifying which fields to include in a partial response.
|
179
|
-
# @param [String] quota_user
|
180
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
181
|
-
# characters.
|
182
|
-
# @param [String] user_ip
|
183
|
-
# Deprecated. Please use quotaUser instead.
|
184
|
-
# @param [Google::Apis::RequestOptions] options
|
185
|
-
# Request-specific options
|
186
|
-
#
|
187
|
-
# @yield [result, err] Result & error if block supplied
|
188
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse] parsed result object
|
189
|
-
# @yieldparam err [StandardError] error object if request failed
|
190
|
-
#
|
191
|
-
# @return [Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse]
|
192
|
-
#
|
193
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
|
-
def insert_region_view(project_name, region, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
197
|
-
command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews', options)
|
198
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
199
|
-
command.request_object = resource_view_object
|
200
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse::Representation
|
201
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsInsertResponse
|
202
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
203
|
-
command.params['region'] = region unless region.nil?
|
204
|
-
command.query['fields'] = fields unless fields.nil?
|
205
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
206
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
207
|
-
execute_or_queue_command(command, &block)
|
208
|
-
end
|
209
|
-
|
210
|
-
# List resource views.
|
211
|
-
# @param [String] project_name
|
212
|
-
# The project name of the resource view.
|
213
|
-
# @param [String] region
|
214
|
-
# The region name of the resource view.
|
215
|
-
# @param [Fixnum] max_results
|
216
|
-
# Maximum count of results to be returned. Acceptable values are 0 to 5000,
|
217
|
-
# inclusive. (Default: 5000)
|
218
|
-
# @param [String] page_token
|
219
|
-
# Specifies a nextPageToken returned by a previous list request. This token can
|
220
|
-
# be used to request the next page of results from a previous list request.
|
221
|
-
# @param [String] fields
|
222
|
-
# Selector specifying which fields to include in a partial response.
|
223
|
-
# @param [String] quota_user
|
224
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
225
|
-
# characters.
|
226
|
-
# @param [String] user_ip
|
227
|
-
# Deprecated. Please use quotaUser instead.
|
228
|
-
# @param [Google::Apis::RequestOptions] options
|
229
|
-
# Request-specific options
|
230
|
-
#
|
231
|
-
# @yield [result, err] Result & error if block supplied
|
232
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse] parsed result object
|
233
|
-
# @yieldparam err [StandardError] error object if request failed
|
234
|
-
#
|
235
|
-
# @return [Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse]
|
236
|
-
#
|
237
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
238
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
239
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
240
|
-
def list_region_views(project_name, region, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
241
|
-
command = make_simple_command(:get, '{projectName}/regions/{region}/resourceViews', options)
|
242
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse::Representation
|
243
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsListResponse
|
244
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
245
|
-
command.params['region'] = region unless region.nil?
|
246
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
247
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
248
|
-
command.query['fields'] = fields unless fields.nil?
|
249
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
250
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
251
|
-
execute_or_queue_command(command, &block)
|
252
|
-
end
|
253
|
-
|
254
|
-
# List the resources in the view.
|
255
|
-
# @param [String] project_name
|
256
|
-
# The project name of the resource view.
|
257
|
-
# @param [String] region
|
258
|
-
# The region name of the resource view.
|
259
|
-
# @param [String] resource_view_name
|
260
|
-
# The name of the resource view.
|
261
|
-
# @param [Fixnum] max_results
|
262
|
-
# Maximum count of results to be returned. Acceptable values are 0 to 5000,
|
263
|
-
# inclusive. (Default: 5000)
|
264
|
-
# @param [String] page_token
|
265
|
-
# Specifies a nextPageToken returned by a previous list request. This token can
|
266
|
-
# be used to request the next page of results from a previous list request.
|
267
|
-
# @param [String] fields
|
268
|
-
# Selector specifying which fields to include in a partial response.
|
269
|
-
# @param [String] quota_user
|
270
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
271
|
-
# characters.
|
272
|
-
# @param [String] user_ip
|
273
|
-
# Deprecated. Please use quotaUser instead.
|
274
|
-
# @param [Google::Apis::RequestOptions] options
|
275
|
-
# Request-specific options
|
276
|
-
#
|
277
|
-
# @yield [result, err] Result & error if block supplied
|
278
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse] parsed result object
|
279
|
-
# @yieldparam err [StandardError] error object if request failed
|
280
|
-
#
|
281
|
-
# @return [Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse]
|
282
|
-
#
|
283
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
284
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
285
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
286
|
-
def listresources_region_view(project_name, region, resource_view_name, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
287
|
-
command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources', options)
|
288
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse::Representation
|
289
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::RegionViewsListResourcesResponse
|
290
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
291
|
-
command.params['region'] = region unless region.nil?
|
292
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
293
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
294
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
295
|
-
command.query['fields'] = fields unless fields.nil?
|
296
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
297
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
298
|
-
execute_or_queue_command(command, &block)
|
299
|
-
end
|
300
|
-
|
301
|
-
# Remove resources from the view.
|
302
|
-
# @param [String] project_name
|
303
|
-
# The project name of the resource view.
|
304
|
-
# @param [String] region
|
305
|
-
# The region name of the resource view.
|
306
|
-
# @param [String] resource_view_name
|
307
|
-
# The name of the resource view.
|
308
|
-
# @param [Google::Apis::ResourceviewsV1beta1::RegionViewsRemoveResourcesRequest] region_views_remove_resources_request_object
|
309
|
-
# @param [String] fields
|
310
|
-
# Selector specifying which fields to include in a partial response.
|
311
|
-
# @param [String] quota_user
|
312
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
313
|
-
# characters.
|
314
|
-
# @param [String] user_ip
|
315
|
-
# Deprecated. Please use quotaUser instead.
|
316
|
-
# @param [Google::Apis::RequestOptions] options
|
317
|
-
# Request-specific options
|
318
|
-
#
|
319
|
-
# @yield [result, err] Result & error if block supplied
|
320
|
-
# @yieldparam result [NilClass] No result returned for this method
|
321
|
-
# @yieldparam err [StandardError] error object if request failed
|
322
|
-
#
|
323
|
-
# @return [void]
|
324
|
-
#
|
325
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
326
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
327
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
328
|
-
def removeresources_region_view(project_name, region, resource_view_name, region_views_remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
329
|
-
command = make_simple_command(:post, '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources', options)
|
330
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::RegionViewsRemoveResourcesRequest::Representation
|
331
|
-
command.request_object = region_views_remove_resources_request_object
|
332
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
333
|
-
command.params['region'] = region unless region.nil?
|
334
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
335
|
-
command.query['fields'] = fields unless fields.nil?
|
336
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
337
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
338
|
-
execute_or_queue_command(command, &block)
|
339
|
-
end
|
340
|
-
|
341
|
-
# Add resources to the view.
|
342
|
-
# @param [String] project_name
|
343
|
-
# The project name of the resource view.
|
344
|
-
# @param [String] zone
|
345
|
-
# The zone name of the resource view.
|
346
|
-
# @param [String] resource_view_name
|
347
|
-
# The name of the resource view.
|
348
|
-
# @param [Google::Apis::ResourceviewsV1beta1::ZoneViewsAddResourcesRequest] zone_views_add_resources_request_object
|
349
|
-
# @param [String] fields
|
350
|
-
# Selector specifying which fields to include in a partial response.
|
351
|
-
# @param [String] quota_user
|
352
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
353
|
-
# characters.
|
354
|
-
# @param [String] user_ip
|
355
|
-
# Deprecated. Please use quotaUser instead.
|
356
|
-
# @param [Google::Apis::RequestOptions] options
|
357
|
-
# Request-specific options
|
358
|
-
#
|
359
|
-
# @yield [result, err] Result & error if block supplied
|
360
|
-
# @yieldparam result [NilClass] No result returned for this method
|
361
|
-
# @yieldparam err [StandardError] error object if request failed
|
362
|
-
#
|
363
|
-
# @return [void]
|
364
|
-
#
|
365
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
366
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
367
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
368
|
-
def addresources_zone_view(project_name, zone, resource_view_name, zone_views_add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
369
|
-
command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources', options)
|
370
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsAddResourcesRequest::Representation
|
371
|
-
command.request_object = zone_views_add_resources_request_object
|
372
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
373
|
-
command.params['zone'] = zone unless zone.nil?
|
374
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
375
|
-
command.query['fields'] = fields unless fields.nil?
|
376
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
377
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
378
|
-
execute_or_queue_command(command, &block)
|
379
|
-
end
|
380
|
-
|
381
|
-
# Delete a resource view.
|
382
|
-
# @param [String] project_name
|
383
|
-
# The project name of the resource view.
|
384
|
-
# @param [String] zone
|
385
|
-
# The zone name of the resource view.
|
386
|
-
# @param [String] resource_view_name
|
387
|
-
# The name of the resource view.
|
388
|
-
# @param [String] fields
|
389
|
-
# Selector specifying which fields to include in a partial response.
|
390
|
-
# @param [String] quota_user
|
391
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
392
|
-
# characters.
|
393
|
-
# @param [String] user_ip
|
394
|
-
# Deprecated. Please use quotaUser instead.
|
395
|
-
# @param [Google::Apis::RequestOptions] options
|
396
|
-
# Request-specific options
|
397
|
-
#
|
398
|
-
# @yield [result, err] Result & error if block supplied
|
399
|
-
# @yieldparam result [NilClass] No result returned for this method
|
400
|
-
# @yieldparam err [StandardError] error object if request failed
|
401
|
-
#
|
402
|
-
# @return [void]
|
403
|
-
#
|
404
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
405
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
406
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
407
|
-
def delete_zone_view(project_name, zone, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
408
|
-
command = make_simple_command(:delete, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', options)
|
409
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
410
|
-
command.params['zone'] = zone unless zone.nil?
|
411
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
412
|
-
command.query['fields'] = fields unless fields.nil?
|
413
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
414
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
415
|
-
execute_or_queue_command(command, &block)
|
416
|
-
end
|
417
|
-
|
418
|
-
# Get the information of a zonal resource view.
|
419
|
-
# @param [String] project_name
|
420
|
-
# The project name of the resource view.
|
421
|
-
# @param [String] zone
|
422
|
-
# The zone name of the resource view.
|
423
|
-
# @param [String] resource_view_name
|
424
|
-
# The name of the resource view.
|
425
|
-
# @param [String] fields
|
426
|
-
# Selector specifying which fields to include in a partial response.
|
427
|
-
# @param [String] quota_user
|
428
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
429
|
-
# characters.
|
430
|
-
# @param [String] user_ip
|
431
|
-
# Deprecated. Please use quotaUser instead.
|
432
|
-
# @param [Google::Apis::RequestOptions] options
|
433
|
-
# Request-specific options
|
434
|
-
#
|
435
|
-
# @yield [result, err] Result & error if block supplied
|
436
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::ResourceView] parsed result object
|
437
|
-
# @yieldparam err [StandardError] error object if request failed
|
438
|
-
#
|
439
|
-
# @return [Google::Apis::ResourceviewsV1beta1::ResourceView]
|
440
|
-
#
|
441
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
442
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
443
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
444
|
-
def get_zone_view(project_name, zone, resource_view_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
445
|
-
command = make_simple_command(:get, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}', options)
|
446
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
447
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::ResourceView
|
448
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
449
|
-
command.params['zone'] = zone unless zone.nil?
|
450
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
451
|
-
command.query['fields'] = fields unless fields.nil?
|
452
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
453
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
454
|
-
execute_or_queue_command(command, &block)
|
455
|
-
end
|
456
|
-
|
457
|
-
# Create a resource view.
|
458
|
-
# @param [String] project_name
|
459
|
-
# The project name of the resource view.
|
460
|
-
# @param [String] zone
|
461
|
-
# The zone name of the resource view.
|
462
|
-
# @param [Google::Apis::ResourceviewsV1beta1::ResourceView] resource_view_object
|
463
|
-
# @param [String] fields
|
464
|
-
# Selector specifying which fields to include in a partial response.
|
465
|
-
# @param [String] quota_user
|
466
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
467
|
-
# characters.
|
468
|
-
# @param [String] user_ip
|
469
|
-
# Deprecated. Please use quotaUser instead.
|
470
|
-
# @param [Google::Apis::RequestOptions] options
|
471
|
-
# Request-specific options
|
472
|
-
#
|
473
|
-
# @yield [result, err] Result & error if block supplied
|
474
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse] parsed result object
|
475
|
-
# @yieldparam err [StandardError] error object if request failed
|
476
|
-
#
|
477
|
-
# @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse]
|
478
|
-
#
|
479
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
-
def insert_zone_view(project_name, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
483
|
-
command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews', options)
|
484
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::ResourceView::Representation
|
485
|
-
command.request_object = resource_view_object
|
486
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse::Representation
|
487
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsInsertResponse
|
488
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
489
|
-
command.params['zone'] = zone unless zone.nil?
|
490
|
-
command.query['fields'] = fields unless fields.nil?
|
491
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
493
|
-
execute_or_queue_command(command, &block)
|
494
|
-
end
|
495
|
-
|
496
|
-
# List resource views.
|
497
|
-
# @param [String] project_name
|
498
|
-
# The project name of the resource view.
|
499
|
-
# @param [String] zone
|
500
|
-
# The zone name of the resource view.
|
501
|
-
# @param [Fixnum] max_results
|
502
|
-
# Maximum count of results to be returned. Acceptable values are 0 to 5000,
|
503
|
-
# inclusive. (Default: 5000)
|
504
|
-
# @param [String] page_token
|
505
|
-
# Specifies a nextPageToken returned by a previous list request. This token can
|
506
|
-
# be used to request the next page of results from a previous list request.
|
507
|
-
# @param [String] fields
|
508
|
-
# Selector specifying which fields to include in a partial response.
|
509
|
-
# @param [String] quota_user
|
510
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
511
|
-
# characters.
|
512
|
-
# @param [String] user_ip
|
513
|
-
# Deprecated. Please use quotaUser instead.
|
514
|
-
# @param [Google::Apis::RequestOptions] options
|
515
|
-
# Request-specific options
|
516
|
-
#
|
517
|
-
# @yield [result, err] Result & error if block supplied
|
518
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse] parsed result object
|
519
|
-
# @yieldparam err [StandardError] error object if request failed
|
520
|
-
#
|
521
|
-
# @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse]
|
522
|
-
#
|
523
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
524
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
525
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
526
|
-
def list_zone_views(project_name, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
527
|
-
command = make_simple_command(:get, '{projectName}/zones/{zone}/resourceViews', options)
|
528
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse::Representation
|
529
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResponse
|
530
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
531
|
-
command.params['zone'] = zone unless zone.nil?
|
532
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
533
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
534
|
-
command.query['fields'] = fields unless fields.nil?
|
535
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
536
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
537
|
-
execute_or_queue_command(command, &block)
|
538
|
-
end
|
539
|
-
|
540
|
-
# List the resources of the resource view.
|
541
|
-
# @param [String] project_name
|
542
|
-
# The project name of the resource view.
|
543
|
-
# @param [String] zone
|
544
|
-
# The zone name of the resource view.
|
545
|
-
# @param [String] resource_view_name
|
546
|
-
# The name of the resource view.
|
547
|
-
# @param [Fixnum] max_results
|
548
|
-
# Maximum count of results to be returned. Acceptable values are 0 to 5000,
|
549
|
-
# inclusive. (Default: 5000)
|
550
|
-
# @param [String] page_token
|
551
|
-
# Specifies a nextPageToken returned by a previous list request. This token can
|
552
|
-
# be used to request the next page of results from a previous list request.
|
553
|
-
# @param [String] fields
|
554
|
-
# Selector specifying which fields to include in a partial response.
|
555
|
-
# @param [String] quota_user
|
556
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
557
|
-
# characters.
|
558
|
-
# @param [String] user_ip
|
559
|
-
# Deprecated. Please use quotaUser instead.
|
560
|
-
# @param [Google::Apis::RequestOptions] options
|
561
|
-
# Request-specific options
|
562
|
-
#
|
563
|
-
# @yield [result, err] Result & error if block supplied
|
564
|
-
# @yieldparam result [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse] parsed result object
|
565
|
-
# @yieldparam err [StandardError] error object if request failed
|
566
|
-
#
|
567
|
-
# @return [Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse]
|
568
|
-
#
|
569
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
570
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
571
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
572
|
-
def listresources_zone_view(project_name, zone, resource_view_name, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
573
|
-
command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources', options)
|
574
|
-
command.response_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse::Representation
|
575
|
-
command.response_class = Google::Apis::ResourceviewsV1beta1::ZoneViewsListResourcesResponse
|
576
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
577
|
-
command.params['zone'] = zone unless zone.nil?
|
578
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
579
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
580
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
581
|
-
command.query['fields'] = fields unless fields.nil?
|
582
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
583
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
584
|
-
execute_or_queue_command(command, &block)
|
585
|
-
end
|
586
|
-
|
587
|
-
# Remove resources from the view.
|
588
|
-
# @param [String] project_name
|
589
|
-
# The project name of the resource view.
|
590
|
-
# @param [String] zone
|
591
|
-
# The zone name of the resource view.
|
592
|
-
# @param [String] resource_view_name
|
593
|
-
# The name of the resource view.
|
594
|
-
# @param [Google::Apis::ResourceviewsV1beta1::ZoneViewsRemoveResourcesRequest] zone_views_remove_resources_request_object
|
595
|
-
# @param [String] fields
|
596
|
-
# Selector specifying which fields to include in a partial response.
|
597
|
-
# @param [String] quota_user
|
598
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
599
|
-
# characters.
|
600
|
-
# @param [String] user_ip
|
601
|
-
# Deprecated. Please use quotaUser instead.
|
602
|
-
# @param [Google::Apis::RequestOptions] options
|
603
|
-
# Request-specific options
|
604
|
-
#
|
605
|
-
# @yield [result, err] Result & error if block supplied
|
606
|
-
# @yieldparam result [NilClass] No result returned for this method
|
607
|
-
# @yieldparam err [StandardError] error object if request failed
|
608
|
-
#
|
609
|
-
# @return [void]
|
610
|
-
#
|
611
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
612
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
|
-
def removeresources_zone_view(project_name, zone, resource_view_name, zone_views_remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
615
|
-
command = make_simple_command(:post, '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources', options)
|
616
|
-
command.request_representation = Google::Apis::ResourceviewsV1beta1::ZoneViewsRemoveResourcesRequest::Representation
|
617
|
-
command.request_object = zone_views_remove_resources_request_object
|
618
|
-
command.params['projectName'] = project_name unless project_name.nil?
|
619
|
-
command.params['zone'] = zone unless zone.nil?
|
620
|
-
command.params['resourceViewName'] = resource_view_name unless resource_view_name.nil?
|
621
|
-
command.query['fields'] = fields unless fields.nil?
|
622
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
624
|
-
execute_or_queue_command(command, &block)
|
625
|
-
end
|
626
|
-
|
627
|
-
protected
|
628
|
-
|
629
|
-
def apply_command_defaults(command)
|
630
|
-
command.query['key'] = key unless key.nil?
|
631
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
633
|
-
end
|
634
|
-
end
|
635
|
-
end
|
636
|
-
end
|
637
|
-
end
|