google-api-client 0.52.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +0 -14
  3. data/CHANGELOG.md +6 -0
  4. data/OVERVIEW.md +36 -27
  5. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  6. data/generated/google/apis/accesscontextmanager_v1/classes.rb +326 -0
  7. data/generated/google/apis/accesscontextmanager_v1/representations.rb +139 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/service.rb +2 -2
  10. data/generated/google/apis/analyticsadmin_v1alpha.rb +2 -2
  11. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +8 -0
  12. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +1 -0
  13. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +12 -1
  14. data/{lib/google/apis/core/logging.rb → generated/google/apis/apigateway_v1.rb} +14 -10
  15. data/generated/google/apis/apigateway_v1/classes.rb +1116 -0
  16. data/generated/google/apis/apigateway_v1/representations.rb +442 -0
  17. data/generated/google/apis/apigateway_v1/service.rb +1172 -0
  18. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  19. data/generated/google/apis/apigateway_v1beta/classes.rb +19 -8
  20. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
  21. data/generated/google/apis/apigee_v1.rb +1 -1
  22. data/generated/google/apis/apigee_v1/classes.rb +24 -22
  23. data/generated/google/apis/apigee_v1/service.rb +50 -48
  24. data/generated/google/apis/artifactregistry_v1.rb +38 -0
  25. data/generated/google/apis/artifactregistry_v1/classes.rb +242 -0
  26. data/generated/google/apis/artifactregistry_v1/representations.rb +116 -0
  27. data/generated/google/apis/artifactregistry_v1/service.rb +210 -0
  28. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  29. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -120
  30. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -62
  31. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  32. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +0 -120
  33. data/generated/google/apis/artifactregistry_v1beta2/representations.rb +0 -62
  34. data/generated/google/apis/chat_v1.rb +1 -1
  35. data/generated/google/apis/chat_v1/service.rb +132 -0
  36. data/generated/google/apis/cloudasset_v1.rb +1 -1
  37. data/generated/google/apis/cloudasset_v1/classes.rb +326 -0
  38. data/generated/google/apis/cloudasset_v1/representations.rb +139 -0
  39. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudasset_v1beta1/classes.rb +326 -0
  41. data/generated/google/apis/cloudasset_v1beta1/representations.rb +139 -0
  42. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  43. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +326 -0
  44. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +139 -0
  45. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  46. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -3
  47. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
  49. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  50. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +3 -3
  51. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +0 -26
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +0 -24
  56. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +0 -26
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +0 -24
  59. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +0 -26
  61. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +0 -24
  62. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  63. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +0 -26
  64. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +0 -24
  65. data/generated/google/apis/container_v1.rb +1 -1
  66. data/generated/google/apis/container_v1/classes.rb +7 -7
  67. data/generated/google/apis/container_v1beta1.rb +1 -1
  68. data/generated/google/apis/container_v1beta1/classes.rb +7 -7
  69. data/generated/google/apis/content_v2_1.rb +1 -1
  70. data/generated/google/apis/content_v2_1/classes.rb +434 -0
  71. data/generated/google/apis/content_v2_1/representations.rb +187 -0
  72. data/generated/google/apis/content_v2_1/service.rb +116 -0
  73. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  74. data/generated/google/apis/datacatalog_v1beta1/classes.rb +6 -0
  75. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  76. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  77. data/generated/google/apis/datalabeling_v1beta1.rb +1 -1
  78. data/generated/google/apis/dataproc_v1.rb +1 -1
  79. data/generated/google/apis/dataproc_v1/classes.rb +29 -1
  80. data/generated/google/apis/dataproc_v1/representations.rb +14 -0
  81. data/generated/google/apis/dataproc_v1/service.rb +42 -0
  82. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  83. data/generated/google/apis/dataproc_v1beta2/classes.rb +29 -1
  84. data/generated/google/apis/dataproc_v1beta2/representations.rb +14 -0
  85. data/generated/google/apis/dataproc_v1beta2/service.rb +42 -0
  86. data/generated/google/apis/dialogflow_v2.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2/classes.rb +4041 -678
  88. data/generated/google/apis/dialogflow_v2/representations.rb +1851 -298
  89. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  90. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4047 -684
  91. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1862 -309
  92. data/generated/google/apis/dialogflow_v3.rb +1 -1
  93. data/generated/google/apis/dialogflow_v3/classes.rb +3120 -311
  94. data/generated/google/apis/dialogflow_v3/representations.rb +2002 -617
  95. data/generated/google/apis/dialogflow_v3/service.rb +408 -0
  96. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  97. data/generated/google/apis/dialogflow_v3beta1/classes.rb +5145 -2336
  98. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1729 -344
  99. data/generated/google/apis/dialogflow_v3beta1/service.rb +408 -0
  100. data/generated/google/apis/dlp_v2.rb +1 -1
  101. data/generated/google/apis/dlp_v2/service.rb +3 -9
  102. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  103. data/generated/google/apis/documentai_v1beta2/classes.rb +5 -92
  104. data/generated/google/apis/documentai_v1beta2/representations.rb +2 -15
  105. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  106. data/generated/google/apis/documentai_v1beta3/classes.rb +5 -92
  107. data/generated/google/apis/documentai_v1beta3/representations.rb +2 -15
  108. data/generated/google/apis/gameservices_v1.rb +1 -1
  109. data/generated/google/apis/gameservices_v1/service.rb +14 -14
  110. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  111. data/generated/google/apis/gameservices_v1beta/service.rb +14 -14
  112. data/generated/google/apis/localservices_v1.rb +4 -1
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +2 -2
  115. data/generated/google/apis/monitoring_v3.rb +1 -1
  116. data/generated/google/apis/monitoring_v3/classes.rb +2 -2
  117. data/generated/google/apis/notebooks_v1.rb +1 -1
  118. data/generated/google/apis/notebooks_v1/classes.rb +13 -0
  119. data/generated/google/apis/notebooks_v1/representations.rb +12 -0
  120. data/generated/google/apis/notebooks_v1/service.rb +34 -0
  121. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  122. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +0 -37
  123. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +0 -18
  124. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  125. data/generated/google/apis/recommendationengine_v1beta1/service.rb +2 -1
  126. data/generated/google/apis/securitycenter_v1.rb +1 -1
  127. data/generated/google/apis/securitycenter_v1/classes.rb +18 -10
  128. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  129. data/generated/google/apis/securitycenter_v1/service.rb +30 -30
  130. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  131. data/generated/google/apis/securitycenter_v1beta1/classes.rb +7 -0
  132. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  134. data/generated/google/apis/securitycenter_v1beta2/classes.rb +7 -0
  135. data/generated/google/apis/securitycenter_v1beta2/representations.rb +1 -0
  136. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  137. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -10
  138. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  139. data/generated/google/apis/sqladmin_v1beta4/classes.rb +7 -7
  140. data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -1
  141. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  142. data/generated/google/apis/storagetransfer_v1/classes.rb +25 -0
  143. data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
  144. data/generated/google/apis/webmasters_v3/classes.rb +8 -0
  145. data/generated/google/apis/webmasters_v3/representations.rb +1 -0
  146. data/generated/google/apis/youtube_v3.rb +1 -1
  147. data/generated/google/apis/youtube_v3/classes.rb +18 -143
  148. data/generated/google/apis/youtube_v3/representations.rb +0 -57
  149. data/generated/google/apis/youtube_v3/service.rb +0 -43
  150. data/lib/google/apis/version.rb +1 -23
  151. metadata +27 -263
  152. data/.github/CONTRIBUTING.md +0 -31
  153. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -36
  154. data/.github/ISSUE_TEMPLATE/feature_request.md +0 -21
  155. data/.github/ISSUE_TEMPLATE/support_request.md +0 -7
  156. data/.github/workflows/autoapprove.yml +0 -49
  157. data/.github/workflows/release-please.yml +0 -57
  158. data/.gitignore +0 -23
  159. data/.kokoro/build.bat +0 -11
  160. data/.kokoro/build.sh +0 -4
  161. data/.kokoro/continuous/common.cfg +0 -25
  162. data/.kokoro/continuous/linux.cfg +0 -25
  163. data/.kokoro/continuous/osx.cfg +0 -8
  164. data/.kokoro/continuous/post.cfg +0 -30
  165. data/.kokoro/continuous/windows.cfg +0 -29
  166. data/.kokoro/osx.sh +0 -4
  167. data/.kokoro/presubmit/common.cfg +0 -24
  168. data/.kokoro/presubmit/linux.cfg +0 -24
  169. data/.kokoro/presubmit/osx.cfg +0 -8
  170. data/.kokoro/presubmit/windows.cfg +0 -29
  171. data/.kokoro/release.cfg +0 -94
  172. data/.kokoro/trampoline.bat +0 -10
  173. data/.kokoro/trampoline.sh +0 -4
  174. data/.repo-metadata.json +0 -5
  175. data/.rspec +0 -2
  176. data/.rubocop.yml +0 -12
  177. data/.rubocop_todo.yml +0 -63
  178. data/CODE_OF_CONDUCT.md +0 -43
  179. data/Gemfile +0 -55
  180. data/MIGRATING.md +0 -215
  181. data/README.md +0 -402
  182. data/Rakefile +0 -131
  183. data/api_list_config.yaml +0 -9
  184. data/api_names.yaml +0 -1082
  185. data/bin/generate-api +0 -194
  186. data/docs/api-keys.md +0 -20
  187. data/docs/auth.md +0 -53
  188. data/docs/client-secrets.md +0 -69
  189. data/docs/getting-started.md +0 -340
  190. data/docs/installation.md +0 -0
  191. data/docs/logging.md +0 -34
  192. data/docs/media-upload.md +0 -25
  193. data/docs/oauth-installed.md +0 -191
  194. data/docs/oauth-server.md +0 -133
  195. data/docs/oauth-web.md +0 -280
  196. data/docs/oauth.md +0 -268
  197. data/docs/pagination.md +0 -29
  198. data/docs/performance.md +0 -25
  199. data/google-api-client.gemspec +0 -36
  200. data/lib/google/api_client/auth/installed_app.rb +0 -143
  201. data/lib/google/api_client/auth/key_utils.rb +0 -94
  202. data/lib/google/api_client/auth/storage.rb +0 -104
  203. data/lib/google/api_client/auth/storages/file_store.rb +0 -57
  204. data/lib/google/api_client/auth/storages/redis_store.rb +0 -59
  205. data/lib/google/api_client/client_secrets.rb +0 -176
  206. data/lib/google/apis.rb +0 -58
  207. data/lib/google/apis/core/api_command.rb +0 -209
  208. data/lib/google/apis/core/base_service.rb +0 -447
  209. data/lib/google/apis/core/batch.rb +0 -236
  210. data/lib/google/apis/core/composite_io.rb +0 -97
  211. data/lib/google/apis/core/download.rb +0 -118
  212. data/lib/google/apis/core/hashable.rb +0 -44
  213. data/lib/google/apis/core/http_command.rb +0 -447
  214. data/lib/google/apis/core/json_representation.rb +0 -153
  215. data/lib/google/apis/core/multipart.rb +0 -135
  216. data/lib/google/apis/core/upload.rb +0 -273
  217. data/lib/google/apis/errors.rb +0 -89
  218. data/lib/google/apis/generator.rb +0 -71
  219. data/lib/google/apis/generator/annotator.rb +0 -339
  220. data/lib/google/apis/generator/helpers.rb +0 -76
  221. data/lib/google/apis/generator/model.rb +0 -187
  222. data/lib/google/apis/generator/template.rb +0 -124
  223. data/lib/google/apis/generator/templates/_class.tmpl +0 -43
  224. data/lib/google/apis/generator/templates/_method.tmpl +0 -92
  225. data/lib/google/apis/generator/templates/_representation.tmpl +0 -51
  226. data/lib/google/apis/generator/templates/_representation_stub.tmpl +0 -17
  227. data/lib/google/apis/generator/templates/_representation_type.tmpl +0 -10
  228. data/lib/google/apis/generator/templates/classes.rb.tmpl +0 -29
  229. data/lib/google/apis/generator/templates/module.rb.tmpl +0 -40
  230. data/lib/google/apis/generator/templates/representations.rb.tmpl +0 -32
  231. data/lib/google/apis/generator/templates/service.rb.tmpl +0 -61
  232. data/lib/google/apis/options.rb +0 -116
  233. data/rakelib/devsite/devsite_builder.rb +0 -126
  234. data/rakelib/devsite/link_checker.rb +0 -64
  235. data/rakelib/devsite/repo_metadata.rb +0 -56
  236. data/rakelib/metrics.rake +0 -22
  237. data/rakelib/rubocop.rake +0 -10
  238. data/rakelib/spec.rake +0 -11
  239. data/rakelib/yard.rake +0 -11
  240. data/samples/cli/.env +0 -4
  241. data/samples/cli/Gemfile +0 -7
  242. data/samples/cli/README.md +0 -51
  243. data/samples/cli/google-api-samples +0 -32
  244. data/samples/cli/lib/base_cli.rb +0 -95
  245. data/samples/cli/lib/samples/adsense.rb +0 -99
  246. data/samples/cli/lib/samples/analytics.rb +0 -80
  247. data/samples/cli/lib/samples/androidpublisher.rb +0 -47
  248. data/samples/cli/lib/samples/bigquery.rb +0 -101
  249. data/samples/cli/lib/samples/calendar.rb +0 -83
  250. data/samples/cli/lib/samples/drive.rb +0 -82
  251. data/samples/cli/lib/samples/gmail.rb +0 -157
  252. data/samples/cli/lib/samples/pubsub.rb +0 -114
  253. data/samples/cli/lib/samples/sheets.rb +0 -61
  254. data/samples/cli/lib/samples/translate.rb +0 -44
  255. data/samples/cli/lib/samples/vision.rb +0 -69
  256. data/samples/cli/lib/samples/you_tube.rb +0 -47
  257. data/samples/web/Gemfile +0 -9
  258. data/samples/web/README.md +0 -44
  259. data/samples/web/app.rb +0 -120
  260. data/samples/web/views/calendar.erb +0 -34
  261. data/samples/web/views/drive.erb +0 -33
  262. data/samples/web/views/home.erb +0 -34
  263. data/samples/web/views/layout.erb +0 -40
  264. data/synth.py +0 -40
@@ -0,0 +1,442 @@
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 ApigatewayV1
24
+
25
+ class ApigatewayApi
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApigatewayApiConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ApigatewayApiConfigFile
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ApigatewayApiConfigGrpcServiceDefinition
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ApigatewayApiConfigOpenApiDocument
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ApigatewayAuditConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ApigatewayAuditLogConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ApigatewayBinding
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ApigatewayCancelOperationRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ApigatewayExpr
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ApigatewayGateway
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ApigatewayListApiConfigsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ApigatewayListApisResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ApigatewayListGatewaysResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ApigatewayListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ApigatewayListOperationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ApigatewayLocation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ApigatewayOperation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ApigatewayOperationMetadata
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ApigatewayOperationMetadataDiagnostic
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ApigatewayPolicy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ApigatewaySetIamPolicyRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ApigatewayStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class ApigatewayTestIamPermissionsRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class ApigatewayTestIamPermissionsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Empty
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ApigatewayApi
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :create_time, as: 'createTime'
185
+ property :display_name, as: 'displayName'
186
+ hash :labels, as: 'labels'
187
+ property :managed_service, as: 'managedService'
188
+ property :name, as: 'name'
189
+ property :state, as: 'state'
190
+ property :update_time, as: 'updateTime'
191
+ end
192
+ end
193
+
194
+ class ApigatewayApiConfig
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :create_time, as: 'createTime'
198
+ property :display_name, as: 'displayName'
199
+ property :gateway_service_account, as: 'gatewayServiceAccount'
200
+ collection :grpc_services, as: 'grpcServices', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigGrpcServiceDefinition, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigGrpcServiceDefinition::Representation
201
+
202
+ hash :labels, as: 'labels'
203
+ collection :managed_service_configs, as: 'managedServiceConfigs', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
204
+
205
+ property :name, as: 'name'
206
+ collection :openapi_documents, as: 'openapiDocuments', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigOpenApiDocument, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigOpenApiDocument::Representation
207
+
208
+ property :service_config_id, as: 'serviceConfigId'
209
+ property :state, as: 'state'
210
+ property :update_time, as: 'updateTime'
211
+ end
212
+ end
213
+
214
+ class ApigatewayApiConfigFile
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :contents, :base64 => true, as: 'contents'
218
+ property :path, as: 'path'
219
+ end
220
+ end
221
+
222
+ class ApigatewayApiConfigGrpcServiceDefinition
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :file_descriptor_set, as: 'fileDescriptorSet', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
226
+
227
+ collection :source, as: 'source', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
228
+
229
+ end
230
+ end
231
+
232
+ class ApigatewayApiConfigOpenApiDocument
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :document, as: 'document', class: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfigFile::Representation
236
+
237
+ end
238
+ end
239
+
240
+ class ApigatewayAuditConfig
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayAuditLogConfig::Representation
244
+
245
+ property :service, as: 'service'
246
+ end
247
+ end
248
+
249
+ class ApigatewayAuditLogConfig
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ collection :exempted_members, as: 'exemptedMembers'
253
+ property :log_type, as: 'logType'
254
+ end
255
+ end
256
+
257
+ class ApigatewayBinding
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :condition, as: 'condition', class: Google::Apis::ApigatewayV1::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1::ApigatewayExpr::Representation
261
+
262
+ collection :members, as: 'members'
263
+ property :role, as: 'role'
264
+ end
265
+ end
266
+
267
+ class ApigatewayCancelOperationRequest
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ end
271
+ end
272
+
273
+ class ApigatewayExpr
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :description, as: 'description'
277
+ property :expression, as: 'expression'
278
+ property :location, as: 'location'
279
+ property :title, as: 'title'
280
+ end
281
+ end
282
+
283
+ class ApigatewayGateway
284
+ # @private
285
+ class Representation < Google::Apis::Core::JsonRepresentation
286
+ property :api_config, as: 'apiConfig'
287
+ property :create_time, as: 'createTime'
288
+ property :default_hostname, as: 'defaultHostname'
289
+ property :display_name, as: 'displayName'
290
+ hash :labels, as: 'labels'
291
+ property :name, as: 'name'
292
+ property :state, as: 'state'
293
+ property :update_time, as: 'updateTime'
294
+ end
295
+ end
296
+
297
+ class ApigatewayListApiConfigsResponse
298
+ # @private
299
+ class Representation < Google::Apis::Core::JsonRepresentation
300
+ collection :api_configs, as: 'apiConfigs', class: Google::Apis::ApigatewayV1::ApigatewayApiConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayApiConfig::Representation
301
+
302
+ property :next_page_token, as: 'nextPageToken'
303
+ collection :unreachable_locations, as: 'unreachableLocations'
304
+ end
305
+ end
306
+
307
+ class ApigatewayListApisResponse
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ collection :apis, as: 'apis', class: Google::Apis::ApigatewayV1::ApigatewayApi, decorator: Google::Apis::ApigatewayV1::ApigatewayApi::Representation
311
+
312
+ property :next_page_token, as: 'nextPageToken'
313
+ collection :unreachable_locations, as: 'unreachableLocations'
314
+ end
315
+ end
316
+
317
+ class ApigatewayListGatewaysResponse
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ collection :gateways, as: 'gateways', class: Google::Apis::ApigatewayV1::ApigatewayGateway, decorator: Google::Apis::ApigatewayV1::ApigatewayGateway::Representation
321
+
322
+ property :next_page_token, as: 'nextPageToken'
323
+ collection :unreachable_locations, as: 'unreachableLocations'
324
+ end
325
+ end
326
+
327
+ class ApigatewayListLocationsResponse
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1::ApigatewayLocation::Representation
331
+
332
+ property :next_page_token, as: 'nextPageToken'
333
+ end
334
+ end
335
+
336
+ class ApigatewayListOperationsResponse
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :next_page_token, as: 'nextPageToken'
340
+ collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
341
+
342
+ end
343
+ end
344
+
345
+ class ApigatewayLocation
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :display_name, as: 'displayName'
349
+ hash :labels, as: 'labels'
350
+ property :location_id, as: 'locationId'
351
+ hash :metadata, as: 'metadata'
352
+ property :name, as: 'name'
353
+ end
354
+ end
355
+
356
+ class ApigatewayOperation
357
+ # @private
358
+ class Representation < Google::Apis::Core::JsonRepresentation
359
+ property :done, as: 'done'
360
+ property :error, as: 'error', class: Google::Apis::ApigatewayV1::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1::ApigatewayStatus::Representation
361
+
362
+ hash :metadata, as: 'metadata'
363
+ property :name, as: 'name'
364
+ hash :response, as: 'response'
365
+ end
366
+ end
367
+
368
+ class ApigatewayOperationMetadata
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :api_version, as: 'apiVersion'
372
+ property :create_time, as: 'createTime'
373
+ collection :diagnostics, as: 'diagnostics', class: Google::Apis::ApigatewayV1::ApigatewayOperationMetadataDiagnostic, decorator: Google::Apis::ApigatewayV1::ApigatewayOperationMetadataDiagnostic::Representation
374
+
375
+ property :end_time, as: 'endTime'
376
+ property :requested_cancellation, as: 'requestedCancellation'
377
+ property :status_message, as: 'statusMessage'
378
+ property :target, as: 'target'
379
+ property :verb, as: 'verb'
380
+ end
381
+ end
382
+
383
+ class ApigatewayOperationMetadataDiagnostic
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ property :location, as: 'location'
387
+ property :message, as: 'message'
388
+ end
389
+ end
390
+
391
+ class ApigatewayPolicy
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1::ApigatewayAuditConfig::Representation
395
+
396
+ collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1::ApigatewayBinding::Representation
397
+
398
+ property :etag, :base64 => true, as: 'etag'
399
+ property :version, as: 'version'
400
+ end
401
+ end
402
+
403
+ class ApigatewaySetIamPolicyRequest
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :policy, as: 'policy', class: Google::Apis::ApigatewayV1::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
407
+
408
+ property :update_mask, as: 'updateMask'
409
+ end
410
+ end
411
+
412
+ class ApigatewayStatus
413
+ # @private
414
+ class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :code, as: 'code'
416
+ collection :details, as: 'details'
417
+ property :message, as: 'message'
418
+ end
419
+ end
420
+
421
+ class ApigatewayTestIamPermissionsRequest
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ collection :permissions, as: 'permissions'
425
+ end
426
+ end
427
+
428
+ class ApigatewayTestIamPermissionsResponse
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ collection :permissions, as: 'permissions'
432
+ end
433
+ end
434
+
435
+ class Empty
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ end
439
+ end
440
+ end
441
+ end
442
+ end
@@ -0,0 +1,1172 @@
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 ApigatewayV1
23
+ # API Gateway API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/apigateway_v1'
29
+ #
30
+ # Apigateway = Google::Apis::ApigatewayV1 # 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::ApigatewayV1::ApigatewayLocation] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::ApigatewayV1::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, 'v1/{+name}', options)
72
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayLocation::Representation
73
+ command.response_class = Google::Apis::ApigatewayV1::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::ApigatewayV1::ApigatewayListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::ApigatewayV1::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, 'v1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::ApigatewayV1::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
+ # Creates a new Api in a given project and location.
120
+ # @param [String] parent
121
+ # Required. Parent resource of the API, of the form: `projects/*/locations/
122
+ # global`
123
+ # @param [Google::Apis::ApigatewayV1::ApigatewayApi] apigateway_api_object
124
+ # @param [String] api_id
125
+ # Required. Identifier to assign to the API. Must be unique within scope of the
126
+ # parent resource.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def create_project_location_api(parent, apigateway_api_object = nil, api_id: nil, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:post, 'v1/{+parent}/apis', options)
146
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayApi::Representation
147
+ command.request_object = apigateway_api_object
148
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
149
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
150
+ command.params['parent'] = parent unless parent.nil?
151
+ command.query['apiId'] = api_id unless api_id.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Deletes a single Api.
158
+ # @param [String] name
159
+ # Required. Resource name of the form: `projects/*/locations/global/apis/*`
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # @param [Google::Apis::RequestOptions] options
166
+ # Request-specific options
167
+ #
168
+ # @yield [result, err] Result & error if block supplied
169
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
170
+ # @yieldparam err [StandardError] error object if request failed
171
+ #
172
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
173
+ #
174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
177
+ def delete_project_location_api(name, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:delete, 'v1/{+name}', options)
179
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
180
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
181
+ command.params['name'] = name unless name.nil?
182
+ command.query['fields'] = fields unless fields.nil?
183
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ execute_or_queue_command(command, &block)
185
+ end
186
+
187
+ # Gets details of a single Api.
188
+ # @param [String] name
189
+ # Required. Resource name of the form: `projects/*/locations/global/apis/*`
190
+ # @param [String] fields
191
+ # Selector specifying which fields to include in a partial response.
192
+ # @param [String] quota_user
193
+ # Available to use for quota purposes for server-side applications. Can be any
194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
195
+ # @param [Google::Apis::RequestOptions] options
196
+ # Request-specific options
197
+ #
198
+ # @yield [result, err] Result & error if block supplied
199
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayApi] parsed result object
200
+ # @yieldparam err [StandardError] error object if request failed
201
+ #
202
+ # @return [Google::Apis::ApigatewayV1::ApigatewayApi]
203
+ #
204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
207
+ def get_project_location_api(name, fields: nil, quota_user: nil, options: nil, &block)
208
+ command = make_simple_command(:get, 'v1/{+name}', options)
209
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayApi::Representation
210
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayApi
211
+ command.params['name'] = name unless name.nil?
212
+ command.query['fields'] = fields unless fields.nil?
213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Gets the access control policy for a resource. Returns an empty policy if the
218
+ # resource exists and does not have a policy set.
219
+ # @param [String] resource
220
+ # REQUIRED: The resource for which the policy is being requested. See the
221
+ # operation documentation for the appropriate value for this field.
222
+ # @param [Fixnum] options_requested_policy_version
223
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
224
+ # 3. Requests specifying an invalid value will be rejected. Requests for
225
+ # policies with any conditional bindings must specify version 3. Policies
226
+ # without any conditional bindings may specify any valid value or leave the
227
+ # field unset. To learn which resources support conditions in their IAM policies,
228
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
229
+ # resource-policies).
230
+ # @param [String] fields
231
+ # Selector specifying which fields to include in a partial response.
232
+ # @param [String] quota_user
233
+ # Available to use for quota purposes for server-side applications. Can be any
234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
235
+ # @param [Google::Apis::RequestOptions] options
236
+ # Request-specific options
237
+ #
238
+ # @yield [result, err] Result & error if block supplied
239
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
240
+ # @yieldparam err [StandardError] error object if request failed
241
+ #
242
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
243
+ #
244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
247
+ def get_project_location_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
248
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
249
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
250
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
251
+ command.params['resource'] = resource unless resource.nil?
252
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
253
+ command.query['fields'] = fields unless fields.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ execute_or_queue_command(command, &block)
256
+ end
257
+
258
+ # Lists Apis in a given project and location.
259
+ # @param [String] parent
260
+ # Required. Parent resource of the API, of the form: `projects/*/locations/
261
+ # global`
262
+ # @param [String] filter
263
+ # Filter.
264
+ # @param [String] order_by
265
+ # Order by parameters.
266
+ # @param [Fixnum] page_size
267
+ # Page size.
268
+ # @param [String] page_token
269
+ # Page token.
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # @param [Google::Apis::RequestOptions] options
276
+ # Request-specific options
277
+ #
278
+ # @yield [result, err] Result & error if block supplied
279
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayListApisResponse] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::ApigatewayV1::ApigatewayListApisResponse]
283
+ #
284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
287
+ def list_project_location_apis(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
288
+ command = make_simple_command(:get, 'v1/{+parent}/apis', options)
289
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayListApisResponse::Representation
290
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayListApisResponse
291
+ command.params['parent'] = parent unless parent.nil?
292
+ command.query['filter'] = filter unless filter.nil?
293
+ command.query['orderBy'] = order_by unless order_by.nil?
294
+ command.query['pageSize'] = page_size unless page_size.nil?
295
+ command.query['pageToken'] = page_token unless page_token.nil?
296
+ command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
+ execute_or_queue_command(command, &block)
299
+ end
300
+
301
+ # Updates the parameters of a single Api.
302
+ # @param [String] name
303
+ # Output only. Resource name of the API. Format: projects/`project`/locations/
304
+ # global/apis/`api`
305
+ # @param [Google::Apis::ApigatewayV1::ApigatewayApi] apigateway_api_object
306
+ # @param [String] update_mask
307
+ # Field mask is used to specify the fields to be overwritten in the Api resource
308
+ # by the update. The fields specified in the update_mask are relative to the
309
+ # resource, not the full request. A field will be overwritten if it is in the
310
+ # mask. If the user does not provide a mask then all fields will be overwritten.
311
+ # @param [String] fields
312
+ # Selector specifying which fields to include in a partial response.
313
+ # @param [String] quota_user
314
+ # Available to use for quota purposes for server-side applications. Can be any
315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
316
+ # @param [Google::Apis::RequestOptions] options
317
+ # Request-specific options
318
+ #
319
+ # @yield [result, err] Result & error if block supplied
320
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
321
+ # @yieldparam err [StandardError] error object if request failed
322
+ #
323
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
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 patch_project_location_api(name, apigateway_api_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
329
+ command = make_simple_command(:patch, 'v1/{+name}', options)
330
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayApi::Representation
331
+ command.request_object = apigateway_api_object
332
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
333
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
334
+ command.params['name'] = name unless name.nil?
335
+ command.query['updateMask'] = update_mask unless update_mask.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Sets the access control policy on the specified resource. Replaces any
342
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
343
+ # PERMISSION_DENIED` errors.
344
+ # @param [String] resource
345
+ # REQUIRED: The resource for which the policy is being specified. See the
346
+ # operation documentation for the appropriate value for this field.
347
+ # @param [Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
348
+ # @param [String] fields
349
+ # Selector specifying which fields to include in a partial response.
350
+ # @param [String] quota_user
351
+ # Available to use for quota purposes for server-side applications. Can be any
352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
353
+ # @param [Google::Apis::RequestOptions] options
354
+ # Request-specific options
355
+ #
356
+ # @yield [result, err] Result & error if block supplied
357
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
358
+ # @yieldparam err [StandardError] error object if request failed
359
+ #
360
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
361
+ #
362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
365
+ def set_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
367
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest::Representation
368
+ command.request_object = apigateway_set_iam_policy_request_object
369
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
370
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
371
+ command.params['resource'] = resource unless resource.nil?
372
+ command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
+ execute_or_queue_command(command, &block)
375
+ end
376
+
377
+ # Returns permissions that a caller has on the specified resource. If the
378
+ # resource does not exist, this will return an empty set of permissions, not a `
379
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
380
+ # permission-aware UIs and command-line tools, not for authorization checking.
381
+ # This operation may "fail open" without warning.
382
+ # @param [String] resource
383
+ # REQUIRED: The resource for which the policy detail is being requested. See the
384
+ # operation documentation for the appropriate value for this field.
385
+ # @param [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
386
+ # @param [String] fields
387
+ # Selector specifying which fields to include in a partial response.
388
+ # @param [String] quota_user
389
+ # Available to use for quota purposes for server-side applications. Can be any
390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
391
+ # @param [Google::Apis::RequestOptions] options
392
+ # Request-specific options
393
+ #
394
+ # @yield [result, err] Result & error if block supplied
395
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse] parsed result object
396
+ # @yieldparam err [StandardError] error object if request failed
397
+ #
398
+ # @return [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse]
399
+ #
400
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
403
+ def test_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
404
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
405
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest::Representation
406
+ command.request_object = apigateway_test_iam_permissions_request_object
407
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse::Representation
408
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse
409
+ command.params['resource'] = resource unless resource.nil?
410
+ command.query['fields'] = fields unless fields.nil?
411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
412
+ execute_or_queue_command(command, &block)
413
+ end
414
+
415
+ # Creates a new ApiConfig in a given project and location.
416
+ # @param [String] parent
417
+ # Required. Parent resource of the API Config, of the form: `projects/*/
418
+ # locations/global/apis/*`
419
+ # @param [Google::Apis::ApigatewayV1::ApigatewayApiConfig] apigateway_api_config_object
420
+ # @param [String] api_config_id
421
+ # Required. Identifier to assign to the API Config. Must be unique within scope
422
+ # of the parent resource.
423
+ # @param [String] fields
424
+ # Selector specifying which fields to include in a partial response.
425
+ # @param [String] quota_user
426
+ # Available to use for quota purposes for server-side applications. Can be any
427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def create_project_location_api_config(parent, apigateway_api_config_object = nil, api_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
441
+ command = make_simple_command(:post, 'v1/{+parent}/configs', options)
442
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayApiConfig::Representation
443
+ command.request_object = apigateway_api_config_object
444
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
445
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
446
+ command.params['parent'] = parent unless parent.nil?
447
+ command.query['apiConfigId'] = api_config_id unless api_config_id.nil?
448
+ command.query['fields'] = fields unless fields.nil?
449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
450
+ execute_or_queue_command(command, &block)
451
+ end
452
+
453
+ # Deletes a single ApiConfig.
454
+ # @param [String] name
455
+ # Required. Resource name of the form: `projects/*/locations/global/apis/*/
456
+ # configs/*`
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def delete_project_location_api_config(name, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:delete, 'v1/{+name}', options)
476
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
477
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
478
+ command.params['name'] = name unless name.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Gets details of a single ApiConfig.
485
+ # @param [String] name
486
+ # Required. Resource name of the form: `projects/*/locations/global/apis/*/
487
+ # configs/*`
488
+ # @param [String] view
489
+ # Specifies which fields of the API Config are returned in the response.
490
+ # Defaults to `BASIC` view.
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
493
+ # @param [String] quota_user
494
+ # Available to use for quota purposes for server-side applications. Can be any
495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
496
+ # @param [Google::Apis::RequestOptions] options
497
+ # Request-specific options
498
+ #
499
+ # @yield [result, err] Result & error if block supplied
500
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayApiConfig] parsed result object
501
+ # @yieldparam err [StandardError] error object if request failed
502
+ #
503
+ # @return [Google::Apis::ApigatewayV1::ApigatewayApiConfig]
504
+ #
505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
508
+ def get_project_location_api_config(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
509
+ command = make_simple_command(:get, 'v1/{+name}', options)
510
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayApiConfig::Representation
511
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayApiConfig
512
+ command.params['name'] = name unless name.nil?
513
+ command.query['view'] = view unless view.nil?
514
+ command.query['fields'] = fields unless fields.nil?
515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
516
+ execute_or_queue_command(command, &block)
517
+ end
518
+
519
+ # Gets the access control policy for a resource. Returns an empty policy if the
520
+ # resource exists and does not have a policy set.
521
+ # @param [String] resource
522
+ # REQUIRED: The resource for which the policy is being requested. See the
523
+ # operation documentation for the appropriate value for this field.
524
+ # @param [Fixnum] options_requested_policy_version
525
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
526
+ # 3. Requests specifying an invalid value will be rejected. Requests for
527
+ # policies with any conditional bindings must specify version 3. Policies
528
+ # without any conditional bindings may specify any valid value or leave the
529
+ # field unset. To learn which resources support conditions in their IAM policies,
530
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
531
+ # resource-policies).
532
+ # @param [String] fields
533
+ # Selector specifying which fields to include in a partial response.
534
+ # @param [String] quota_user
535
+ # Available to use for quota purposes for server-side applications. Can be any
536
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
537
+ # @param [Google::Apis::RequestOptions] options
538
+ # Request-specific options
539
+ #
540
+ # @yield [result, err] Result & error if block supplied
541
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
542
+ # @yieldparam err [StandardError] error object if request failed
543
+ #
544
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
545
+ #
546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
549
+ def get_project_location_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
550
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
551
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
552
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
553
+ command.params['resource'] = resource unless resource.nil?
554
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
555
+ command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
+ execute_or_queue_command(command, &block)
558
+ end
559
+
560
+ # Lists ApiConfigs in a given project and location.
561
+ # @param [String] parent
562
+ # Required. Parent resource of the API Config, of the form: `projects/*/
563
+ # locations/global/apis/*`
564
+ # @param [String] filter
565
+ # Filter.
566
+ # @param [String] order_by
567
+ # Order by parameters.
568
+ # @param [Fixnum] page_size
569
+ # Page size.
570
+ # @param [String] page_token
571
+ # Page token.
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
574
+ # @param [String] quota_user
575
+ # Available to use for quota purposes for server-side applications. Can be any
576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
577
+ # @param [Google::Apis::RequestOptions] options
578
+ # Request-specific options
579
+ #
580
+ # @yield [result, err] Result & error if block supplied
581
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayListApiConfigsResponse] parsed result object
582
+ # @yieldparam err [StandardError] error object if request failed
583
+ #
584
+ # @return [Google::Apis::ApigatewayV1::ApigatewayListApiConfigsResponse]
585
+ #
586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
589
+ def list_project_location_api_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:get, 'v1/{+parent}/configs', options)
591
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayListApiConfigsResponse::Representation
592
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayListApiConfigsResponse
593
+ command.params['parent'] = parent unless parent.nil?
594
+ command.query['filter'] = filter unless filter.nil?
595
+ command.query['orderBy'] = order_by unless order_by.nil?
596
+ command.query['pageSize'] = page_size unless page_size.nil?
597
+ command.query['pageToken'] = page_token unless page_token.nil?
598
+ command.query['fields'] = fields unless fields.nil?
599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
600
+ execute_or_queue_command(command, &block)
601
+ end
602
+
603
+ # Updates the parameters of a single ApiConfig.
604
+ # @param [String] name
605
+ # Output only. Resource name of the API Config. Format: projects/`project`/
606
+ # locations/global/apis/`api`/configs/`api_config`
607
+ # @param [Google::Apis::ApigatewayV1::ApigatewayApiConfig] apigateway_api_config_object
608
+ # @param [String] update_mask
609
+ # Field mask is used to specify the fields to be overwritten in the ApiConfig
610
+ # resource by the update. The fields specified in the update_mask are relative
611
+ # to the resource, not the full request. A field will be overwritten if it is in
612
+ # the mask. If the user does not provide a mask then all fields will be
613
+ # overwritten.
614
+ # @param [String] fields
615
+ # Selector specifying which fields to include in a partial response.
616
+ # @param [String] quota_user
617
+ # Available to use for quota purposes for server-side applications. Can be any
618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
619
+ # @param [Google::Apis::RequestOptions] options
620
+ # Request-specific options
621
+ #
622
+ # @yield [result, err] Result & error if block supplied
623
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
624
+ # @yieldparam err [StandardError] error object if request failed
625
+ #
626
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
627
+ #
628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
631
+ def patch_project_location_api_config(name, apigateway_api_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
632
+ command = make_simple_command(:patch, 'v1/{+name}', options)
633
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayApiConfig::Representation
634
+ command.request_object = apigateway_api_config_object
635
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
636
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
637
+ command.params['name'] = name unless name.nil?
638
+ command.query['updateMask'] = update_mask unless update_mask.nil?
639
+ command.query['fields'] = fields unless fields.nil?
640
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
+ execute_or_queue_command(command, &block)
642
+ end
643
+
644
+ # Sets the access control policy on the specified resource. Replaces any
645
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
646
+ # PERMISSION_DENIED` errors.
647
+ # @param [String] resource
648
+ # REQUIRED: The resource for which the policy is being specified. See the
649
+ # operation documentation for the appropriate value for this field.
650
+ # @param [Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # @param [Google::Apis::RequestOptions] options
657
+ # Request-specific options
658
+ #
659
+ # @yield [result, err] Result & error if block supplied
660
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
661
+ # @yieldparam err [StandardError] error object if request failed
662
+ #
663
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
664
+ #
665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
668
+ def set_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
670
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest::Representation
671
+ command.request_object = apigateway_set_iam_policy_request_object
672
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
673
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
674
+ command.params['resource'] = resource unless resource.nil?
675
+ command.query['fields'] = fields unless fields.nil?
676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
677
+ execute_or_queue_command(command, &block)
678
+ end
679
+
680
+ # Returns permissions that a caller has on the specified resource. If the
681
+ # resource does not exist, this will return an empty set of permissions, not a `
682
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
683
+ # permission-aware UIs and command-line tools, not for authorization checking.
684
+ # This operation may "fail open" without warning.
685
+ # @param [String] resource
686
+ # REQUIRED: The resource for which the policy detail is being requested. See the
687
+ # operation documentation for the appropriate value for this field.
688
+ # @param [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
689
+ # @param [String] fields
690
+ # Selector specifying which fields to include in a partial response.
691
+ # @param [String] quota_user
692
+ # Available to use for quota purposes for server-side applications. Can be any
693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
694
+ # @param [Google::Apis::RequestOptions] options
695
+ # Request-specific options
696
+ #
697
+ # @yield [result, err] Result & error if block supplied
698
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse] parsed result object
699
+ # @yieldparam err [StandardError] error object if request failed
700
+ #
701
+ # @return [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse]
702
+ #
703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
706
+ def test_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
707
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
708
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest::Representation
709
+ command.request_object = apigateway_test_iam_permissions_request_object
710
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse::Representation
711
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse
712
+ command.params['resource'] = resource unless resource.nil?
713
+ command.query['fields'] = fields unless fields.nil?
714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
715
+ execute_or_queue_command(command, &block)
716
+ end
717
+
718
+ # Creates a new Gateway in a given project and location.
719
+ # @param [String] parent
720
+ # Required. Parent resource of the Gateway, of the form: `projects/*/locations/*`
721
+ # @param [Google::Apis::ApigatewayV1::ApigatewayGateway] apigateway_gateway_object
722
+ # @param [String] gateway_id
723
+ # Required. Identifier to assign to the Gateway. Must be unique within scope of
724
+ # the parent resource.
725
+ # @param [String] fields
726
+ # Selector specifying which fields to include in a partial response.
727
+ # @param [String] quota_user
728
+ # Available to use for quota purposes for server-side applications. Can be any
729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
730
+ # @param [Google::Apis::RequestOptions] options
731
+ # Request-specific options
732
+ #
733
+ # @yield [result, err] Result & error if block supplied
734
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
735
+ # @yieldparam err [StandardError] error object if request failed
736
+ #
737
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
738
+ #
739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
742
+ def create_project_location_gateway(parent, apigateway_gateway_object = nil, gateway_id: nil, fields: nil, quota_user: nil, options: nil, &block)
743
+ command = make_simple_command(:post, 'v1/{+parent}/gateways', options)
744
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayGateway::Representation
745
+ command.request_object = apigateway_gateway_object
746
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
747
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
748
+ command.params['parent'] = parent unless parent.nil?
749
+ command.query['gatewayId'] = gateway_id unless gateway_id.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Deletes a single Gateway.
756
+ # @param [String] name
757
+ # Required. Resource name of the form: `projects/*/locations/*/gateways/*`
758
+ # @param [String] fields
759
+ # Selector specifying which fields to include in a partial response.
760
+ # @param [String] quota_user
761
+ # Available to use for quota purposes for server-side applications. Can be any
762
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
763
+ # @param [Google::Apis::RequestOptions] options
764
+ # Request-specific options
765
+ #
766
+ # @yield [result, err] Result & error if block supplied
767
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
768
+ # @yieldparam err [StandardError] error object if request failed
769
+ #
770
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
771
+ #
772
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
773
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
774
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
775
+ def delete_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
776
+ command = make_simple_command(:delete, 'v1/{+name}', options)
777
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
778
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
779
+ command.params['name'] = name unless name.nil?
780
+ command.query['fields'] = fields unless fields.nil?
781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
782
+ execute_or_queue_command(command, &block)
783
+ end
784
+
785
+ # Gets details of a single Gateway.
786
+ # @param [String] name
787
+ # Required. Resource name of the form: `projects/*/locations/*/gateways/*`
788
+ # @param [String] fields
789
+ # Selector specifying which fields to include in a partial response.
790
+ # @param [String] quota_user
791
+ # Available to use for quota purposes for server-side applications. Can be any
792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
793
+ # @param [Google::Apis::RequestOptions] options
794
+ # Request-specific options
795
+ #
796
+ # @yield [result, err] Result & error if block supplied
797
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayGateway] parsed result object
798
+ # @yieldparam err [StandardError] error object if request failed
799
+ #
800
+ # @return [Google::Apis::ApigatewayV1::ApigatewayGateway]
801
+ #
802
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
803
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
804
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
805
+ def get_project_location_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
806
+ command = make_simple_command(:get, 'v1/{+name}', options)
807
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayGateway::Representation
808
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayGateway
809
+ command.params['name'] = name unless name.nil?
810
+ command.query['fields'] = fields unless fields.nil?
811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
812
+ execute_or_queue_command(command, &block)
813
+ end
814
+
815
+ # Gets the access control policy for a resource. Returns an empty policy if the
816
+ # resource exists and does not have a policy set.
817
+ # @param [String] resource
818
+ # REQUIRED: The resource for which the policy is being requested. See the
819
+ # operation documentation for the appropriate value for this field.
820
+ # @param [Fixnum] options_requested_policy_version
821
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
822
+ # 3. Requests specifying an invalid value will be rejected. Requests for
823
+ # policies with any conditional bindings must specify version 3. Policies
824
+ # without any conditional bindings may specify any valid value or leave the
825
+ # field unset. To learn which resources support conditions in their IAM policies,
826
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
827
+ # resource-policies).
828
+ # @param [String] fields
829
+ # Selector specifying which fields to include in a partial response.
830
+ # @param [String] quota_user
831
+ # Available to use for quota purposes for server-side applications. Can be any
832
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
833
+ # @param [Google::Apis::RequestOptions] options
834
+ # Request-specific options
835
+ #
836
+ # @yield [result, err] Result & error if block supplied
837
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
838
+ # @yieldparam err [StandardError] error object if request failed
839
+ #
840
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
841
+ #
842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
845
+ def get_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
846
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
847
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
848
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
849
+ command.params['resource'] = resource unless resource.nil?
850
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
851
+ command.query['fields'] = fields unless fields.nil?
852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
+ execute_or_queue_command(command, &block)
854
+ end
855
+
856
+ # Lists Gateways in a given project and location.
857
+ # @param [String] parent
858
+ # Required. Parent resource of the Gateway, of the form: `projects/*/locations/*`
859
+ # @param [String] filter
860
+ # Filter.
861
+ # @param [String] order_by
862
+ # Order by parameters.
863
+ # @param [Fixnum] page_size
864
+ # Page size.
865
+ # @param [String] page_token
866
+ # Page token.
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayListGatewaysResponse] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::ApigatewayV1::ApigatewayListGatewaysResponse]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def list_project_location_gateways(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:get, 'v1/{+parent}/gateways', options)
886
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayListGatewaysResponse::Representation
887
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayListGatewaysResponse
888
+ command.params['parent'] = parent unless parent.nil?
889
+ command.query['filter'] = filter unless filter.nil?
890
+ command.query['orderBy'] = order_by unless order_by.nil?
891
+ command.query['pageSize'] = page_size unless page_size.nil?
892
+ command.query['pageToken'] = page_token unless page_token.nil?
893
+ command.query['fields'] = fields unless fields.nil?
894
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
895
+ execute_or_queue_command(command, &block)
896
+ end
897
+
898
+ # Updates the parameters of a single Gateway.
899
+ # @param [String] name
900
+ # Output only. Resource name of the Gateway. Format: projects/`project`/
901
+ # locations/`location`/gateways/`gateway`
902
+ # @param [Google::Apis::ApigatewayV1::ApigatewayGateway] apigateway_gateway_object
903
+ # @param [String] update_mask
904
+ # Field mask is used to specify the fields to be overwritten in the Gateway
905
+ # resource by the update. The fields specified in the update_mask are relative
906
+ # to the resource, not the full request. A field will be overwritten if it is in
907
+ # the mask. If the user does not provide a mask then all fields will be
908
+ # overwritten.
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
911
+ # @param [String] quota_user
912
+ # Available to use for quota purposes for server-side applications. Can be any
913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def patch_project_location_gateway(name, apigateway_gateway_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:patch, 'v1/{+name}', options)
928
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayGateway::Representation
929
+ command.request_object = apigateway_gateway_object
930
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
931
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
932
+ command.params['name'] = name unless name.nil?
933
+ command.query['updateMask'] = update_mask unless update_mask.nil?
934
+ command.query['fields'] = fields unless fields.nil?
935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
939
+ # Sets the access control policy on the specified resource. Replaces any
940
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
941
+ # PERMISSION_DENIED` errors.
942
+ # @param [String] resource
943
+ # REQUIRED: The resource for which the policy is being specified. See the
944
+ # operation documentation for the appropriate value for this field.
945
+ # @param [Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # @param [Google::Apis::RequestOptions] options
952
+ # Request-specific options
953
+ #
954
+ # @yield [result, err] Result & error if block supplied
955
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayPolicy] parsed result object
956
+ # @yieldparam err [StandardError] error object if request failed
957
+ #
958
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
959
+ #
960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
963
+ def set_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
964
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
965
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewaySetIamPolicyRequest::Representation
966
+ command.request_object = apigateway_set_iam_policy_request_object
967
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayPolicy::Representation
968
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayPolicy
969
+ command.params['resource'] = resource unless resource.nil?
970
+ command.query['fields'] = fields unless fields.nil?
971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # Returns permissions that a caller has on the specified resource. If the
976
+ # resource does not exist, this will return an empty set of permissions, not a `
977
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
978
+ # permission-aware UIs and command-line tools, not for authorization checking.
979
+ # This operation may "fail open" without warning.
980
+ # @param [String] resource
981
+ # REQUIRED: The resource for which the policy detail is being requested. See the
982
+ # operation documentation for the appropriate value for this field.
983
+ # @param [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # Available to use for quota purposes for server-side applications. Can be any
988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
989
+ # @param [Google::Apis::RequestOptions] options
990
+ # Request-specific options
991
+ #
992
+ # @yield [result, err] Result & error if block supplied
993
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse] parsed result object
994
+ # @yieldparam err [StandardError] error object if request failed
995
+ #
996
+ # @return [Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse]
997
+ #
998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
+ def test_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1002
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1003
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsRequest::Representation
1004
+ command.request_object = apigateway_test_iam_permissions_request_object
1005
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse::Representation
1006
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayTestIamPermissionsResponse
1007
+ command.params['resource'] = resource unless resource.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
1013
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1014
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1015
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1016
+ # Clients can use Operations.GetOperation or other methods to check whether the
1017
+ # cancellation succeeded or whether the operation completed despite cancellation.
1018
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1019
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1020
+ # corresponding to `Code.CANCELLED`.
1021
+ # @param [String] name
1022
+ # The name of the operation resource to be cancelled.
1023
+ # @param [Google::Apis::ApigatewayV1::ApigatewayCancelOperationRequest] apigateway_cancel_operation_request_object
1024
+ # @param [String] fields
1025
+ # Selector specifying which fields to include in a partial response.
1026
+ # @param [String] quota_user
1027
+ # Available to use for quota purposes for server-side applications. Can be any
1028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
+ # @param [Google::Apis::RequestOptions] options
1030
+ # Request-specific options
1031
+ #
1032
+ # @yield [result, err] Result & error if block supplied
1033
+ # @yieldparam result [Google::Apis::ApigatewayV1::Empty] parsed result object
1034
+ # @yieldparam err [StandardError] error object if request failed
1035
+ #
1036
+ # @return [Google::Apis::ApigatewayV1::Empty]
1037
+ #
1038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
+ def cancel_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1043
+ command.request_representation = Google::Apis::ApigatewayV1::ApigatewayCancelOperationRequest::Representation
1044
+ command.request_object = apigateway_cancel_operation_request_object
1045
+ command.response_representation = Google::Apis::ApigatewayV1::Empty::Representation
1046
+ command.response_class = Google::Apis::ApigatewayV1::Empty
1047
+ command.params['name'] = name unless name.nil?
1048
+ command.query['fields'] = fields unless fields.nil?
1049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
+ execute_or_queue_command(command, &block)
1051
+ end
1052
+
1053
+ # Deletes a long-running operation. This method indicates that the client is no
1054
+ # longer interested in the operation result. It does not cancel the operation.
1055
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1056
+ # UNIMPLEMENTED`.
1057
+ # @param [String] name
1058
+ # The name of the operation resource to be deleted.
1059
+ # @param [String] fields
1060
+ # Selector specifying which fields to include in a partial response.
1061
+ # @param [String] quota_user
1062
+ # Available to use for quota purposes for server-side applications. Can be any
1063
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1064
+ # @param [Google::Apis::RequestOptions] options
1065
+ # Request-specific options
1066
+ #
1067
+ # @yield [result, err] Result & error if block supplied
1068
+ # @yieldparam result [Google::Apis::ApigatewayV1::Empty] parsed result object
1069
+ # @yieldparam err [StandardError] error object if request failed
1070
+ #
1071
+ # @return [Google::Apis::ApigatewayV1::Empty]
1072
+ #
1073
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1074
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1075
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1076
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1077
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1078
+ command.response_representation = Google::Apis::ApigatewayV1::Empty::Representation
1079
+ command.response_class = Google::Apis::ApigatewayV1::Empty
1080
+ command.params['name'] = name unless name.nil?
1081
+ command.query['fields'] = fields unless fields.nil?
1082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
+ execute_or_queue_command(command, &block)
1084
+ end
1085
+
1086
+ # Gets the latest state of a long-running operation. Clients can use this method
1087
+ # to poll the operation result at intervals as recommended by the API service.
1088
+ # @param [String] name
1089
+ # The name of the operation resource.
1090
+ # @param [String] fields
1091
+ # Selector specifying which fields to include in a partial response.
1092
+ # @param [String] quota_user
1093
+ # Available to use for quota purposes for server-side applications. Can be any
1094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1095
+ # @param [Google::Apis::RequestOptions] options
1096
+ # Request-specific options
1097
+ #
1098
+ # @yield [result, err] Result & error if block supplied
1099
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayOperation] parsed result object
1100
+ # @yieldparam err [StandardError] error object if request failed
1101
+ #
1102
+ # @return [Google::Apis::ApigatewayV1::ApigatewayOperation]
1103
+ #
1104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1108
+ command = make_simple_command(:get, 'v1/{+name}', options)
1109
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayOperation::Representation
1110
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayOperation
1111
+ command.params['name'] = name unless name.nil?
1112
+ command.query['fields'] = fields unless fields.nil?
1113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Lists operations that match the specified filter in the request. If the server
1118
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1119
+ # binding allows API services to override the binding to use different resource
1120
+ # name schemes, such as `users/*/operations`. To override the binding, API
1121
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1122
+ # service configuration. For backwards compatibility, the default name includes
1123
+ # the operations collection id, however overriding users must ensure the name
1124
+ # binding is the parent resource, without the operations collection id.
1125
+ # @param [String] name
1126
+ # The name of the operation's parent resource.
1127
+ # @param [String] filter
1128
+ # The standard list filter.
1129
+ # @param [Fixnum] page_size
1130
+ # The standard list page size.
1131
+ # @param [String] page_token
1132
+ # The standard list page token.
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # @param [Google::Apis::RequestOptions] options
1139
+ # Request-specific options
1140
+ #
1141
+ # @yield [result, err] Result & error if block supplied
1142
+ # @yieldparam result [Google::Apis::ApigatewayV1::ApigatewayListOperationsResponse] parsed result object
1143
+ # @yieldparam err [StandardError] error object if request failed
1144
+ #
1145
+ # @return [Google::Apis::ApigatewayV1::ApigatewayListOperationsResponse]
1146
+ #
1147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1150
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1151
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
1152
+ command.response_representation = Google::Apis::ApigatewayV1::ApigatewayListOperationsResponse::Representation
1153
+ command.response_class = Google::Apis::ApigatewayV1::ApigatewayListOperationsResponse
1154
+ command.params['name'] = name unless name.nil?
1155
+ command.query['filter'] = filter unless filter.nil?
1156
+ command.query['pageSize'] = page_size unless page_size.nil?
1157
+ command.query['pageToken'] = page_token unless page_token.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ execute_or_queue_command(command, &block)
1161
+ end
1162
+
1163
+ protected
1164
+
1165
+ def apply_command_defaults(command)
1166
+ command.query['key'] = key unless key.nil?
1167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1168
+ end
1169
+ end
1170
+ end
1171
+ end
1172
+ end