google-api-client 0.13.0 → 0.13.1

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