google-api-client 0.45.0 → 0.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
- data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
- data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
- data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
- data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +0 -6
- data/generated/google/apis/apigee_v1/representations.rb +0 -1
- data/generated/google/apis/apigee_v1/service.rb +1 -5
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +22 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +76 -2
- data/generated/google/apis/chat_v1/representations.rb +35 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
- data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/service.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +26 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +328 -328
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +98 -55
- data/generated/google/apis/logging_v2/representations.rb +32 -0
- data/generated/google/apis/logging_v2/service.rb +1214 -264
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +8 -6
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -124
- data/generated/google/apis/run_v1/representations.rb +0 -61
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
- data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -134
- data/generated/google/apis/youtube_v3/representations.rb +0 -55
- data/generated/google/apis/youtube_v3/service.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -0,0 +1,250 @@
|
|
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 ApigatewayV1alpha2
|
24
|
+
|
25
|
+
class ApigatewayAuditConfig
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ApigatewayAuditLogConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ApigatewayBinding
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ApigatewayCancelOperationRequest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ApigatewayExpr
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ApigatewayListLocationsResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ApigatewayListOperationsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ApigatewayLocation
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ApigatewayOperation
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ApigatewayPolicy
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ApigatewaySetIamPolicyRequest
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ApigatewayStatus
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ApigatewayTestIamPermissionsRequest
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ApigatewayTestIamPermissionsResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Empty
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class ApigatewayAuditConfig
|
116
|
+
# @private
|
117
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
118
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig::Representation
|
119
|
+
|
120
|
+
property :service, as: 'service'
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class ApigatewayAuditLogConfig
|
125
|
+
# @private
|
126
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
127
|
+
collection :exempted_members, as: 'exemptedMembers'
|
128
|
+
property :log_type, as: 'logType'
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class ApigatewayBinding
|
133
|
+
# @private
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
135
|
+
property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr::Representation
|
136
|
+
|
137
|
+
collection :members, as: 'members'
|
138
|
+
property :role, as: 'role'
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
class ApigatewayCancelOperationRequest
|
143
|
+
# @private
|
144
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
class ApigatewayExpr
|
149
|
+
# @private
|
150
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
151
|
+
property :description, as: 'description'
|
152
|
+
property :expression, as: 'expression'
|
153
|
+
property :location, as: 'location'
|
154
|
+
property :title, as: 'title'
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
class ApigatewayListLocationsResponse
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation
|
162
|
+
|
163
|
+
property :next_page_token, as: 'nextPageToken'
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
class ApigatewayListOperationsResponse
|
168
|
+
# @private
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
+
property :next_page_token, as: 'nextPageToken'
|
171
|
+
collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
class ApigatewayLocation
|
177
|
+
# @private
|
178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
+
property :display_name, as: 'displayName'
|
180
|
+
hash :labels, as: 'labels'
|
181
|
+
property :location_id, as: 'locationId'
|
182
|
+
hash :metadata, as: 'metadata'
|
183
|
+
property :name, as: 'name'
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
class ApigatewayOperation
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :done, as: 'done'
|
191
|
+
property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus::Representation
|
192
|
+
|
193
|
+
hash :metadata, as: 'metadata'
|
194
|
+
property :name, as: 'name'
|
195
|
+
hash :response, as: 'response'
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
class ApigatewayPolicy
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig::Representation
|
203
|
+
|
204
|
+
collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding::Representation
|
205
|
+
|
206
|
+
property :etag, :base64 => true, as: 'etag'
|
207
|
+
property :version, as: 'version'
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
class ApigatewaySetIamPolicyRequest
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
215
|
+
|
216
|
+
property :update_mask, as: 'updateMask'
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
class ApigatewayStatus
|
221
|
+
# @private
|
222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
223
|
+
property :code, as: 'code'
|
224
|
+
collection :details, as: 'details'
|
225
|
+
property :message, as: 'message'
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
class ApigatewayTestIamPermissionsRequest
|
230
|
+
# @private
|
231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
232
|
+
collection :permissions, as: 'permissions'
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
class ApigatewayTestIamPermissionsResponse
|
237
|
+
# @private
|
238
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
239
|
+
collection :permissions, as: 'permissions'
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
class Empty
|
244
|
+
# @private
|
245
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
250
|
+
end
|
@@ -0,0 +1,623 @@
|
|
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 ApigatewayV1alpha2
|
23
|
+
# API Gateway API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/apigateway_v1alpha2'
|
29
|
+
#
|
30
|
+
# Apigateway = Google::Apis::ApigatewayV1alpha2 # Alias the module
|
31
|
+
# service = Apigateway::ApigatewayService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/api-gateway/docs
|
34
|
+
class ApigatewayService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://apigateway.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets information about a location.
|
51
|
+
# @param [String] name
|
52
|
+
# Resource name for the location.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayLocation] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayLocation]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v1alpha2/{+name}', options)
|
72
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation
|
73
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation
|
74
|
+
command.params['name'] = name unless name.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Lists information about the supported locations for this service.
|
81
|
+
# @param [String] name
|
82
|
+
# The resource that owns the locations collection, if applicable.
|
83
|
+
# @param [String] filter
|
84
|
+
# The standard list filter.
|
85
|
+
# @param [Fixnum] page_size
|
86
|
+
# The standard list page size.
|
87
|
+
# @param [String] page_token
|
88
|
+
# The standard list page token.
|
89
|
+
# @param [String] fields
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
91
|
+
# @param [String] quota_user
|
92
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
95
|
+
# Request-specific options
|
96
|
+
#
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
98
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse]
|
102
|
+
#
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
+
command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options)
|
108
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse::Representation
|
109
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse
|
110
|
+
command.params['name'] = name unless name.nil?
|
111
|
+
command.query['filter'] = filter unless filter.nil?
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
120
|
+
# resource exists and does not have a policy set.
|
121
|
+
# @param [String] resource
|
122
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
123
|
+
# operation documentation for the appropriate value for this field.
|
124
|
+
# @param [Fixnum] options_requested_policy_version
|
125
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
126
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
127
|
+
# policies with any conditional bindings must specify version 3. Policies
|
128
|
+
# without any conditional bindings may specify any valid value or leave the
|
129
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
130
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
131
|
+
# resource-policies).
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
134
|
+
# @param [String] quota_user
|
135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
137
|
+
# @param [Google::Apis::RequestOptions] options
|
138
|
+
# Request-specific options
|
139
|
+
#
|
140
|
+
# @yield [result, err] Result & error if block supplied
|
141
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
142
|
+
# @yieldparam err [StandardError] error object if request failed
|
143
|
+
#
|
144
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
145
|
+
#
|
146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
149
|
+
def get_project_location_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
150
|
+
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
151
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
152
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
153
|
+
command.params['resource'] = resource unless resource.nil?
|
154
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Sets the access control policy on the specified resource. Replaces any
|
161
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
162
|
+
# PERMISSION_DENIED` errors.
|
163
|
+
# @param [String] resource
|
164
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
165
|
+
# operation documentation for the appropriate value for this field.
|
166
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
|
167
|
+
# @param [String] fields
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
169
|
+
# @param [String] quota_user
|
170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
172
|
+
# @param [Google::Apis::RequestOptions] options
|
173
|
+
# Request-specific options
|
174
|
+
#
|
175
|
+
# @yield [result, err] Result & error if block supplied
|
176
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
180
|
+
#
|
181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
|
+
def set_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
186
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
187
|
+
command.request_object = apigateway_set_iam_policy_request_object
|
188
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
189
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
190
|
+
command.params['resource'] = resource unless resource.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns permissions that a caller has on the specified resource. If the
|
197
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
198
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
199
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
200
|
+
# This operation may "fail open" without warning.
|
201
|
+
# @param [String] resource
|
202
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
203
|
+
# operation documentation for the appropriate value for this field.
|
204
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
|
205
|
+
# @param [String] fields
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
207
|
+
# @param [String] quota_user
|
208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def test_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
224
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
225
|
+
command.request_object = apigateway_test_iam_permissions_request_object
|
226
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
227
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
228
|
+
command.params['resource'] = resource unless resource.nil?
|
229
|
+
command.query['fields'] = fields unless fields.nil?
|
230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
|
+
execute_or_queue_command(command, &block)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
235
|
+
# resource exists and does not have a policy set.
|
236
|
+
# @param [String] resource
|
237
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
238
|
+
# operation documentation for the appropriate value for this field.
|
239
|
+
# @param [Fixnum] options_requested_policy_version
|
240
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
241
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
242
|
+
# policies with any conditional bindings must specify version 3. Policies
|
243
|
+
# without any conditional bindings may specify any valid value or leave the
|
244
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
245
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
246
|
+
# resource-policies).
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [String] quota_user
|
250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def get_project_location_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
266
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
267
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
268
|
+
command.params['resource'] = resource unless resource.nil?
|
269
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
270
|
+
command.query['fields'] = fields unless fields.nil?
|
271
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
272
|
+
execute_or_queue_command(command, &block)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Sets the access control policy on the specified resource. Replaces any
|
276
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
277
|
+
# PERMISSION_DENIED` errors.
|
278
|
+
# @param [String] resource
|
279
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
280
|
+
# operation documentation for the appropriate value for this field.
|
281
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
|
282
|
+
# @param [String] fields
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
284
|
+
# @param [String] quota_user
|
285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
287
|
+
# @param [Google::Apis::RequestOptions] options
|
288
|
+
# Request-specific options
|
289
|
+
#
|
290
|
+
# @yield [result, err] Result & error if block supplied
|
291
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
292
|
+
# @yieldparam err [StandardError] error object if request failed
|
293
|
+
#
|
294
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
295
|
+
#
|
296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
299
|
+
def set_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
300
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
301
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
302
|
+
command.request_object = apigateway_set_iam_policy_request_object
|
303
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
304
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
305
|
+
command.params['resource'] = resource unless resource.nil?
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Returns permissions that a caller has on the specified resource. If the
|
312
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
313
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
314
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
315
|
+
# This operation may "fail open" without warning.
|
316
|
+
# @param [String] resource
|
317
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
318
|
+
# operation documentation for the appropriate value for this field.
|
319
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
|
320
|
+
# @param [String] fields
|
321
|
+
# Selector specifying which fields to include in a partial response.
|
322
|
+
# @param [String] quota_user
|
323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
325
|
+
# @param [Google::Apis::RequestOptions] options
|
326
|
+
# Request-specific options
|
327
|
+
#
|
328
|
+
# @yield [result, err] Result & error if block supplied
|
329
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
330
|
+
# @yieldparam err [StandardError] error object if request failed
|
331
|
+
#
|
332
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
333
|
+
#
|
334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
+
def test_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
338
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
339
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
340
|
+
command.request_object = apigateway_test_iam_permissions_request_object
|
341
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
342
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
343
|
+
command.params['resource'] = resource unless resource.nil?
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
348
|
+
|
349
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
350
|
+
# resource exists and does not have a policy set.
|
351
|
+
# @param [String] resource
|
352
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
353
|
+
# operation documentation for the appropriate value for this field.
|
354
|
+
# @param [Fixnum] options_requested_policy_version
|
355
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
356
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
357
|
+
# policies with any conditional bindings must specify version 3. Policies
|
358
|
+
# without any conditional bindings may specify any valid value or leave the
|
359
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
360
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
361
|
+
# resource-policies).
|
362
|
+
# @param [String] fields
|
363
|
+
# Selector specifying which fields to include in a partial response.
|
364
|
+
# @param [String] quota_user
|
365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
+
# @param [Google::Apis::RequestOptions] options
|
368
|
+
# Request-specific options
|
369
|
+
#
|
370
|
+
# @yield [result, err] Result & error if block supplied
|
371
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
372
|
+
# @yieldparam err [StandardError] error object if request failed
|
373
|
+
#
|
374
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
375
|
+
#
|
376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
379
|
+
def get_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
380
|
+
command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options)
|
381
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
382
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
383
|
+
command.params['resource'] = resource unless resource.nil?
|
384
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
385
|
+
command.query['fields'] = fields unless fields.nil?
|
386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
387
|
+
execute_or_queue_command(command, &block)
|
388
|
+
end
|
389
|
+
|
390
|
+
# Sets the access control policy on the specified resource. Replaces any
|
391
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
392
|
+
# PERMISSION_DENIED` errors.
|
393
|
+
# @param [String] resource
|
394
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
395
|
+
# operation documentation for the appropriate value for this field.
|
396
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
|
397
|
+
# @param [String] fields
|
398
|
+
# Selector specifying which fields to include in a partial response.
|
399
|
+
# @param [String] quota_user
|
400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
402
|
+
# @param [Google::Apis::RequestOptions] options
|
403
|
+
# Request-specific options
|
404
|
+
#
|
405
|
+
# @yield [result, err] Result & error if block supplied
|
406
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object
|
407
|
+
# @yieldparam err [StandardError] error object if request failed
|
408
|
+
#
|
409
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy]
|
410
|
+
#
|
411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
414
|
+
def set_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
415
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options)
|
416
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation
|
417
|
+
command.request_object = apigateway_set_iam_policy_request_object
|
418
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation
|
419
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy
|
420
|
+
command.params['resource'] = resource unless resource.nil?
|
421
|
+
command.query['fields'] = fields unless fields.nil?
|
422
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
423
|
+
execute_or_queue_command(command, &block)
|
424
|
+
end
|
425
|
+
|
426
|
+
# Returns permissions that a caller has on the specified resource. If the
|
427
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
428
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
429
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
430
|
+
# This operation may "fail open" without warning.
|
431
|
+
# @param [String] resource
|
432
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
433
|
+
# operation documentation for the appropriate value for this field.
|
434
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
|
435
|
+
# @param [String] fields
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
437
|
+
# @param [String] quota_user
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
441
|
+
# Request-specific options
|
442
|
+
#
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
444
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
446
|
+
#
|
447
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse]
|
448
|
+
#
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
+
def test_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
+
command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options)
|
454
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation
|
455
|
+
command.request_object = apigateway_test_iam_permissions_request_object
|
456
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation
|
457
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse
|
458
|
+
command.params['resource'] = resource unless resource.nil?
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
|
+
execute_or_queue_command(command, &block)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
465
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
466
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
467
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
468
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
469
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
470
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
471
|
+
# corresponding to `Code.CANCELLED`.
|
472
|
+
# @param [String] name
|
473
|
+
# The name of the operation resource to be cancelled.
|
474
|
+
# @param [Google::Apis::ApigatewayV1alpha2::ApigatewayCancelOperationRequest] apigateway_cancel_operation_request_object
|
475
|
+
# @param [String] fields
|
476
|
+
# Selector specifying which fields to include in a partial response.
|
477
|
+
# @param [String] quota_user
|
478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
480
|
+
# @param [Google::Apis::RequestOptions] options
|
481
|
+
# Request-specific options
|
482
|
+
#
|
483
|
+
# @yield [result, err] Result & error if block supplied
|
484
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::Empty] parsed result object
|
485
|
+
# @yieldparam err [StandardError] error object if request failed
|
486
|
+
#
|
487
|
+
# @return [Google::Apis::ApigatewayV1alpha2::Empty]
|
488
|
+
#
|
489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
492
|
+
def cancel_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
493
|
+
command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
|
494
|
+
command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayCancelOperationRequest::Representation
|
495
|
+
command.request_object = apigateway_cancel_operation_request_object
|
496
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation
|
497
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::Empty
|
498
|
+
command.params['name'] = name unless name.nil?
|
499
|
+
command.query['fields'] = fields unless fields.nil?
|
500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
501
|
+
execute_or_queue_command(command, &block)
|
502
|
+
end
|
503
|
+
|
504
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
505
|
+
# longer interested in the operation result. It does not cancel the operation.
|
506
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
507
|
+
# UNIMPLEMENTED`.
|
508
|
+
# @param [String] name
|
509
|
+
# The name of the operation resource to be deleted.
|
510
|
+
# @param [String] fields
|
511
|
+
# Selector specifying which fields to include in a partial response.
|
512
|
+
# @param [String] quota_user
|
513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
515
|
+
# @param [Google::Apis::RequestOptions] options
|
516
|
+
# Request-specific options
|
517
|
+
#
|
518
|
+
# @yield [result, err] Result & error if block supplied
|
519
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::Empty] parsed result object
|
520
|
+
# @yieldparam err [StandardError] error object if request failed
|
521
|
+
#
|
522
|
+
# @return [Google::Apis::ApigatewayV1alpha2::Empty]
|
523
|
+
#
|
524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
527
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
528
|
+
command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
|
529
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation
|
530
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::Empty
|
531
|
+
command.params['name'] = name unless name.nil?
|
532
|
+
command.query['fields'] = fields unless fields.nil?
|
533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
534
|
+
execute_or_queue_command(command, &block)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
538
|
+
# to poll the operation result at intervals as recommended by the API service.
|
539
|
+
# @param [String] name
|
540
|
+
# The name of the operation resource.
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
543
|
+
# @param [String] quota_user
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayOperation] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayOperation]
|
554
|
+
#
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:get, 'v1alpha2/{+name}', options)
|
560
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation
|
561
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation
|
562
|
+
command.params['name'] = name unless name.nil?
|
563
|
+
command.query['fields'] = fields unless fields.nil?
|
564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
565
|
+
execute_or_queue_command(command, &block)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Lists operations that match the specified filter in the request. If the server
|
569
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
570
|
+
# binding allows API services to override the binding to use different resource
|
571
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
572
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
573
|
+
# service configuration. For backwards compatibility, the default name includes
|
574
|
+
# the operations collection id, however overriding users must ensure the name
|
575
|
+
# binding is the parent resource, without the operations collection id.
|
576
|
+
# @param [String] name
|
577
|
+
# The name of the operation's parent resource.
|
578
|
+
# @param [String] filter
|
579
|
+
# The standard list filter.
|
580
|
+
# @param [Fixnum] page_size
|
581
|
+
# The standard list page size.
|
582
|
+
# @param [String] page_token
|
583
|
+
# The standard list page token.
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
586
|
+
# @param [String] quota_user
|
587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
589
|
+
# @param [Google::Apis::RequestOptions] options
|
590
|
+
# Request-specific options
|
591
|
+
#
|
592
|
+
# @yield [result, err] Result & error if block supplied
|
593
|
+
# @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse] parsed result object
|
594
|
+
# @yieldparam err [StandardError] error object if request failed
|
595
|
+
#
|
596
|
+
# @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse]
|
597
|
+
#
|
598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options)
|
603
|
+
command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse::Representation
|
604
|
+
command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse
|
605
|
+
command.params['name'] = name unless name.nil?
|
606
|
+
command.query['filter'] = filter unless filter.nil?
|
607
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
608
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
609
|
+
command.query['fields'] = fields unless fields.nil?
|
610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
611
|
+
execute_or_queue_command(command, &block)
|
612
|
+
end
|
613
|
+
|
614
|
+
protected
|
615
|
+
|
616
|
+
def apply_command_defaults(command)
|
617
|
+
command.query['key'] = key unless key.nil?
|
618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
619
|
+
end
|
620
|
+
end
|
621
|
+
end
|
622
|
+
end
|
623
|
+
end
|