google-api-client 0.51.0 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +23 -45
  3. data/CHANGELOG.md +100 -0
  4. data/README.md +2 -2
  5. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  6. data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
  7. data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
  8. data/generated/google/apis/admin_directory_v1.rb +2 -2
  9. data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
  10. data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
  11. data/generated/google/apis/admin_directory_v1/service.rb +323 -183
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
  14. data/generated/google/apis/admin_reports_v1/service.rb +198 -179
  15. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +1 -1
  17. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  18. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
  19. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
  20. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  21. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
  22. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  23. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  24. data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
  25. data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
  26. data/generated/google/apis/apigee_v1.rb +1 -1
  27. data/generated/google/apis/apigee_v1/classes.rb +71 -0
  28. data/generated/google/apis/apigee_v1/representations.rb +42 -0
  29. data/generated/google/apis/apigee_v1/service.rb +206 -0
  30. data/generated/google/apis/appengine_v1.rb +1 -1
  31. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  32. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  33. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  34. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
  35. data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
  36. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  37. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
  38. data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
  39. data/generated/google/apis/cloudasset_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  41. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  43. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  44. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
  45. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  46. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  47. data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
  48. data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
  49. data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
  52. data/generated/google/apis/cloudkms_v1.rb +1 -1
  53. data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
  54. data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
  55. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
  57. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
  59. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  60. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
  61. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
  62. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
  64. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
  65. data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
  66. data/generated/google/apis/composer_v1beta1.rb +1 -1
  67. data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
  68. data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +1071 -341
  71. data/generated/google/apis/compute_alpha/representations.rb +248 -19
  72. data/generated/google/apis/compute_alpha/service.rb +291 -15
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +926 -283
  75. data/generated/google/apis/compute_beta/representations.rb +221 -18
  76. data/generated/google/apis/compute_beta/service.rb +24 -15
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +419 -158
  79. data/generated/google/apis/compute_v1/representations.rb +55 -0
  80. data/generated/google/apis/compute_v1/service.rb +9 -7
  81. data/generated/google/apis/container_v1.rb +1 -1
  82. data/generated/google/apis/container_v1/classes.rb +48 -9
  83. data/generated/google/apis/container_v1/representations.rb +17 -0
  84. data/generated/google/apis/container_v1/service.rb +4 -2
  85. data/generated/google/apis/container_v1beta1.rb +1 -1
  86. data/generated/google/apis/container_v1beta1/classes.rb +24 -13
  87. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  88. data/generated/google/apis/container_v1beta1/service.rb +6 -2
  89. data/generated/google/apis/content_v2_1.rb +1 -1
  90. data/generated/google/apis/content_v2_1/classes.rb +16 -7
  91. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  92. data/generated/google/apis/datamigration_v1beta1.rb +1 -1
  93. data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
  94. data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
  95. data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
  96. data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
  97. data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
  98. data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
  99. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  100. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
  101. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
  103. data/generated/google/apis/dialogflow_v2.rb +1 -1
  104. data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
  105. data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
  106. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
  109. data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
  110. data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
  111. data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
  112. data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
  113. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  114. data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
  115. data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
  116. data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
  117. data/generated/google/apis/dlp_v2.rb +1 -1
  118. data/generated/google/apis/dlp_v2/service.rb +294 -1
  119. data/generated/google/apis/dns_v1.rb +1 -1
  120. data/generated/google/apis/dns_v1/classes.rb +65 -0
  121. data/generated/google/apis/dns_v1/representations.rb +32 -0
  122. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  123. data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
  124. data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
  125. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  126. data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
  127. data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
  128. data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
  129. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  130. data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
  131. data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
  132. data/generated/google/apis/file_v1.rb +1 -1
  133. data/generated/google/apis/file_v1/classes.rb +61 -0
  134. data/generated/google/apis/file_v1/representations.rb +19 -0
  135. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  136. data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
  137. data/generated/google/apis/healthcare_v1.rb +1 -1
  138. data/generated/google/apis/healthcare_v1/classes.rb +0 -6
  139. data/generated/google/apis/healthcare_v1/representations.rb +0 -1
  140. data/generated/google/apis/healthcare_v1/service.rb +13 -12
  141. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  142. data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
  143. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
  144. data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
  145. data/generated/google/apis/iap_v1.rb +1 -1
  146. data/generated/google/apis/iap_v1/classes.rb +0 -6
  147. data/generated/google/apis/iap_v1/representations.rb +0 -1
  148. data/generated/google/apis/iap_v1beta1.rb +1 -1
  149. data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
  150. data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/metastore_v1beta.rb +35 -0
  152. data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
  153. data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
  154. data/generated/google/apis/metastore_v1beta/service.rb +800 -0
  155. data/generated/google/apis/ml_v1.rb +1 -1
  156. data/generated/google/apis/ml_v1/classes.rb +51 -18
  157. data/generated/google/apis/ml_v1/representations.rb +16 -0
  158. data/generated/google/apis/monitoring_v3.rb +1 -1
  159. data/generated/google/apis/monitoring_v3/classes.rb +8 -4
  160. data/generated/google/apis/privateca_v1beta1.rb +1 -1
  161. data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
  162. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  163. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
  164. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
  165. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  166. data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
  167. data/generated/google/apis/redis_v1.rb +1 -1
  168. data/generated/google/apis/redis_v1/classes.rb +2 -2
  169. data/generated/google/apis/redis_v1beta1.rb +1 -1
  170. data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
  171. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  172. data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
  173. data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
  174. data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
  175. data/generated/google/apis/searchconsole_v1.rb +1 -1
  176. data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
  177. data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
  178. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  179. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
  180. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  181. data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
  182. data/generated/google/apis/servicecontrol_v2.rb +3 -3
  183. data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
  184. data/generated/google/apis/servicedirectory_v1.rb +35 -0
  185. data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
  186. data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
  187. data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
  188. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  189. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  190. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  191. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  192. data/generated/google/apis/serviceusage_v1.rb +1 -1
  193. data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
  194. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  195. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
  196. data/generated/google/apis/slides_v1.rb +1 -1
  197. data/generated/google/apis/slides_v1/classes.rb +9 -3
  198. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  199. data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
  200. data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
  201. data/generated/google/apis/testing_v1.rb +1 -1
  202. data/generated/google/apis/testing_v1/classes.rb +1 -1
  203. data/generated/google/apis/trafficdirector_v2.rb +2 -2
  204. data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
  205. data/generated/google/apis/transcoder_v1beta1.rb +1 -1
  206. data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
  207. data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
  208. data/generated/google/apis/translate_v3.rb +1 -1
  209. data/generated/google/apis/translate_v3/classes.rb +1 -1
  210. data/generated/google/apis/translate_v3beta1.rb +1 -1
  211. data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
  212. data/generated/google/apis/workflows_v1beta.rb +1 -1
  213. data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
  214. data/lib/google/apis/version.rb +1 -1
  215. metadata +15 -7
  216. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
  217. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
  218. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -1,622 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module BigqueryreservationV1alpha2
23
- # BigQuery Reservation API
24
- #
25
- # A service to modify your BigQuery flat-rate reservations.
26
- #
27
- # @example
28
- # require 'google/apis/bigqueryreservation_v1alpha2'
29
- #
30
- # Bigqueryreservation = Google::Apis::BigqueryreservationV1alpha2 # Alias the module
31
- # service = Bigqueryreservation::BigQueryReservationService.new
32
- #
33
- # @see https://cloud.google.com/bigquery/
34
- class BigQueryReservationService < 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://bigqueryreservation.googleapis.com/', '')
47
- @batch_path = 'batch'
48
- end
49
-
50
- # Look up grants for a specified resource for a particular region. If the
51
- # request is about a project: 1) Grants created on the project will be returned
52
- # if they exist. 2) Otherwise grants created on the closest ancestor will be
53
- # returned. 3) Grants for different JobTypes will all be returned. Same logic
54
- # applies if the request is about a folder. If the request is about an
55
- # organization, then grants created on the organization will be returned (
56
- # organization doesn't have ancestors). Comparing to ListReservationGrants,
57
- # there are two behavior differences: 1) permission on the grantee will be
58
- # verified in this API. 2) Hierarchy lookup (project->folder->organization)
59
- # happens in this API.
60
- # @param [String] parent
61
- # The parent resource name (containing project and location), which owns the
62
- # grants. e.g.: "projects/myproject/locations/us-central1".
63
- # @param [Fixnum] page_size
64
- # The maximum number of items to return.
65
- # @param [String] page_token
66
- # The next_page_token value returned from a previous List request, if any.
67
- # @param [String] query
68
- # Please specify resource name as grantee in the query. e.g., "grantee=projects/
69
- # myproject" "grantee=folders/123" "grantee=organizations/456"
70
- # @param [String] fields
71
- # Selector specifying which fields to include in a partial response.
72
- # @param [String] quota_user
73
- # Available to use for quota purposes for server-side applications. Can be any
74
- # arbitrary string assigned to a user, but should not exceed 40 characters.
75
- # @param [Google::Apis::RequestOptions] options
76
- # Request-specific options
77
- #
78
- # @yield [result, err] Result & error if block supplied
79
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse] parsed result object
80
- # @yieldparam err [StandardError] error object if request failed
81
- #
82
- # @return [Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse]
83
- #
84
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
- # @raise [Google::Apis::AuthorizationError] Authorization is required
87
- def search_project_location_reservation_grants(parent, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
88
- command = make_simple_command(:get, 'v1alpha2/{+parent}:SearchReservationGrants', options)
89
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse::Representation
90
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::SearchReservationGrantsResponse
91
- command.params['parent'] = parent unless parent.nil?
92
- command.query['pageSize'] = page_size unless page_size.nil?
93
- command.query['pageToken'] = page_token unless page_token.nil?
94
- command.query['query'] = query unless query.nil?
95
- command.query['fields'] = fields unless fields.nil?
96
- command.query['quotaUser'] = quota_user unless quota_user.nil?
97
- execute_or_queue_command(command, &block)
98
- end
99
-
100
- # Starts asynchronous cancellation on a long-running operation. The server makes
101
- # a best effort to cancel the operation, but success is not guaranteed. If the
102
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
103
- # Clients can use Operations.GetOperation or other methods to check whether the
104
- # cancellation succeeded or whether the operation completed despite cancellation.
105
- # On successful cancellation, the operation is not deleted; instead, it becomes
106
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
107
- # corresponding to `Code.CANCELLED`.
108
- # @param [String] name
109
- # The name of the operation resource to be cancelled.
110
- # @param [String] fields
111
- # Selector specifying which fields to include in a partial response.
112
- # @param [String] quota_user
113
- # Available to use for quota purposes for server-side applications. Can be any
114
- # arbitrary string assigned to a user, but should not exceed 40 characters.
115
- # @param [Google::Apis::RequestOptions] options
116
- # Request-specific options
117
- #
118
- # @yield [result, err] Result & error if block supplied
119
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
120
- # @yieldparam err [StandardError] error object if request failed
121
- #
122
- # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
123
- #
124
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
- # @raise [Google::Apis::AuthorizationError] Authorization is required
127
- def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
128
- command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
129
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
130
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
131
- command.params['name'] = name unless name.nil?
132
- command.query['fields'] = fields unless fields.nil?
133
- command.query['quotaUser'] = quota_user unless quota_user.nil?
134
- execute_or_queue_command(command, &block)
135
- end
136
-
137
- # Gets the latest state of a long-running operation. Clients can use this method
138
- # to poll the operation result at intervals as recommended by the API service.
139
- # @param [String] name
140
- # The name of the operation resource.
141
- # @param [String] fields
142
- # Selector specifying which fields to include in a partial response.
143
- # @param [String] quota_user
144
- # Available to use for quota purposes for server-side applications. Can be any
145
- # arbitrary string assigned to a user, but should not exceed 40 characters.
146
- # @param [Google::Apis::RequestOptions] options
147
- # Request-specific options
148
- #
149
- # @yield [result, err] Result & error if block supplied
150
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Operation] parsed result object
151
- # @yieldparam err [StandardError] error object if request failed
152
- #
153
- # @return [Google::Apis::BigqueryreservationV1alpha2::Operation]
154
- #
155
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
- # @raise [Google::Apis::AuthorizationError] Authorization is required
158
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
159
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
160
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Operation::Representation
161
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Operation
162
- command.params['name'] = name unless name.nil?
163
- command.query['fields'] = fields unless fields.nil?
164
- command.query['quotaUser'] = quota_user unless quota_user.nil?
165
- execute_or_queue_command(command, &block)
166
- end
167
-
168
- # Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.
169
- # admin' permissions on the project using the reservation and the project that
170
- # owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when
171
- # location of the grant does not match location of the reservation.
172
- # @param [String] parent
173
- # The parent resource name of the reservation grant E.g.: projects/myproject/
174
- # location/eu.
175
- # @param [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] reservation_grant_object
176
- # @param [String] fields
177
- # Selector specifying which fields to include in a partial response.
178
- # @param [String] quota_user
179
- # Available to use for quota purposes for server-side applications. Can be any
180
- # arbitrary string assigned to a user, but should not exceed 40 characters.
181
- # @param [Google::Apis::RequestOptions] options
182
- # Request-specific options
183
- #
184
- # @yield [result, err] Result & error if block supplied
185
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant] parsed result object
186
- # @yieldparam err [StandardError] error object if request failed
187
- #
188
- # @return [Google::Apis::BigqueryreservationV1alpha2::ReservationGrant]
189
- #
190
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
- # @raise [Google::Apis::AuthorizationError] Authorization is required
193
- def create_project_location_reservation_grant(parent, reservation_grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
194
- command = make_simple_command(:post, 'v1alpha2/{+parent}/reservationGrants', options)
195
- command.request_representation = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
196
- command.request_object = reservation_grant_object
197
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
198
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::ReservationGrant
199
- command.params['parent'] = parent unless parent.nil?
200
- command.query['fields'] = fields unless fields.nil?
201
- command.query['quotaUser'] = quota_user unless quota_user.nil?
202
- execute_or_queue_command(command, &block)
203
- end
204
-
205
- # Deletes a reservation grant. No expansion will happen. E.g: organizationA
206
- # contains project1 and project2. Reservation res1 exists.
207
- # CreateReservationGrant was invoked previously and following grants were
208
- # created explicitly: Then deletion of won't affect . After deletion of ,
209
- # queries from project1 will still use res1, while queries from project2 will
210
- # use on-demand mode.
211
- # @param [String] name
212
- # Name of the resource, e.g.: projects/myproject/locations/eu/reservationGrants/
213
- # 123
214
- # @param [String] fields
215
- # Selector specifying which fields to include in a partial response.
216
- # @param [String] quota_user
217
- # Available to use for quota purposes for server-side applications. Can be any
218
- # arbitrary string assigned to a user, but should not exceed 40 characters.
219
- # @param [Google::Apis::RequestOptions] options
220
- # Request-specific options
221
- #
222
- # @yield [result, err] Result & error if block supplied
223
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
224
- # @yieldparam err [StandardError] error object if request failed
225
- #
226
- # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
227
- #
228
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
- # @raise [Google::Apis::AuthorizationError] Authorization is required
231
- def delete_project_location_reservation_grant(name, fields: nil, quota_user: nil, options: nil, &block)
232
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
233
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
234
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
235
- command.params['name'] = name unless name.nil?
236
- command.query['fields'] = fields unless fields.nil?
237
- command.query['quotaUser'] = quota_user unless quota_user.nil?
238
- execute_or_queue_command(command, &block)
239
- end
240
-
241
- # Lists reservation grants. Only explicitly created grants will be returned. E.g:
242
- # organizationA contains project1 and project2. Reservation res1 exists.
243
- # CreateReservationGrant was invoked previously and following grants were
244
- # created explicitly: Then this API will just return the above two grants for
245
- # reservation res1, and no expansion/merge will happen.
246
- # @param [String] parent
247
- # The parent resource name e.g.: projects/myproject/location/eu.
248
- # @param [Fixnum] page_size
249
- # The maximum number of items to return.
250
- # @param [String] page_token
251
- # The next_page_token value returned from a previous List request, if any.
252
- # @param [String] fields
253
- # Selector specifying which fields to include in a partial response.
254
- # @param [String] quota_user
255
- # Available to use for quota purposes for server-side applications. Can be any
256
- # arbitrary string assigned to a user, but should not exceed 40 characters.
257
- # @param [Google::Apis::RequestOptions] options
258
- # Request-specific options
259
- #
260
- # @yield [result, err] Result & error if block supplied
261
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse] parsed result object
262
- # @yieldparam err [StandardError] error object if request failed
263
- #
264
- # @return [Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse]
265
- #
266
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
267
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
268
- # @raise [Google::Apis::AuthorizationError] Authorization is required
269
- def list_project_location_reservation_grants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
270
- command = make_simple_command(:get, 'v1alpha2/{+parent}/reservationGrants', options)
271
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse::Representation
272
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListReservationGrantsResponse
273
- command.params['parent'] = parent unless parent.nil?
274
- command.query['pageSize'] = page_size unless page_size.nil?
275
- command.query['pageToken'] = page_token unless page_token.nil?
276
- command.query['fields'] = fields unless fields.nil?
277
- command.query['quotaUser'] = quota_user unless quota_user.nil?
278
- execute_or_queue_command(command, &block)
279
- end
280
-
281
- # Creates a new reservation resource. Multiple reservations are created if the
282
- # ancestor reservations do not exist.
283
- # @param [String] parent
284
- # Project, location, and (optionally) reservation name. E.g., projects/myproject/
285
- # locations/us-central1/reservations/parent
286
- # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
287
- # @param [String] reservation_id
288
- # The reservation ID relative to the parent, e.g., "dev". This field must only
289
- # contain alphanumeric characters.
290
- # @param [String] fields
291
- # Selector specifying which fields to include in a partial response.
292
- # @param [String] quota_user
293
- # Available to use for quota purposes for server-side applications. Can be any
294
- # arbitrary string assigned to a user, but should not exceed 40 characters.
295
- # @param [Google::Apis::RequestOptions] options
296
- # Request-specific options
297
- #
298
- # @yield [result, err] Result & error if block supplied
299
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
300
- # @yieldparam err [StandardError] error object if request failed
301
- #
302
- # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
303
- #
304
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
305
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
306
- # @raise [Google::Apis::AuthorizationError] Authorization is required
307
- def create_project_location_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
308
- command = make_simple_command(:post, 'v1alpha2/{+parent}/reservations', options)
309
- command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
310
- command.request_object = reservation_object
311
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
312
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
313
- command.params['parent'] = parent unless parent.nil?
314
- command.query['reservationId'] = reservation_id unless reservation_id.nil?
315
- command.query['fields'] = fields unless fields.nil?
316
- command.query['quotaUser'] = quota_user unless quota_user.nil?
317
- execute_or_queue_command(command, &block)
318
- end
319
-
320
- # Creates a new reservation resource. Multiple reservations are created if the
321
- # ancestor reservations do not exist.
322
- # @param [String] parent
323
- # Project, location, and (optionally) reservation name. E.g., projects/myproject/
324
- # locations/us-central1/reservations/parent
325
- # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
326
- # @param [String] reservation_id
327
- # The reservation ID relative to the parent, e.g., "dev". This field must only
328
- # contain alphanumeric characters.
329
- # @param [String] fields
330
- # Selector specifying which fields to include in a partial response.
331
- # @param [String] quota_user
332
- # Available to use for quota purposes for server-side applications. Can be any
333
- # arbitrary string assigned to a user, but should not exceed 40 characters.
334
- # @param [Google::Apis::RequestOptions] options
335
- # Request-specific options
336
- #
337
- # @yield [result, err] Result & error if block supplied
338
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
339
- # @yieldparam err [StandardError] error object if request failed
340
- #
341
- # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
342
- #
343
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
- # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- def create_project_location_reservation_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
347
- command = make_simple_command(:post, 'v1alpha2/{+parent}', options)
348
- command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
349
- command.request_object = reservation_object
350
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
351
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
352
- command.params['parent'] = parent unless parent.nil?
353
- command.query['reservationId'] = reservation_id unless reservation_id.nil?
354
- command.query['fields'] = fields unless fields.nil?
355
- command.query['quotaUser'] = quota_user unless quota_user.nil?
356
- execute_or_queue_command(command, &block)
357
- end
358
-
359
- # Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` in the
360
- # following cases: 1. When reservation has child reservations. This check can be
361
- # bypassed by setting DeleteReservationRequest.force flag to true. 2. When top-
362
- # level reservation with slot pools is being deleted.
363
- # @param [String] name
364
- # Resource name of the reservation to retrieve. E.g., projects/myproject/
365
- # locations/us-central1/reservations/my_reservation
366
- # @param [Boolean] force
367
- # If true, deletes all the child reservations of the given reservation.
368
- # Otherwise, attempting to delete a reservation that has child reservations will
369
- # fail with error code `google.rpc.Code.FAILED_PRECONDITION`.
370
- # @param [String] fields
371
- # Selector specifying which fields to include in a partial response.
372
- # @param [String] quota_user
373
- # Available to use for quota purposes for server-side applications. Can be any
374
- # arbitrary string assigned to a user, but should not exceed 40 characters.
375
- # @param [Google::Apis::RequestOptions] options
376
- # Request-specific options
377
- #
378
- # @yield [result, err] Result & error if block supplied
379
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
380
- # @yieldparam err [StandardError] error object if request failed
381
- #
382
- # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
383
- #
384
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
- # @raise [Google::Apis::AuthorizationError] Authorization is required
387
- def delete_project_location_reservation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
388
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
389
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
390
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
391
- command.params['name'] = name unless name.nil?
392
- command.query['force'] = force unless force.nil?
393
- command.query['fields'] = fields unless fields.nil?
394
- command.query['quotaUser'] = quota_user unless quota_user.nil?
395
- execute_or_queue_command(command, &block)
396
- end
397
-
398
- # Returns information about the reservation.
399
- # @param [String] name
400
- # Resource name of the reservation to retrieve. E.g., projects/myproject/
401
- # locations/us-central1/reservations/path/to/reserv
402
- # @param [String] fields
403
- # Selector specifying which fields to include in a partial response.
404
- # @param [String] quota_user
405
- # Available to use for quota purposes for server-side applications. Can be any
406
- # arbitrary string assigned to a user, but should not exceed 40 characters.
407
- # @param [Google::Apis::RequestOptions] options
408
- # Request-specific options
409
- #
410
- # @yield [result, err] Result & error if block supplied
411
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
412
- # @yieldparam err [StandardError] error object if request failed
413
- #
414
- # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
415
- #
416
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
- # @raise [Google::Apis::AuthorizationError] Authorization is required
419
- def get_project_location_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
420
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
421
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
422
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
423
- command.params['name'] = name unless name.nil?
424
- command.query['fields'] = fields unless fields.nil?
425
- command.query['quotaUser'] = quota_user unless quota_user.nil?
426
- execute_or_queue_command(command, &block)
427
- end
428
-
429
- # Lists all the reservations for the project in the specified location.
430
- # @param [String] parent
431
- # The parent resource name containing project and location, e.g.: "projects/
432
- # myproject/locations/us-central1"
433
- # @param [String] filter
434
- # Can be used to filter out reservations based on names, capacity, etc, e.g.:
435
- # filter="reservation.slot_capacity > 200" filter="reservation.name = \"*dev/*\""
436
- # Advanced filtering syntax can be [here](https://cloud.google.com/logging/docs/
437
- # view/advanced-filters).
438
- # @param [Fixnum] page_size
439
- # The maximum number of items to return.
440
- # @param [String] page_token
441
- # The next_page_token value returned from a previous List request, if any.
442
- # @param [String] fields
443
- # Selector specifying which fields to include in a partial response.
444
- # @param [String] quota_user
445
- # Available to use for quota purposes for server-side applications. Can be any
446
- # arbitrary string assigned to a user, but should not exceed 40 characters.
447
- # @param [Google::Apis::RequestOptions] options
448
- # Request-specific options
449
- #
450
- # @yield [result, err] Result & error if block supplied
451
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse] parsed result object
452
- # @yieldparam err [StandardError] error object if request failed
453
- #
454
- # @return [Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse]
455
- #
456
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
- # @raise [Google::Apis::AuthorizationError] Authorization is required
459
- def list_project_location_reservations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
460
- command = make_simple_command(:get, 'v1alpha2/{+parent}/reservations', options)
461
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse::Representation
462
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListReservationsResponse
463
- command.params['parent'] = parent unless parent.nil?
464
- command.query['filter'] = filter unless filter.nil?
465
- command.query['pageSize'] = page_size unless page_size.nil?
466
- command.query['pageToken'] = page_token unless page_token.nil?
467
- command.query['fields'] = fields unless fields.nil?
468
- command.query['quotaUser'] = quota_user unless quota_user.nil?
469
- execute_or_queue_command(command, &block)
470
- end
471
-
472
- # Updates an existing reservation resource. Applicable only for child
473
- # reservations.
474
- # @param [String] name
475
- # The resource name of the reservation, e.g., "projects/*/locations/*/
476
- # reservations/dev/team/product". Reservation names (e.g., "dev/team/product")
477
- # exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.
478
- # @param [Google::Apis::BigqueryreservationV1alpha2::Reservation] reservation_object
479
- # @param [String] update_mask
480
- # Standard field mask for the set of fields to be updated.
481
- # @param [String] fields
482
- # Selector specifying which fields to include in a partial response.
483
- # @param [String] quota_user
484
- # Available to use for quota purposes for server-side applications. Can be any
485
- # arbitrary string assigned to a user, but should not exceed 40 characters.
486
- # @param [Google::Apis::RequestOptions] options
487
- # Request-specific options
488
- #
489
- # @yield [result, err] Result & error if block supplied
490
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Reservation] parsed result object
491
- # @yieldparam err [StandardError] error object if request failed
492
- #
493
- # @return [Google::Apis::BigqueryreservationV1alpha2::Reservation]
494
- #
495
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
- # @raise [Google::Apis::AuthorizationError] Authorization is required
498
- def patch_project_location_reservation(name, reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
499
- command = make_simple_command(:patch, 'v1alpha2/{+name}', options)
500
- command.request_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
501
- command.request_object = reservation_object
502
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
503
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Reservation
504
- command.params['name'] = name unless name.nil?
505
- command.query['updateMask'] = update_mask unless update_mask.nil?
506
- command.query['fields'] = fields unless fields.nil?
507
- command.query['quotaUser'] = quota_user unless quota_user.nil?
508
- execute_or_queue_command(command, &block)
509
- end
510
-
511
- # Deletes a slot pool. Attempting to delete slot pool before its
512
- # commitment_end_time will fail with the error code `google.rpc.Code.
513
- # FAILED_PRECONDITION`.
514
- # @param [String] name
515
- # Resource name of the slot pool to delete. E.g., projects/myproject/locations/
516
- # us-central1/reservations/my_reservation/slotPools/123
517
- # @param [String] fields
518
- # Selector specifying which fields to include in a partial response.
519
- # @param [String] quota_user
520
- # Available to use for quota purposes for server-side applications. Can be any
521
- # arbitrary string assigned to a user, but should not exceed 40 characters.
522
- # @param [Google::Apis::RequestOptions] options
523
- # Request-specific options
524
- #
525
- # @yield [result, err] Result & error if block supplied
526
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::Empty] parsed result object
527
- # @yieldparam err [StandardError] error object if request failed
528
- #
529
- # @return [Google::Apis::BigqueryreservationV1alpha2::Empty]
530
- #
531
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
- # @raise [Google::Apis::AuthorizationError] Authorization is required
534
- def delete_project_location_reservation_slot_pool(name, fields: nil, quota_user: nil, options: nil, &block)
535
- command = make_simple_command(:delete, 'v1alpha2/{+name}', options)
536
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::Empty::Representation
537
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::Empty
538
- command.params['name'] = name unless name.nil?
539
- command.query['fields'] = fields unless fields.nil?
540
- command.query['quotaUser'] = quota_user unless quota_user.nil?
541
- execute_or_queue_command(command, &block)
542
- end
543
-
544
- # Returns information about the slot pool.
545
- # @param [String] name
546
- # Resource name of the slot pool to retrieve. E.g., projects/myproject/locations/
547
- # us-central1/reservations/my_reservation/slotPools/123
548
- # @param [String] fields
549
- # Selector specifying which fields to include in a partial response.
550
- # @param [String] quota_user
551
- # Available to use for quota purposes for server-side applications. Can be any
552
- # arbitrary string assigned to a user, but should not exceed 40 characters.
553
- # @param [Google::Apis::RequestOptions] options
554
- # Request-specific options
555
- #
556
- # @yield [result, err] Result & error if block supplied
557
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::SlotPool] parsed result object
558
- # @yieldparam err [StandardError] error object if request failed
559
- #
560
- # @return [Google::Apis::BigqueryreservationV1alpha2::SlotPool]
561
- #
562
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
- # @raise [Google::Apis::AuthorizationError] Authorization is required
565
- def get_project_location_reservation_slot_pool(name, fields: nil, quota_user: nil, options: nil, &block)
566
- command = make_simple_command(:get, 'v1alpha2/{+name}', options)
567
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::SlotPool::Representation
568
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::SlotPool
569
- command.params['name'] = name unless name.nil?
570
- command.query['fields'] = fields unless fields.nil?
571
- command.query['quotaUser'] = quota_user unless quota_user.nil?
572
- execute_or_queue_command(command, &block)
573
- end
574
-
575
- # Lists all the slot pools for the reservation.
576
- # @param [String] parent
577
- # Resource name of the parent reservation. Only top-level reservations can have
578
- # slot pools. E.g., projects/myproject/locations/us-central1/reservations/
579
- # my_reservation
580
- # @param [Fixnum] page_size
581
- # The maximum number of items to return.
582
- # @param [String] page_token
583
- # The next_page_token value returned from a previous List request, if any.
584
- # @param [String] fields
585
- # Selector specifying which fields to include in a partial response.
586
- # @param [String] quota_user
587
- # Available to use for quota purposes for server-side applications. Can be any
588
- # arbitrary string assigned to a user, but should not exceed 40 characters.
589
- # @param [Google::Apis::RequestOptions] options
590
- # Request-specific options
591
- #
592
- # @yield [result, err] Result & error if block supplied
593
- # @yieldparam result [Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse] parsed result object
594
- # @yieldparam err [StandardError] error object if request failed
595
- #
596
- # @return [Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse]
597
- #
598
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
599
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
600
- # @raise [Google::Apis::AuthorizationError] Authorization is required
601
- def list_project_location_reservation_slot_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
602
- command = make_simple_command(:get, 'v1alpha2/{+parent}/slotPools', options)
603
- command.response_representation = Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse::Representation
604
- command.response_class = Google::Apis::BigqueryreservationV1alpha2::ListSlotPoolsResponse
605
- command.params['parent'] = parent unless parent.nil?
606
- command.query['pageSize'] = page_size unless page_size.nil?
607
- command.query['pageToken'] = page_token unless page_token.nil?
608
- command.query['fields'] = fields unless fields.nil?
609
- command.query['quotaUser'] = quota_user unless quota_user.nil?
610
- execute_or_queue_command(command, &block)
611
- end
612
-
613
- protected
614
-
615
- def apply_command_defaults(command)
616
- command.query['key'] = key unless key.nil?
617
- command.query['quotaUser'] = quota_user unless quota_user.nil?
618
- end
619
- end
620
- end
621
- end
622
- end