google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -57,11 +57,11 @@ module Google
57
57
  # The standard list page size.
58
58
  # @param [String] filter
59
59
  # The standard list filter.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
60
62
  # @param [String] quota_user
61
63
  # Available to use for quota purposes for server-side applications. Can be any
62
64
  # arbitrary string assigned to a user, but should not exceed 40 characters.
63
- # @param [String] fields
64
- # Selector specifying which fields to include in a partial response.
65
65
  # @param [Google::Apis::RequestOptions] options
66
66
  # Request-specific options
67
67
  #
@@ -74,7 +74,7 @@ module Google
74
74
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
75
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
76
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def list_project_locations(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
77
+ def list_project_locations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
78
78
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
79
79
  command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation
80
80
  command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse
@@ -82,19 +82,19 @@ module Google
82
82
  command.query['pageToken'] = page_token unless page_token.nil?
83
83
  command.query['pageSize'] = page_size unless page_size.nil?
84
84
  command.query['filter'] = filter unless filter.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
85
  command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
87
  execute_or_queue_command(command, &block)
88
88
  end
89
89
 
90
90
  # Get information about a location.
91
91
  # @param [String] name
92
92
  # Resource name for the location.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
93
95
  # @param [String] quota_user
94
96
  # Available to use for quota purposes for server-side applications. Can be any
95
97
  # arbitrary string assigned to a user, but should not exceed 40 characters.
96
- # @param [String] fields
97
- # Selector specifying which fields to include in a partial response.
98
98
  # @param [Google::Apis::RequestOptions] options
99
99
  # Request-specific options
100
100
  #
@@ -107,86 +107,13 @@ module Google
107
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def get_project_location(name, quota_user: nil, fields: nil, options: nil, &block)
110
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
111
111
  command = make_simple_command(:get, 'v1/{+name}', options)
112
112
  command.response_representation = Google::Apis::CloudkmsV1::Location::Representation
113
113
  command.response_class = Google::Apis::CloudkmsV1::Location
114
114
  command.params['name'] = name unless name.nil?
115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
116
115
  command.query['fields'] = fields unless fields.nil?
117
- execute_or_queue_command(command, &block)
118
- end
119
-
120
- # Create a new KeyRing in a given Project and Location.
121
- # @param [String] parent
122
- # Required. The resource name of the location associated with the
123
- # KeyRings, in the format `projects/*/locations/*`.
124
- # @param [Google::Apis::CloudkmsV1::KeyRing] key_ring_object
125
- # @param [String] key_ring_id
126
- # Required. It must be unique within a location and match the regular
127
- # expression `[a-zA-Z0-9_-]`1,63``
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 [String] fields
132
- # Selector specifying which fields to include in a partial response.
133
- # @param [Google::Apis::RequestOptions] options
134
- # Request-specific options
135
- #
136
- # @yield [result, err] Result & error if block supplied
137
- # @yieldparam result [Google::Apis::CloudkmsV1::KeyRing] parsed result object
138
- # @yieldparam err [StandardError] error object if request failed
139
- #
140
- # @return [Google::Apis::CloudkmsV1::KeyRing]
141
- #
142
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
- # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, quota_user: nil, fields: nil, options: nil, &block)
146
- command = make_simple_command(:post, 'v1/{+parent}/keyRings', options)
147
- command.request_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
148
- command.request_object = key_ring_object
149
- command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
150
- command.response_class = Google::Apis::CloudkmsV1::KeyRing
151
- command.params['parent'] = parent unless parent.nil?
152
- command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
153
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
154
- command.query['fields'] = fields unless fields.nil?
155
- execute_or_queue_command(command, &block)
156
- end
157
-
158
- # Sets the access control policy on the specified resource. Replaces any
159
- # existing policy.
160
- # @param [String] resource
161
- # REQUIRED: The resource for which the policy is being specified.
162
- # See the operation documentation for the appropriate value for this field.
163
- # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
164
- # @param [String] quota_user
165
- # Available to use for quota purposes for server-side applications. Can be any
166
- # arbitrary string assigned to a user, but should not exceed 40 characters.
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
169
- # @param [Google::Apis::RequestOptions] options
170
- # Request-specific options
171
- #
172
- # @yield [result, err] Result & error if block supplied
173
- # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
174
- # @yieldparam err [StandardError] error object if request failed
175
- #
176
- # @return [Google::Apis::CloudkmsV1::Policy]
177
- #
178
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
- # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
182
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
183
- command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
184
- command.request_object = set_iam_policy_request_object
185
- command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
186
- command.response_class = Google::Apis::CloudkmsV1::Policy
187
- command.params['resource'] = resource unless resource.nil?
188
- command.query['quotaUser'] = quota_user unless quota_user.nil?
189
- command.query['fields'] = fields unless fields.nil?
190
117
  execute_or_queue_command(command, &block)
191
118
  end
192
119
 
@@ -196,11 +123,11 @@ module Google
196
123
  # @param [String] resource
197
124
  # REQUIRED: The resource for which the policy is being requested.
198
125
  # See the operation documentation for the appropriate value for this field.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
199
128
  # @param [String] quota_user
200
129
  # Available to use for quota purposes for server-side applications. Can be any
201
130
  # arbitrary string assigned to a user, but should not exceed 40 characters.
202
- # @param [String] fields
203
- # Selector specifying which fields to include in a partial response.
204
131
  # @param [Google::Apis::RequestOptions] options
205
132
  # Request-specific options
206
133
  #
@@ -213,24 +140,24 @@ module Google
213
140
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
141
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
142
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
- def get_project_location_key_ring_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
143
+ def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
217
144
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
218
145
  command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
219
146
  command.response_class = Google::Apis::CloudkmsV1::Policy
220
147
  command.params['resource'] = resource unless resource.nil?
221
- command.query['quotaUser'] = quota_user unless quota_user.nil?
222
148
  command.query['fields'] = fields unless fields.nil?
149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
150
  execute_or_queue_command(command, &block)
224
151
  end
225
152
 
226
153
  # Returns metadata for a given KeyRing.
227
154
  # @param [String] name
228
155
  # The name of the KeyRing to get.
156
+ # @param [String] fields
157
+ # Selector specifying which fields to include in a partial response.
229
158
  # @param [String] quota_user
230
159
  # Available to use for quota purposes for server-side applications. Can be any
231
160
  # arbitrary string assigned to a user, but should not exceed 40 characters.
232
- # @param [String] fields
233
- # Selector specifying which fields to include in a partial response.
234
161
  # @param [Google::Apis::RequestOptions] options
235
162
  # Request-specific options
236
163
  #
@@ -243,13 +170,13 @@ module Google
243
170
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
244
171
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
245
172
  # @raise [Google::Apis::AuthorizationError] Authorization is required
246
- def get_project_location_key_ring(name, quota_user: nil, fields: nil, options: nil, &block)
173
+ def get_project_location_key_ring(name, fields: nil, quota_user: nil, options: nil, &block)
247
174
  command = make_simple_command(:get, 'v1/{+name}', options)
248
175
  command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
249
176
  command.response_class = Google::Apis::CloudkmsV1::KeyRing
250
177
  command.params['name'] = name unless name.nil?
251
- command.query['quotaUser'] = quota_user unless quota_user.nil?
252
178
  command.query['fields'] = fields unless fields.nil?
179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
180
  execute_or_queue_command(command, &block)
254
181
  end
255
182
 
@@ -263,11 +190,11 @@ module Google
263
190
  # REQUIRED: The resource for which the policy detail is being requested.
264
191
  # See the operation documentation for the appropriate value for this field.
265
192
  # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
193
+ # @param [String] fields
194
+ # Selector specifying which fields to include in a partial response.
266
195
  # @param [String] quota_user
267
196
  # Available to use for quota purposes for server-side applications. Can be any
268
197
  # arbitrary string assigned to a user, but should not exceed 40 characters.
269
- # @param [String] fields
270
- # Selector specifying which fields to include in a partial response.
271
198
  # @param [Google::Apis::RequestOptions] options
272
199
  # Request-specific options
273
200
  #
@@ -280,15 +207,15 @@ module Google
280
207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
283
- def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
210
+ def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
284
211
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
285
212
  command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
286
213
  command.request_object = test_iam_permissions_request_object
287
214
  command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
288
215
  command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
289
216
  command.params['resource'] = resource unless resource.nil?
290
- command.query['quotaUser'] = quota_user unless quota_user.nil?
291
217
  command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
292
219
  execute_or_queue_command(command, &block)
293
220
  end
294
221
 
@@ -304,11 +231,11 @@ module Google
304
231
  # response. Further KeyRings can subsequently be obtained by
305
232
  # including the ListKeyRingsResponse.next_page_token in a subsequent
306
233
  # request. If unspecified, the server will pick an appropriate default.
234
+ # @param [String] fields
235
+ # Selector specifying which fields to include in a partial response.
307
236
  # @param [String] quota_user
308
237
  # Available to use for quota purposes for server-side applications. Can be any
309
238
  # arbitrary string assigned to a user, but should not exceed 40 characters.
310
- # @param [String] fields
311
- # Selector specifying which fields to include in a partial response.
312
239
  # @param [Google::Apis::RequestOptions] options
313
240
  # Request-specific options
314
241
  #
@@ -321,88 +248,88 @@ module Google
321
248
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
249
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
250
  # @raise [Google::Apis::AuthorizationError] Authorization is required
324
- def list_project_location_key_rings(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
251
+ def list_project_location_key_rings(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
325
252
  command = make_simple_command(:get, 'v1/{+parent}/keyRings', options)
326
253
  command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation
327
254
  command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse
328
255
  command.params['parent'] = parent unless parent.nil?
329
256
  command.query['pageToken'] = page_token unless page_token.nil?
330
257
  command.query['pageSize'] = page_size unless page_size.nil?
331
- command.query['quotaUser'] = quota_user unless quota_user.nil?
332
258
  command.query['fields'] = fields unless fields.nil?
259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
333
260
  execute_or_queue_command(command, &block)
334
261
  end
335
262
 
336
- # Returns permissions that a caller has on the specified resource.
337
- # If the resource does not exist, this will return an empty set of
338
- # permissions, not a NOT_FOUND error.
339
- # Note: This operation is designed to be used for building permission-aware
340
- # UIs and command-line tools, not for authorization checking. This operation
341
- # may "fail open" without warning.
342
- # @param [String] resource
343
- # REQUIRED: The resource for which the policy detail is being requested.
344
- # See the operation documentation for the appropriate value for this field.
345
- # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
263
+ # Create a new KeyRing in a given Project and Location.
264
+ # @param [String] parent
265
+ # Required. The resource name of the location associated with the
266
+ # KeyRings, in the format `projects/*/locations/*`.
267
+ # @param [Google::Apis::CloudkmsV1::KeyRing] key_ring_object
268
+ # @param [String] key_ring_id
269
+ # Required. It must be unique within a location and match the regular
270
+ # expression `[a-zA-Z0-9_-]`1,63``
271
+ # @param [String] fields
272
+ # Selector specifying which fields to include in a partial response.
346
273
  # @param [String] quota_user
347
274
  # Available to use for quota purposes for server-side applications. Can be any
348
275
  # arbitrary string assigned to a user, but should not exceed 40 characters.
349
- # @param [String] fields
350
- # Selector specifying which fields to include in a partial response.
351
276
  # @param [Google::Apis::RequestOptions] options
352
277
  # Request-specific options
353
278
  #
354
279
  # @yield [result, err] Result & error if block supplied
355
- # @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
280
+ # @yieldparam result [Google::Apis::CloudkmsV1::KeyRing] parsed result object
356
281
  # @yieldparam err [StandardError] error object if request failed
357
282
  #
358
- # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
283
+ # @return [Google::Apis::CloudkmsV1::KeyRing]
359
284
  #
360
285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
364
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
365
- command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
366
- command.request_object = test_iam_permissions_request_object
367
- command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
368
- command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
369
- command.params['resource'] = resource unless resource.nil?
370
- command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, fields: nil, quota_user: nil, options: nil, &block)
289
+ command = make_simple_command(:post, 'v1/{+parent}/keyRings', options)
290
+ command.request_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
291
+ command.request_object = key_ring_object
292
+ command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
293
+ command.response_class = Google::Apis::CloudkmsV1::KeyRing
294
+ command.params['parent'] = parent unless parent.nil?
295
+ command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
371
296
  command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
372
298
  execute_or_queue_command(command, &block)
373
299
  end
374
300
 
375
- # Decrypt data that was protected by Encrypt.
376
- # @param [String] name
377
- # Required. The resource name of the CryptoKey to use for decryption.
378
- # The server will choose the appropriate version.
379
- # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
301
+ # Sets the access control policy on the specified resource. Replaces any
302
+ # existing policy.
303
+ # @param [String] resource
304
+ # REQUIRED: The resource for which the policy is being specified.
305
+ # See the operation documentation for the appropriate value for this field.
306
+ # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
380
309
  # @param [String] quota_user
381
310
  # Available to use for quota purposes for server-side applications. Can be any
382
311
  # arbitrary string assigned to a user, but should not exceed 40 characters.
383
- # @param [String] fields
384
- # Selector specifying which fields to include in a partial response.
385
312
  # @param [Google::Apis::RequestOptions] options
386
313
  # Request-specific options
387
314
  #
388
315
  # @yield [result, err] Result & error if block supplied
389
- # @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
316
+ # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
390
317
  # @yieldparam err [StandardError] error object if request failed
391
318
  #
392
- # @return [Google::Apis::CloudkmsV1::DecryptResponse]
319
+ # @return [Google::Apis::CloudkmsV1::Policy]
393
320
  #
394
321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def decrypt_crypto_key(name, decrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
398
- command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
399
- command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
400
- command.request_object = decrypt_request_object
401
- command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
402
- command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
403
- command.params['name'] = name unless name.nil?
404
- command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
326
+ command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
327
+ command.request_object = set_iam_policy_request_object
328
+ command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
329
+ command.response_class = Google::Apis::CloudkmsV1::Policy
330
+ command.params['resource'] = resource unless resource.nil?
405
331
  command.query['fields'] = fields unless fields.nil?
332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
406
333
  execute_or_queue_command(command, &block)
407
334
  end
408
335
 
@@ -418,11 +345,11 @@ module Google
418
345
  # response. Further CryptoKeys can subsequently be obtained by
419
346
  # including the ListCryptoKeysResponse.next_page_token in a subsequent
420
347
  # request. If unspecified, the server will pick an appropriate default.
348
+ # @param [String] fields
349
+ # Selector specifying which fields to include in a partial response.
421
350
  # @param [String] quota_user
422
351
  # Available to use for quota purposes for server-side applications. Can be any
423
352
  # arbitrary string assigned to a user, but should not exceed 40 characters.
424
- # @param [String] fields
425
- # Selector specifying which fields to include in a partial response.
426
353
  # @param [Google::Apis::RequestOptions] options
427
354
  # Request-specific options
428
355
  #
@@ -435,15 +362,15 @@ module Google
435
362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
436
363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
437
364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
438
- def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
365
+ def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
439
366
  command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
440
367
  command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
441
368
  command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
442
369
  command.params['parent'] = parent unless parent.nil?
443
370
  command.query['pageToken'] = page_token unless page_token.nil?
444
371
  command.query['pageSize'] = page_size unless page_size.nil?
445
- command.query['quotaUser'] = quota_user unless quota_user.nil?
446
372
  command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
374
  execute_or_queue_command(command, &block)
448
375
  end
449
376
 
@@ -454,11 +381,11 @@ module Google
454
381
  # If a CryptoKey is specified, the server will use its
455
382
  # primary version.
456
383
  # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_request_object
384
+ # @param [String] fields
385
+ # Selector specifying which fields to include in a partial response.
457
386
  # @param [String] quota_user
458
387
  # Available to use for quota purposes for server-side applications. Can be any
459
388
  # arbitrary string assigned to a user, but should not exceed 40 characters.
460
- # @param [String] fields
461
- # Selector specifying which fields to include in a partial response.
462
389
  # @param [Google::Apis::RequestOptions] options
463
390
  # Request-specific options
464
391
  #
@@ -471,15 +398,15 @@ module Google
471
398
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
399
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
400
  # @raise [Google::Apis::AuthorizationError] Authorization is required
474
- def encrypt_crypto_key(name, encrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
401
+ def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
475
402
  command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
476
403
  command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
477
404
  command.request_object = encrypt_request_object
478
405
  command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
479
406
  command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
480
407
  command.params['name'] = name unless name.nil?
481
- command.query['quotaUser'] = quota_user unless quota_user.nil?
482
408
  command.query['fields'] = fields unless fields.nil?
409
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
410
  execute_or_queue_command(command, &block)
484
411
  end
485
412
 
@@ -492,11 +419,11 @@ module Google
492
419
  # @param [String] crypto_key_id
493
420
  # Required. It must be unique within a KeyRing and match the regular
494
421
  # expression `[a-zA-Z0-9_-]`1,63``
422
+ # @param [String] fields
423
+ # Selector specifying which fields to include in a partial response.
495
424
  # @param [String] quota_user
496
425
  # Available to use for quota purposes for server-side applications. Can be any
497
426
  # arbitrary string assigned to a user, but should not exceed 40 characters.
498
- # @param [String] fields
499
- # Selector specifying which fields to include in a partial response.
500
427
  # @param [Google::Apis::RequestOptions] options
501
428
  # Request-specific options
502
429
  #
@@ -509,7 +436,7 @@ module Google
509
436
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
437
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
438
  # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, quota_user: nil, fields: nil, options: nil, &block)
439
+ def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
513
440
  command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
514
441
  command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
515
442
  command.request_object = crypto_key_object
@@ -517,8 +444,8 @@ module Google
517
444
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
518
445
  command.params['parent'] = parent unless parent.nil?
519
446
  command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
520
- command.query['quotaUser'] = quota_user unless quota_user.nil?
521
447
  command.query['fields'] = fields unless fields.nil?
448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
522
449
  execute_or_queue_command(command, &block)
523
450
  end
524
451
 
@@ -528,11 +455,11 @@ module Google
528
455
  # REQUIRED: The resource for which the policy is being specified.
529
456
  # See the operation documentation for the appropriate value for this field.
530
457
  # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
458
+ # @param [String] fields
459
+ # Selector specifying which fields to include in a partial response.
531
460
  # @param [String] quota_user
532
461
  # Available to use for quota purposes for server-side applications. Can be any
533
462
  # arbitrary string assigned to a user, but should not exceed 40 characters.
534
- # @param [String] fields
535
- # Selector specifying which fields to include in a partial response.
536
463
  # @param [Google::Apis::RequestOptions] options
537
464
  # Request-specific options
538
465
  #
@@ -545,15 +472,15 @@ module Google
545
472
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
473
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
474
  # @raise [Google::Apis::AuthorizationError] Authorization is required
548
- def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
475
+ def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
549
476
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
550
477
  command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
551
478
  command.request_object = set_iam_policy_request_object
552
479
  command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
553
480
  command.response_class = Google::Apis::CloudkmsV1::Policy
554
481
  command.params['resource'] = resource unless resource.nil?
555
- command.query['quotaUser'] = quota_user unless quota_user.nil?
556
482
  command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
484
  execute_or_queue_command(command, &block)
558
485
  end
559
486
 
@@ -561,11 +488,11 @@ module Google
561
488
  # @param [String] name
562
489
  # The resource name of the CryptoKey to update.
563
490
  # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
564
493
  # @param [String] quota_user
565
494
  # Available to use for quota purposes for server-side applications. Can be any
566
495
  # arbitrary string assigned to a user, but should not exceed 40 characters.
567
- # @param [String] fields
568
- # Selector specifying which fields to include in a partial response.
569
496
  # @param [Google::Apis::RequestOptions] options
570
497
  # Request-specific options
571
498
  #
@@ -578,15 +505,15 @@ module Google
578
505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
581
- def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
508
+ def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
582
509
  command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
583
510
  command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
584
511
  command.request_object = update_crypto_key_primary_version_request_object
585
512
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
586
513
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
587
514
  command.params['name'] = name unless name.nil?
588
- command.query['quotaUser'] = quota_user unless quota_user.nil?
589
515
  command.query['fields'] = fields unless fields.nil?
516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
590
517
  execute_or_queue_command(command, &block)
591
518
  end
592
519
 
@@ -596,11 +523,11 @@ module Google
596
523
  # @param [String] resource
597
524
  # REQUIRED: The resource for which the policy is being requested.
598
525
  # See the operation documentation for the appropriate value for this field.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
599
528
  # @param [String] quota_user
600
529
  # Available to use for quota purposes for server-side applications. Can be any
601
530
  # arbitrary string assigned to a user, but should not exceed 40 characters.
602
- # @param [String] fields
603
- # Selector specifying which fields to include in a partial response.
604
531
  # @param [Google::Apis::RequestOptions] options
605
532
  # Request-specific options
606
533
  #
@@ -613,13 +540,13 @@ module Google
613
540
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
614
541
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
615
542
  # @raise [Google::Apis::AuthorizationError] Authorization is required
616
- def get_project_location_key_ring_crypto_key_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
543
+ def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
617
544
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
618
545
  command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
619
546
  command.response_class = Google::Apis::CloudkmsV1::Policy
620
547
  command.params['resource'] = resource unless resource.nil?
621
- command.query['quotaUser'] = quota_user unless quota_user.nil?
622
548
  command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
623
550
  execute_or_queue_command(command, &block)
624
551
  end
625
552
 
@@ -627,11 +554,11 @@ module Google
627
554
  # primary CryptoKeyVersion.
628
555
  # @param [String] name
629
556
  # The name of the CryptoKey to get.
557
+ # @param [String] fields
558
+ # Selector specifying which fields to include in a partial response.
630
559
  # @param [String] quota_user
631
560
  # Available to use for quota purposes for server-side applications. Can be any
632
561
  # arbitrary string assigned to a user, but should not exceed 40 characters.
633
- # @param [String] fields
634
- # Selector specifying which fields to include in a partial response.
635
562
  # @param [Google::Apis::RequestOptions] options
636
563
  # Request-specific options
637
564
  #
@@ -644,13 +571,13 @@ module Google
644
571
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
572
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
573
  # @raise [Google::Apis::AuthorizationError] Authorization is required
647
- def get_project_location_key_ring_crypto_key(name, quota_user: nil, fields: nil, options: nil, &block)
574
+ def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
648
575
  command = make_simple_command(:get, 'v1/{+name}', options)
649
576
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
650
577
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
651
578
  command.params['name'] = name unless name.nil?
652
- command.query['quotaUser'] = quota_user unless quota_user.nil?
653
579
  command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
654
581
  execute_or_queue_command(command, &block)
655
582
  end
656
583
 
@@ -661,11 +588,11 @@ module Google
661
588
  # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
662
589
  # @param [String] update_mask
663
590
  # Required list of fields to be updated in this request.
591
+ # @param [String] fields
592
+ # Selector specifying which fields to include in a partial response.
664
593
  # @param [String] quota_user
665
594
  # Available to use for quota purposes for server-side applications. Can be any
666
595
  # arbitrary string assigned to a user, but should not exceed 40 characters.
667
- # @param [String] fields
668
- # Selector specifying which fields to include in a partial response.
669
596
  # @param [Google::Apis::RequestOptions] options
670
597
  # Request-specific options
671
598
  #
@@ -678,7 +605,7 @@ module Google
678
605
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
606
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
607
  # @raise [Google::Apis::AuthorizationError] Authorization is required
681
- def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
608
+ def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
682
609
  command = make_simple_command(:patch, 'v1/{+name}', options)
683
610
  command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
684
611
  command.request_object = crypto_key_object
@@ -686,8 +613,81 @@ module Google
686
613
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
687
614
  command.params['name'] = name unless name.nil?
688
615
  command.query['updateMask'] = update_mask unless update_mask.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Returns permissions that a caller has on the specified resource.
622
+ # If the resource does not exist, this will return an empty set of
623
+ # permissions, not a NOT_FOUND error.
624
+ # Note: This operation is designed to be used for building permission-aware
625
+ # UIs and command-line tools, not for authorization checking. This operation
626
+ # may "fail open" without warning.
627
+ # @param [String] resource
628
+ # REQUIRED: The resource for which the policy detail is being requested.
629
+ # See the operation documentation for the appropriate value for this field.
630
+ # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
650
+ command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
651
+ command.request_object = test_iam_permissions_request_object
652
+ command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
653
+ command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
654
+ command.params['resource'] = resource unless resource.nil?
655
+ command.query['fields'] = fields unless fields.nil?
689
656
  command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Decrypt data that was protected by Encrypt.
661
+ # @param [String] name
662
+ # Required. The resource name of the CryptoKey to use for decryption.
663
+ # The server will choose the appropriate version.
664
+ # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
665
+ # @param [String] fields
666
+ # Selector specifying which fields to include in a partial response.
667
+ # @param [String] quota_user
668
+ # Available to use for quota purposes for server-side applications. Can be any
669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
670
+ # @param [Google::Apis::RequestOptions] options
671
+ # Request-specific options
672
+ #
673
+ # @yield [result, err] Result & error if block supplied
674
+ # @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
675
+ # @yieldparam err [StandardError] error object if request failed
676
+ #
677
+ # @return [Google::Apis::CloudkmsV1::DecryptResponse]
678
+ #
679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
682
+ def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
684
+ command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
685
+ command.request_object = decrypt_request_object
686
+ command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
687
+ command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
688
+ command.params['name'] = name unless name.nil?
690
689
  command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
691
  execute_or_queue_command(command, &block)
692
692
  end
693
693
 
@@ -704,11 +704,11 @@ module Google
704
704
  # subsequently be obtained by including the
705
705
  # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
706
706
  # If unspecified, the server will pick an appropriate default.
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
707
709
  # @param [String] quota_user
708
710
  # Available to use for quota purposes for server-side applications. Can be any
709
711
  # arbitrary string assigned to a user, but should not exceed 40 characters.
710
- # @param [String] fields
711
- # Selector specifying which fields to include in a partial response.
712
712
  # @param [Google::Apis::RequestOptions] options
713
713
  # Request-specific options
714
714
  #
@@ -721,15 +721,15 @@ module Google
721
721
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
722
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
723
  # @raise [Google::Apis::AuthorizationError] Authorization is required
724
- def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
724
+ def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
725
725
  command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
726
726
  command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
727
727
  command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
728
728
  command.params['parent'] = parent unless parent.nil?
729
729
  command.query['pageToken'] = page_token unless page_token.nil?
730
730
  command.query['pageSize'] = page_size unless page_size.nil?
731
- command.query['quotaUser'] = quota_user unless quota_user.nil?
732
731
  command.query['fields'] = fields unless fields.nil?
732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
733
733
  execute_or_queue_command(command, &block)
734
734
  end
735
735
 
@@ -741,11 +741,11 @@ module Google
741
741
  # Required. The name of the CryptoKey associated with
742
742
  # the CryptoKeyVersions.
743
743
  # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
744
+ # @param [String] fields
745
+ # Selector specifying which fields to include in a partial response.
744
746
  # @param [String] quota_user
745
747
  # Available to use for quota purposes for server-side applications. Can be any
746
748
  # arbitrary string assigned to a user, but should not exceed 40 characters.
747
- # @param [String] fields
748
- # Selector specifying which fields to include in a partial response.
749
749
  # @param [Google::Apis::RequestOptions] options
750
750
  # Request-specific options
751
751
  #
@@ -758,15 +758,15 @@ module Google
758
758
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
759
759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
760
760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
761
- def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
761
+ def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
762
762
  command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
763
763
  command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
764
764
  command.request_object = crypto_key_version_object
765
765
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
766
766
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
767
767
  command.params['parent'] = parent unless parent.nil?
768
- command.query['quotaUser'] = quota_user unless quota_user.nil?
769
768
  command.query['fields'] = fields unless fields.nil?
769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
770
770
  execute_or_queue_command(command, &block)
771
771
  end
772
772
 
@@ -783,11 +783,11 @@ module Google
783
783
  # @param [String] name
784
784
  # The resource name of the CryptoKeyVersion to destroy.
785
785
  # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
786
+ # @param [String] fields
787
+ # Selector specifying which fields to include in a partial response.
786
788
  # @param [String] quota_user
787
789
  # Available to use for quota purposes for server-side applications. Can be any
788
790
  # arbitrary string assigned to a user, but should not exceed 40 characters.
789
- # @param [String] fields
790
- # Selector specifying which fields to include in a partial response.
791
791
  # @param [Google::Apis::RequestOptions] options
792
792
  # Request-specific options
793
793
  #
@@ -800,15 +800,15 @@ module Google
800
800
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
801
801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
802
802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
803
- def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
803
+ def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
804
804
  command = make_simple_command(:post, 'v1/{+name}:destroy', options)
805
805
  command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
806
806
  command.request_object = destroy_crypto_key_version_request_object
807
807
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
808
808
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
809
809
  command.params['name'] = name unless name.nil?
810
- command.query['quotaUser'] = quota_user unless quota_user.nil?
811
810
  command.query['fields'] = fields unless fields.nil?
811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
812
812
  execute_or_queue_command(command, &block)
813
813
  end
814
814
 
@@ -821,11 +821,11 @@ module Google
821
821
  # @param [String] name
822
822
  # The resource name of the CryptoKeyVersion to restore.
823
823
  # @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
824
+ # @param [String] fields
825
+ # Selector specifying which fields to include in a partial response.
824
826
  # @param [String] quota_user
825
827
  # Available to use for quota purposes for server-side applications. Can be any
826
828
  # arbitrary string assigned to a user, but should not exceed 40 characters.
827
- # @param [String] fields
828
- # Selector specifying which fields to include in a partial response.
829
829
  # @param [Google::Apis::RequestOptions] options
830
830
  # Request-specific options
831
831
  #
@@ -838,15 +838,15 @@ module Google
838
838
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
839
839
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
840
840
  # @raise [Google::Apis::AuthorizationError] Authorization is required
841
- def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
841
+ def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
842
842
  command = make_simple_command(:post, 'v1/{+name}:restore', options)
843
843
  command.request_representation = Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest::Representation
844
844
  command.request_object = restore_crypto_key_version_request_object
845
845
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
846
846
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
847
847
  command.params['name'] = name unless name.nil?
848
- command.query['quotaUser'] = quota_user unless quota_user.nil?
849
848
  command.query['fields'] = fields unless fields.nil?
849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
850
850
  execute_or_queue_command(command, &block)
851
851
  end
852
852
 
@@ -862,11 +862,11 @@ module Google
862
862
  # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
863
863
  # @param [String] update_mask
864
864
  # Required list of fields to be updated in this request.
865
+ # @param [String] fields
866
+ # Selector specifying which fields to include in a partial response.
865
867
  # @param [String] quota_user
866
868
  # Available to use for quota purposes for server-side applications. Can be any
867
869
  # arbitrary string assigned to a user, but should not exceed 40 characters.
868
- # @param [String] fields
869
- # Selector specifying which fields to include in a partial response.
870
870
  # @param [Google::Apis::RequestOptions] options
871
871
  # Request-specific options
872
872
  #
@@ -879,7 +879,7 @@ module Google
879
879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
880
880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
881
881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
882
- def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
882
+ def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
883
883
  command = make_simple_command(:patch, 'v1/{+name}', options)
884
884
  command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
885
885
  command.request_object = crypto_key_version_object
@@ -887,19 +887,19 @@ module Google
887
887
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
888
888
  command.params['name'] = name unless name.nil?
889
889
  command.query['updateMask'] = update_mask unless update_mask.nil?
890
- command.query['quotaUser'] = quota_user unless quota_user.nil?
891
890
  command.query['fields'] = fields unless fields.nil?
891
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
892
892
  execute_or_queue_command(command, &block)
893
893
  end
894
894
 
895
895
  # Returns metadata for a given CryptoKeyVersion.
896
896
  # @param [String] name
897
897
  # The name of the CryptoKeyVersion to get.
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
898
900
  # @param [String] quota_user
899
901
  # Available to use for quota purposes for server-side applications. Can be any
900
902
  # arbitrary string assigned to a user, but should not exceed 40 characters.
901
- # @param [String] fields
902
- # Selector specifying which fields to include in a partial response.
903
903
  # @param [Google::Apis::RequestOptions] options
904
904
  # Request-specific options
905
905
  #
@@ -912,13 +912,13 @@ module Google
912
912
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
913
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
914
  # @raise [Google::Apis::AuthorizationError] Authorization is required
915
- def get_project_location_key_ring_crypto_key_crypto_key_version(name, quota_user: nil, fields: nil, options: nil, &block)
915
+ def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
916
916
  command = make_simple_command(:get, 'v1/{+name}', options)
917
917
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
918
918
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
919
919
  command.params['name'] = name unless name.nil?
920
- command.query['quotaUser'] = quota_user unless quota_user.nil?
921
920
  command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
922
  execute_or_queue_command(command, &block)
923
923
  end
924
924