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
@@ -0,0 +1,800 @@
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 MetastoreV1beta
23
+ # Dataproc Metastore API
24
+ #
25
+ # The Dataproc Metastore API is used to manage the lifecycle and configuration
26
+ # of metastore services.
27
+ #
28
+ # @example
29
+ # require 'google/apis/metastore_v1beta'
30
+ #
31
+ # Metastore = Google::Apis::MetastoreV1beta # Alias the module
32
+ # service = Metastore::DataprocMetastoreService.new
33
+ #
34
+ # @see https://cloud.google.com/dataproc-metastore/docs
35
+ class DataprocMetastoreService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://metastore.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::MetastoreV1beta::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
73
+ command.response_representation = Google::Apis::MetastoreV1beta::Location::Representation
74
+ command.response_class = Google::Apis::MetastoreV1beta::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::MetastoreV1beta::ListLocationsResponse]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1beta/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::MetastoreV1beta::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::MetastoreV1beta::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Deletes a long-running operation. This method indicates that the client is no
121
+ # longer interested in the operation result. It does not cancel the operation.
122
+ # If the server doesn't support this method, it returns google.rpc.Code.
123
+ # UNIMPLEMENTED.
124
+ # @param [String] name
125
+ # The name of the operation resource to be deleted.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
128
+ # @param [String] quota_user
129
+ # Available to use for quota purposes for server-side applications. Can be any
130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Empty] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::MetastoreV1beta::Empty]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
145
+ command.response_representation = Google::Apis::MetastoreV1beta::Empty::Representation
146
+ command.response_class = Google::Apis::MetastoreV1beta::Empty
147
+ command.params['name'] = name unless name.nil?
148
+ command.query['fields'] = fields unless fields.nil?
149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
150
+ execute_or_queue_command(command, &block)
151
+ end
152
+
153
+ # Gets the latest state of a long-running operation. Clients can use this method
154
+ # to poll the operation result at intervals as recommended by the API service.
155
+ # @param [String] name
156
+ # The name of the operation resource.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [String] quota_user
160
+ # Available to use for quota purposes for server-side applications. Can be any
161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
162
+ # @param [Google::Apis::RequestOptions] options
163
+ # Request-specific options
164
+ #
165
+ # @yield [result, err] Result & error if block supplied
166
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
167
+ # @yieldparam err [StandardError] error object if request failed
168
+ #
169
+ # @return [Google::Apis::MetastoreV1beta::Operation]
170
+ #
171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
174
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
175
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
176
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
177
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
178
+ command.params['name'] = name unless name.nil?
179
+ command.query['fields'] = fields unless fields.nil?
180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
181
+ execute_or_queue_command(command, &block)
182
+ end
183
+
184
+ # Lists operations that match the specified filter in the request. If the server
185
+ # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
186
+ # allows API services to override the binding to use different resource name
187
+ # schemes, such as users/*/operations. To override the binding, API services can
188
+ # add a binding such as "/v1/`name=users/*`/operations" to their service
189
+ # configuration. For backwards compatibility, the default name includes the
190
+ # operations collection id, however overriding users must ensure the name
191
+ # binding is the parent resource, without the operations collection id.
192
+ # @param [String] name
193
+ # The name of the operation's parent resource.
194
+ # @param [String] filter
195
+ # The standard list filter.
196
+ # @param [Fixnum] page_size
197
+ # The standard list page size.
198
+ # @param [String] page_token
199
+ # The standard list page token.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListOperationsResponse] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::MetastoreV1beta::ListOperationsResponse]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'v1beta/{+name}/operations', options)
219
+ command.response_representation = Google::Apis::MetastoreV1beta::ListOperationsResponse::Representation
220
+ command.response_class = Google::Apis::MetastoreV1beta::ListOperationsResponse
221
+ command.params['name'] = name unless name.nil?
222
+ command.query['filter'] = filter unless filter.nil?
223
+ command.query['pageSize'] = page_size unless page_size.nil?
224
+ command.query['pageToken'] = page_token unless page_token.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
230
+ # Creates a metastore service in a project and location.
231
+ # @param [String] parent
232
+ # Required. The relative resource name of the location in which to create a
233
+ # metastore service, in the following form:"projects/`project_number`/locations/`
234
+ # location_id`".
235
+ # @param [Google::Apis::MetastoreV1beta::Service] service_object
236
+ # @param [String] request_id
237
+ # Optional. A request ID. Specify a unique request ID to allow the server to
238
+ # ignore the request if it has completed. The server will ignore subsequent
239
+ # requests that provide a duplicate request ID for at least 60 minutes after the
240
+ # first request.For example, if an initial request times out, followed by
241
+ # another request with the same request ID, the server ignores the second
242
+ # request to prevent the creation of duplicate commitments.The request ID must
243
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
244
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
245
+ # @param [String] service_id
246
+ # Required. The ID of the metastore service, which is used as the final
247
+ # component of the metastore service's name.This value must be between 2 and 63
248
+ # characters long inclusive, begin with a letter, end with a letter or number,
249
+ # and consist of alpha-numeric ASCII characters or hyphens.
250
+ # @param [String] fields
251
+ # Selector specifying which fields to include in a partial response.
252
+ # @param [String] quota_user
253
+ # Available to use for quota purposes for server-side applications. Can be any
254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
255
+ # @param [Google::Apis::RequestOptions] options
256
+ # Request-specific options
257
+ #
258
+ # @yield [result, err] Result & error if block supplied
259
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
260
+ # @yieldparam err [StandardError] error object if request failed
261
+ #
262
+ # @return [Google::Apis::MetastoreV1beta::Operation]
263
+ #
264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
267
+ def create_project_location_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
268
+ command = make_simple_command(:post, 'v1beta/{+parent}/services', options)
269
+ command.request_representation = Google::Apis::MetastoreV1beta::Service::Representation
270
+ command.request_object = service_object
271
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
272
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
273
+ command.params['parent'] = parent unless parent.nil?
274
+ command.query['requestId'] = request_id unless request_id.nil?
275
+ command.query['serviceId'] = service_id unless service_id.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
+ # Deletes a single service.
282
+ # @param [String] name
283
+ # Required. The relative resource name of the metastore service to delete, in
284
+ # the following form:"projects/`project_number`/locations/`location_id`/services/
285
+ # `service_id`".
286
+ # @param [String] request_id
287
+ # Optional. A request ID. Specify a unique request ID to allow the server to
288
+ # ignore the request if it has completed. The server will ignore subsequent
289
+ # requests that provide a duplicate request ID for at least 60 minutes after the
290
+ # first request.For example, if an initial request times out, followed by
291
+ # another request with the same request ID, the server ignores the second
292
+ # request to prevent the creation of duplicate commitments.The request ID must
293
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
294
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [String] quota_user
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
300
+ # @param [Google::Apis::RequestOptions] options
301
+ # Request-specific options
302
+ #
303
+ # @yield [result, err] Result & error if block supplied
304
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
305
+ # @yieldparam err [StandardError] error object if request failed
306
+ #
307
+ # @return [Google::Apis::MetastoreV1beta::Operation]
308
+ #
309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
312
+ def delete_project_location_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
314
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
315
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
316
+ command.params['name'] = name unless name.nil?
317
+ command.query['requestId'] = request_id unless request_id.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
323
+ # Exports metadata from a service.
324
+ # @param [String] service
325
+ # Required. The relative resource name of the metastore service to run export,
326
+ # in the following form:"projects/`project_id`/locations/`location_id`/services/`
327
+ # service_id`
328
+ # @param [Google::Apis::MetastoreV1beta::ExportMetadataRequest] export_metadata_request_object
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::MetastoreV1beta::Operation] parsed result object
339
+ # @yieldparam err [StandardError] error object if request failed
340
+ #
341
+ # @return [Google::Apis::MetastoreV1beta::Operation]
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 export_service_metadata(service, export_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
347
+ command = make_simple_command(:post, 'v1beta/{+service}:exportMetadata', options)
348
+ command.request_representation = Google::Apis::MetastoreV1beta::ExportMetadataRequest::Representation
349
+ command.request_object = export_metadata_request_object
350
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
351
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
352
+ command.params['service'] = service unless service.nil?
353
+ command.query['fields'] = fields unless fields.nil?
354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
355
+ execute_or_queue_command(command, &block)
356
+ end
357
+
358
+ # Gets the details of a single service.
359
+ # @param [String] name
360
+ # Required. The relative resource name of the metastore service to retrieve, in
361
+ # the following form:"projects/`project_number`/locations/`location_id`/services/
362
+ # `service_id`".
363
+ # @param [String] fields
364
+ # Selector specifying which fields to include in a partial response.
365
+ # @param [String] quota_user
366
+ # Available to use for quota purposes for server-side applications. Can be any
367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
368
+ # @param [Google::Apis::RequestOptions] options
369
+ # Request-specific options
370
+ #
371
+ # @yield [result, err] Result & error if block supplied
372
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Service] parsed result object
373
+ # @yieldparam err [StandardError] error object if request failed
374
+ #
375
+ # @return [Google::Apis::MetastoreV1beta::Service]
376
+ #
377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
380
+ def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block)
381
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
382
+ command.response_representation = Google::Apis::MetastoreV1beta::Service::Representation
383
+ command.response_class = Google::Apis::MetastoreV1beta::Service
384
+ command.params['name'] = name unless name.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ # Gets the access control policy for a resource. Returns an empty policy if the
391
+ # resource exists and does not have a policy set.
392
+ # @param [String] resource
393
+ # REQUIRED: The resource for which the policy is being requested. See the
394
+ # operation documentation for the appropriate value for this field.
395
+ # @param [Fixnum] options_requested_policy_version
396
+ # Optional. The policy format version to be returned.Valid values are 0, 1, and
397
+ # 3. Requests specifying an invalid value will be rejected.Requests for policies
398
+ # with any conditional bindings must specify version 3. Policies without any
399
+ # conditional bindings may specify any valid value or leave the field unset.To
400
+ # learn which resources support conditions in their IAM policies, see the IAM
401
+ # documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
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::MetastoreV1beta::Policy] parsed result object
412
+ # @yieldparam err [StandardError] error object if request failed
413
+ #
414
+ # @return [Google::Apis::MetastoreV1beta::Policy]
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_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
420
+ command = make_simple_command(:get, 'v1beta/{+resource}:getIamPolicy', options)
421
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
422
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
423
+ command.params['resource'] = resource unless resource.nil?
424
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
425
+ command.query['fields'] = fields unless fields.nil?
426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
427
+ execute_or_queue_command(command, &block)
428
+ end
429
+
430
+ # Lists services in a project and location.
431
+ # @param [String] parent
432
+ # Required. The relative resource name of the location of metastore services to
433
+ # list, in the following form:"projects/`project_number`/locations/`location_id`"
434
+ # .
435
+ # @param [String] filter
436
+ # Optional. The filter to apply to list results.
437
+ # @param [String] order_by
438
+ # Optional. Specify the ordering of results as described in Sorting Order. If
439
+ # not specified, the results will be sorted in the default order.
440
+ # @param [Fixnum] page_size
441
+ # Optional. The maximum number of services to return. The response may contain
442
+ # less than the maximum number. If unspecified, no more than 500 services are
443
+ # returned. The maximum value is 1000; values above 1000 are changed to 1000.
444
+ # @param [String] page_token
445
+ # Optional. A page token, received from a previous DataprocMetastore.
446
+ # ListServices call. Provide this token to retrieve the subsequent page.To
447
+ # retrieve the first page, supply an empty page token.When paginating, other
448
+ # parameters provided to DataprocMetastore.ListServices must match the call that
449
+ # provided the page token.
450
+ # @param [String] fields
451
+ # Selector specifying which fields to include in a partial response.
452
+ # @param [String] quota_user
453
+ # Available to use for quota purposes for server-side applications. Can be any
454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
455
+ # @param [Google::Apis::RequestOptions] options
456
+ # Request-specific options
457
+ #
458
+ # @yield [result, err] Result & error if block supplied
459
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListServicesResponse] parsed result object
460
+ # @yieldparam err [StandardError] error object if request failed
461
+ #
462
+ # @return [Google::Apis::MetastoreV1beta::ListServicesResponse]
463
+ #
464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
467
+ def list_project_location_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
468
+ command = make_simple_command(:get, 'v1beta/{+parent}/services', options)
469
+ command.response_representation = Google::Apis::MetastoreV1beta::ListServicesResponse::Representation
470
+ command.response_class = Google::Apis::MetastoreV1beta::ListServicesResponse
471
+ command.params['parent'] = parent unless parent.nil?
472
+ command.query['filter'] = filter unless filter.nil?
473
+ command.query['orderBy'] = order_by unless order_by.nil?
474
+ command.query['pageSize'] = page_size unless page_size.nil?
475
+ command.query['pageToken'] = page_token unless page_token.nil?
476
+ command.query['fields'] = fields unless fields.nil?
477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
478
+ execute_or_queue_command(command, &block)
479
+ end
480
+
481
+ # Updates the parameters of a single service.
482
+ # @param [String] name
483
+ # Immutable. The relative resource name of the metastore service, of the form:"
484
+ # projects/`project_number`/locations/`location_id`/services/`service_id`".
485
+ # @param [Google::Apis::MetastoreV1beta::Service] service_object
486
+ # @param [String] request_id
487
+ # Optional. A request ID. Specify a unique request ID to allow the server to
488
+ # ignore the request if it has completed. The server will ignore subsequent
489
+ # requests that provide a duplicate request ID for at least 60 minutes after the
490
+ # first request.For example, if an initial request times out, followed by
491
+ # another request with the same request ID, the server ignores the second
492
+ # request to prevent the creation of duplicate commitments.The request ID must
493
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
494
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
495
+ # @param [String] update_mask
496
+ # Required. A field mask used to specify the fields to be overwritten in the
497
+ # metastore service resource by the update. Fields specified in the update_mask
498
+ # are relative to the resource (not to the full request). A field is overwritten
499
+ # if it is in the mask.
500
+ # @param [String] fields
501
+ # Selector specifying which fields to include in a partial response.
502
+ # @param [String] quota_user
503
+ # Available to use for quota purposes for server-side applications. Can be any
504
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
505
+ # @param [Google::Apis::RequestOptions] options
506
+ # Request-specific options
507
+ #
508
+ # @yield [result, err] Result & error if block supplied
509
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
510
+ # @yieldparam err [StandardError] error object if request failed
511
+ #
512
+ # @return [Google::Apis::MetastoreV1beta::Operation]
513
+ #
514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
517
+ def patch_project_location_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
518
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
519
+ command.request_representation = Google::Apis::MetastoreV1beta::Service::Representation
520
+ command.request_object = service_object
521
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
522
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
523
+ command.params['name'] = name unless name.nil?
524
+ command.query['requestId'] = request_id unless request_id.nil?
525
+ command.query['updateMask'] = update_mask unless update_mask.nil?
526
+ command.query['fields'] = fields unless fields.nil?
527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
528
+ execute_or_queue_command(command, &block)
529
+ end
530
+
531
+ # Sets the access control policy on the specified resource. Replaces any
532
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
533
+ # errors.
534
+ # @param [String] resource
535
+ # REQUIRED: The resource for which the policy is being specified. See the
536
+ # operation documentation for the appropriate value for this field.
537
+ # @param [Google::Apis::MetastoreV1beta::SetIamPolicyRequest] set_iam_policy_request_object
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # @param [Google::Apis::RequestOptions] options
544
+ # Request-specific options
545
+ #
546
+ # @yield [result, err] Result & error if block supplied
547
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Policy] parsed result object
548
+ # @yieldparam err [StandardError] error object if request failed
549
+ #
550
+ # @return [Google::Apis::MetastoreV1beta::Policy]
551
+ #
552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
555
+ def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:post, 'v1beta/{+resource}:setIamPolicy', options)
557
+ command.request_representation = Google::Apis::MetastoreV1beta::SetIamPolicyRequest::Representation
558
+ command.request_object = set_iam_policy_request_object
559
+ command.response_representation = Google::Apis::MetastoreV1beta::Policy::Representation
560
+ command.response_class = Google::Apis::MetastoreV1beta::Policy
561
+ command.params['resource'] = resource unless resource.nil?
562
+ command.query['fields'] = fields unless fields.nil?
563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Returns permissions that a caller has on the specified resource. If the
568
+ # resource does not exist, this will return an empty set of permissions, not a
569
+ # NOT_FOUND error.Note: This operation is designed to be used for building
570
+ # permission-aware UIs and command-line tools, not for authorization checking.
571
+ # This operation may "fail open" without warning.
572
+ # @param [String] resource
573
+ # REQUIRED: The resource for which the policy detail is being requested. See the
574
+ # operation documentation for the appropriate value for this field.
575
+ # @param [Google::Apis::MetastoreV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # @param [Google::Apis::RequestOptions] options
582
+ # Request-specific options
583
+ #
584
+ # @yield [result, err] Result & error if block supplied
585
+ # @yieldparam result [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse] parsed result object
586
+ # @yieldparam err [StandardError] error object if request failed
587
+ #
588
+ # @return [Google::Apis::MetastoreV1beta::TestIamPermissionsResponse]
589
+ #
590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
593
+ def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
594
+ command = make_simple_command(:post, 'v1beta/{+resource}:testIamPermissions', options)
595
+ command.request_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsRequest::Representation
596
+ command.request_object = test_iam_permissions_request_object
597
+ command.response_representation = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse::Representation
598
+ command.response_class = Google::Apis::MetastoreV1beta::TestIamPermissionsResponse
599
+ command.params['resource'] = resource unless resource.nil?
600
+ command.query['fields'] = fields unless fields.nil?
601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
602
+ execute_or_queue_command(command, &block)
603
+ end
604
+
605
+ # Creates a new MetadataImport in a given project and location.
606
+ # @param [String] parent
607
+ # Required. The relative resource name of the service in which to create a
608
+ # metastore import, in the following form:"projects/`project_number`/locations/`
609
+ # location_id`/services/`service_id`"
610
+ # @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
611
+ # @param [String] metadata_import_id
612
+ # Required. The ID of the metadata import, which is used as the final component
613
+ # of the metadata import's name.This value must be between 1 and 64 characters
614
+ # long, begin with a letter, end with a letter or number, and consist of alpha-
615
+ # numeric ASCII characters or hyphens.
616
+ # @param [String] request_id
617
+ # Optional. A request ID. Specify a unique request ID to allow the server to
618
+ # ignore the request if it has completed. The server will ignore subsequent
619
+ # requests that provide a duplicate request ID for at least 60 minutes after the
620
+ # first request.For example, if an initial request times out, followed by
621
+ # another request with the same request ID, the server ignores the second
622
+ # request to prevent the creation of duplicate commitments.The request ID must
623
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
624
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::MetastoreV1beta::Operation]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def create_project_location_service_metadata_import(parent, metadata_import_object = nil, metadata_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'v1beta/{+parent}/metadataImports', options)
644
+ command.request_representation = Google::Apis::MetastoreV1beta::MetadataImport::Representation
645
+ command.request_object = metadata_import_object
646
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
647
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
648
+ command.params['parent'] = parent unless parent.nil?
649
+ command.query['metadataImportId'] = metadata_import_id unless metadata_import_id.nil?
650
+ command.query['requestId'] = request_id unless request_id.nil?
651
+ command.query['fields'] = fields unless fields.nil?
652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
656
+ # Gets details of a single import.
657
+ # @param [String] name
658
+ # Required. The relative resource name of the metadata import to retrieve, in
659
+ # the following form:"projects/`project_number`/locations/`location_id`/services/
660
+ # `service_id`/metadataImports/`import_id`".
661
+ # @param [String] fields
662
+ # Selector specifying which fields to include in a partial response.
663
+ # @param [String] quota_user
664
+ # Available to use for quota purposes for server-side applications. Can be any
665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
666
+ # @param [Google::Apis::RequestOptions] options
667
+ # Request-specific options
668
+ #
669
+ # @yield [result, err] Result & error if block supplied
670
+ # @yieldparam result [Google::Apis::MetastoreV1beta::MetadataImport] parsed result object
671
+ # @yieldparam err [StandardError] error object if request failed
672
+ #
673
+ # @return [Google::Apis::MetastoreV1beta::MetadataImport]
674
+ #
675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
678
+ def get_project_location_service_metadata_import(name, fields: nil, quota_user: nil, options: nil, &block)
679
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
680
+ command.response_representation = Google::Apis::MetastoreV1beta::MetadataImport::Representation
681
+ command.response_class = Google::Apis::MetastoreV1beta::MetadataImport
682
+ command.params['name'] = name unless name.nil?
683
+ command.query['fields'] = fields unless fields.nil?
684
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
685
+ execute_or_queue_command(command, &block)
686
+ end
687
+
688
+ # Lists imports in a service.
689
+ # @param [String] parent
690
+ # Required. The relative resource name of the service whose metadata imports to
691
+ # list, in the following form:"projects/`project_number`/locations/`location_id`/
692
+ # services/`service_id`/metadataImports".
693
+ # @param [String] filter
694
+ # Optional. The filter to apply to list results.
695
+ # @param [String] order_by
696
+ # Optional. Specify the ordering of results as described in Sorting Order. If
697
+ # not specified, the results will be sorted in the default order.
698
+ # @param [Fixnum] page_size
699
+ # Optional. The maximum number of imports to return. The response may contain
700
+ # less than the maximum number. If unspecified, no more than 500 imports are
701
+ # returned. The maximum value is 1000; values above 1000 are changed to 1000.
702
+ # @param [String] page_token
703
+ # Optional. A page token, received from a previous DataprocMetastore.
704
+ # ListServices call. Provide this token to retrieve the subsequent page.To
705
+ # retrieve the first page, supply an empty page token.When paginating, other
706
+ # parameters provided to DataprocMetastore.ListServices must match the call that
707
+ # provided the page token.
708
+ # @param [String] fields
709
+ # Selector specifying which fields to include in a partial response.
710
+ # @param [String] quota_user
711
+ # Available to use for quota purposes for server-side applications. Can be any
712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [Google::Apis::MetastoreV1beta::ListMetadataImportsResponse] parsed result object
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [Google::Apis::MetastoreV1beta::ListMetadataImportsResponse]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def list_project_location_service_metadata_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:get, 'v1beta/{+parent}/metadataImports', options)
727
+ command.response_representation = Google::Apis::MetastoreV1beta::ListMetadataImportsResponse::Representation
728
+ command.response_class = Google::Apis::MetastoreV1beta::ListMetadataImportsResponse
729
+ command.params['parent'] = parent unless parent.nil?
730
+ command.query['filter'] = filter unless filter.nil?
731
+ command.query['orderBy'] = order_by unless order_by.nil?
732
+ command.query['pageSize'] = page_size unless page_size.nil?
733
+ command.query['pageToken'] = page_token unless page_token.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # Updates a single import. Only the description field of MetadataImport is
740
+ # supported to be updated.
741
+ # @param [String] name
742
+ # Immutable. The relative resource name of the metadata import, of the form:"
743
+ # projects/`project_number`/locations/`location_id`/services/`service_id`/
744
+ # metadataImports/`metadata_import_id`".
745
+ # @param [Google::Apis::MetastoreV1beta::MetadataImport] metadata_import_object
746
+ # @param [String] request_id
747
+ # Optional. A request ID. Specify a unique request ID to allow the server to
748
+ # ignore the request if it has completed. The server will ignore subsequent
749
+ # requests that provide a duplicate request ID for at least 60 minutes after the
750
+ # first request.For example, if an initial request times out, followed by
751
+ # another request with the same request ID, the server ignores the second
752
+ # request to prevent the creation of duplicate commitments.The request ID must
753
+ # be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#
754
+ # Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
755
+ # @param [String] update_mask
756
+ # Required. A field mask used to specify the fields to be overwritten in the
757
+ # metadata import resource by the update. Fields specified in the update_mask
758
+ # are relative to the resource (not to the full request). A field is overwritten
759
+ # if it is in the mask.
760
+ # @param [String] fields
761
+ # Selector specifying which fields to include in a partial response.
762
+ # @param [String] quota_user
763
+ # Available to use for quota purposes for server-side applications. Can be any
764
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
765
+ # @param [Google::Apis::RequestOptions] options
766
+ # Request-specific options
767
+ #
768
+ # @yield [result, err] Result & error if block supplied
769
+ # @yieldparam result [Google::Apis::MetastoreV1beta::Operation] parsed result object
770
+ # @yieldparam err [StandardError] error object if request failed
771
+ #
772
+ # @return [Google::Apis::MetastoreV1beta::Operation]
773
+ #
774
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
775
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
776
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
777
+ def patch_project_location_service_metadata_import(name, metadata_import_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
778
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
779
+ command.request_representation = Google::Apis::MetastoreV1beta::MetadataImport::Representation
780
+ command.request_object = metadata_import_object
781
+ command.response_representation = Google::Apis::MetastoreV1beta::Operation::Representation
782
+ command.response_class = Google::Apis::MetastoreV1beta::Operation
783
+ command.params['name'] = name unless name.nil?
784
+ command.query['requestId'] = request_id unless request_id.nil?
785
+ command.query['updateMask'] = update_mask unless update_mask.nil?
786
+ command.query['fields'] = fields unless fields.nil?
787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ execute_or_queue_command(command, &block)
789
+ end
790
+
791
+ protected
792
+
793
+ def apply_command_defaults(command)
794
+ command.query['key'] = key unless key.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ end
797
+ end
798
+ end
799
+ end
800
+ end