google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
+ class CreateServiceAccountRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListServiceAccountsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class QueryGrantableRolesResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class SignBlobRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Role
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class SetIamPolicyRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
25
61
  class Binding
26
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
63
 
@@ -46,13 +82,13 @@ module Google
46
82
  include Google::Apis::Core::JsonObjectSupport
47
83
  end
48
84
 
49
- class TestIamPermissionsResponse
85
+ class ListServiceAccountKeysResponse
50
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
87
 
52
88
  include Google::Apis::Core::JsonObjectSupport
53
89
  end
54
90
 
55
- class ListServiceAccountKeysResponse
91
+ class TestIamPermissionsResponse
56
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
93
 
58
94
  include Google::Apis::Core::JsonObjectSupport
@@ -118,40 +154,55 @@ module Google
118
154
  include Google::Apis::Core::JsonObjectSupport
119
155
  end
120
156
 
121
- class ListServiceAccountsResponse
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
157
+ class CreateServiceAccountRequest
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ property :account_id, as: 'accountId'
161
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
123
162
 
124
- include Google::Apis::Core::JsonObjectSupport
163
+ end
125
164
  end
126
165
 
127
- class CreateServiceAccountRequest
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
166
+ class ListServiceAccountsResponse
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :next_page_token, as: 'nextPageToken'
170
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
129
171
 
130
- include Google::Apis::Core::JsonObjectSupport
172
+ end
131
173
  end
132
174
 
133
175
  class QueryGrantableRolesResponse
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ property :next_page_token, as: 'nextPageToken'
179
+ collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
135
180
 
136
- include Google::Apis::Core::JsonObjectSupport
181
+ end
137
182
  end
138
183
 
139
184
  class SignBlobRequest
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
188
+ end
143
189
  end
144
190
 
145
191
  class Role
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
192
+ # @private
193
+ class Representation < Google::Apis::Core::JsonRepresentation
194
+ property :title, as: 'title'
195
+ property :name, as: 'name'
196
+ property :description, as: 'description'
197
+ end
149
198
  end
150
199
 
151
200
  class SetIamPolicyRequest
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
201
+ # @private
202
+ class Representation < Google::Apis::Core::JsonRepresentation
203
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
153
204
 
154
- include Google::Apis::Core::JsonObjectSupport
205
+ end
155
206
  end
156
207
 
157
208
  class Binding
@@ -165,12 +216,12 @@ module Google
165
216
  class ServiceAccount
166
217
  # @private
167
218
  class Representation < Google::Apis::Core::JsonRepresentation
168
- property :oauth2_client_id, as: 'oauth2ClientId'
169
219
  property :unique_id, as: 'uniqueId'
220
+ property :oauth2_client_id, as: 'oauth2ClientId'
170
221
  property :display_name, as: 'displayName'
171
222
  property :etag, :base64 => true, as: 'etag'
172
- property :name, as: 'name'
173
223
  property :email, as: 'email'
224
+ property :name, as: 'name'
174
225
  property :project_id, as: 'projectId'
175
226
  end
176
227
  end
@@ -190,18 +241,18 @@ module Google
190
241
  end
191
242
  end
192
243
 
193
- class TestIamPermissionsResponse
244
+ class ListServiceAccountKeysResponse
194
245
  # @private
195
246
  class Representation < Google::Apis::Core::JsonRepresentation
196
- collection :permissions, as: 'permissions'
247
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
248
+
197
249
  end
198
250
  end
199
251
 
200
- class ListServiceAccountKeysResponse
252
+ class TestIamPermissionsResponse
201
253
  # @private
202
254
  class Representation < Google::Apis::Core::JsonRepresentation
203
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
204
-
255
+ collection :permissions, as: 'permissions'
205
256
  end
206
257
  end
207
258
 
@@ -221,9 +272,9 @@ module Google
221
272
  class CreateServiceAccountKeyRequest
222
273
  # @private
223
274
  class Representation < Google::Apis::Core::JsonRepresentation
224
- property :private_key_type, as: 'privateKeyType'
225
275
  property :include_public_key_data, as: 'includePublicKeyData'
226
276
  property :key_algorithm, as: 'keyAlgorithm'
277
+ property :private_key_type, as: 'privateKeyType'
227
278
  end
228
279
  end
229
280
 
@@ -245,8 +296,8 @@ module Google
245
296
  class SignJwtResponse
246
297
  # @private
247
298
  class Representation < Google::Apis::Core::JsonRepresentation
248
- property :key_id, as: 'keyId'
249
299
  property :signed_jwt, as: 'signedJwt'
300
+ property :key_id, as: 'keyId'
250
301
  end
251
302
  end
252
303
 
@@ -278,9 +329,9 @@ module Google
278
329
  class BindingDelta
279
330
  # @private
280
331
  class Representation < Google::Apis::Core::JsonRepresentation
281
- property :action, as: 'action'
282
332
  property :member, as: 'member'
283
333
  property :role, as: 'role'
334
+ property :action, as: 'action'
284
335
  end
285
336
  end
286
337
 
@@ -291,57 +342,6 @@ module Google
291
342
 
292
343
  end
293
344
  end
294
-
295
- class ListServiceAccountsResponse
296
- # @private
297
- class Representation < Google::Apis::Core::JsonRepresentation
298
- property :next_page_token, as: 'nextPageToken'
299
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
300
-
301
- end
302
- end
303
-
304
- class CreateServiceAccountRequest
305
- # @private
306
- class Representation < Google::Apis::Core::JsonRepresentation
307
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
308
-
309
- property :account_id, as: 'accountId'
310
- end
311
- end
312
-
313
- class QueryGrantableRolesResponse
314
- # @private
315
- class Representation < Google::Apis::Core::JsonRepresentation
316
- collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
317
-
318
- property :next_page_token, as: 'nextPageToken'
319
- end
320
- end
321
-
322
- class SignBlobRequest
323
- # @private
324
- class Representation < Google::Apis::Core::JsonRepresentation
325
- property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
326
- end
327
- end
328
-
329
- class Role
330
- # @private
331
- class Representation < Google::Apis::Core::JsonRepresentation
332
- property :name, as: 'name'
333
- property :description, as: 'description'
334
- property :title, as: 'title'
335
- end
336
- end
337
-
338
- class SetIamPolicyRequest
339
- # @private
340
- class Representation < Google::Apis::Core::JsonRepresentation
341
- property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
342
-
343
- end
344
- end
345
345
  end
346
346
  end
347
347
  end
@@ -49,72 +49,6 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Returns the IAM access control policy for a
53
- # ServiceAccount.
54
- # @param [String] resource
55
- # REQUIRED: The resource for which the policy is being requested.
56
- # See the operation documentation for the appropriate value for this field.
57
- # @param [String] fields
58
- # Selector specifying which fields to include in a partial response.
59
- # @param [String] quota_user
60
- # Available to use for quota purposes for server-side applications. Can be any
61
- # arbitrary string assigned to a user, but should not exceed 40 characters.
62
- # @param [Google::Apis::RequestOptions] options
63
- # Request-specific options
64
- #
65
- # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
67
- # @yieldparam err [StandardError] error object if request failed
68
- #
69
- # @return [Google::Apis::IamV1::Policy]
70
- #
71
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
- # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
75
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
76
- command.response_representation = Google::Apis::IamV1::Policy::Representation
77
- command.response_class = Google::Apis::IamV1::Policy
78
- command.params['resource'] = resource unless resource.nil?
79
- command.query['fields'] = fields unless fields.nil?
80
- command.query['quotaUser'] = quota_user unless quota_user.nil?
81
- execute_or_queue_command(command, &block)
82
- end
83
-
84
- # Gets a ServiceAccount.
85
- # @param [String] name
86
- # The resource name of the service account in the following format:
87
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
88
- # Using `-` as a wildcard for the project will infer the project from
89
- # the account. The `account` value can be the `email` address or the
90
- # `unique_id` of the service account.
91
- # @param [String] fields
92
- # Selector specifying which fields to include in a partial response.
93
- # @param [String] quota_user
94
- # Available to use for quota purposes for server-side applications. Can be any
95
- # arbitrary string assigned to a user, but should not exceed 40 characters.
96
- # @param [Google::Apis::RequestOptions] options
97
- # Request-specific options
98
- #
99
- # @yield [result, err] Result & error if block supplied
100
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
101
- # @yieldparam err [StandardError] error object if request failed
102
- #
103
- # @return [Google::Apis::IamV1::ServiceAccount]
104
- #
105
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
- # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
109
- command = make_simple_command(:get, 'v1/{+name}', options)
110
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
111
- command.response_class = Google::Apis::IamV1::ServiceAccount
112
- command.params['name'] = name unless name.nil?
113
- command.query['fields'] = fields unless fields.nil?
114
- command.query['quotaUser'] = quota_user unless quota_user.nil?
115
- execute_or_queue_command(command, &block)
116
- end
117
-
118
52
  # Updates a ServiceAccount.
119
53
  # Currently, only the following fields are updatable:
120
54
  # `display_name` .
@@ -226,6 +160,43 @@ module Google
226
160
  execute_or_queue_command(command, &block)
227
161
  end
228
162
 
163
+ # Signs a blob using a service account's system-managed private key.
164
+ # @param [String] name
165
+ # The resource name of the service account in the following format:
166
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
167
+ # Using `-` as a wildcard for the project will infer the project from
168
+ # the account. The `account` value can be the `email` address or the
169
+ # `unique_id` of the service account.
170
+ # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # @param [Google::Apis::RequestOptions] options
177
+ # Request-specific options
178
+ #
179
+ # @yield [result, err] Result & error if block supplied
180
+ # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
181
+ # @yieldparam err [StandardError] error object if request failed
182
+ #
183
+ # @return [Google::Apis::IamV1::SignBlobResponse]
184
+ #
185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
188
+ def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
189
+ command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
190
+ command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
191
+ command.request_object = sign_blob_request_object
192
+ command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
193
+ command.response_class = Google::Apis::IamV1::SignBlobResponse
194
+ command.params['name'] = name unless name.nil?
195
+ command.query['fields'] = fields unless fields.nil?
196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
197
+ execute_or_queue_command(command, &block)
198
+ end
199
+
229
200
  # Lists ServiceAccounts for a project.
230
201
  # @param [String] name
231
202
  # Required. The resource name of the project associated with the service
@@ -267,14 +238,12 @@ module Google
267
238
  execute_or_queue_command(command, &block)
268
239
  end
269
240
 
270
- # Signs a blob using a service account's system-managed private key.
241
+ # Creates a ServiceAccount
242
+ # and returns it.
271
243
  # @param [String] name
272
- # The resource name of the service account in the following format:
273
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
274
- # Using `-` as a wildcard for the project will infer the project from
275
- # the account. The `account` value can be the `email` address or the
276
- # `unique_id` of the service account.
277
- # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
244
+ # Required. The resource name of the project associated with the service
245
+ # accounts, such as `projects/my-project-123`.
246
+ # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
278
247
  # @param [String] fields
279
248
  # Selector specifying which fields to include in a partial response.
280
249
  # @param [String] quota_user
@@ -284,20 +253,20 @@ module Google
284
253
  # Request-specific options
285
254
  #
286
255
  # @yield [result, err] Result & error if block supplied
287
- # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
256
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
288
257
  # @yieldparam err [StandardError] error object if request failed
289
258
  #
290
- # @return [Google::Apis::IamV1::SignBlobResponse]
259
+ # @return [Google::Apis::IamV1::ServiceAccount]
291
260
  #
292
261
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
262
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
263
  # @raise [Google::Apis::AuthorizationError] Authorization is required
295
- def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
296
- command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
297
- command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
298
- command.request_object = sign_blob_request_object
299
- command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
300
- command.response_class = Google::Apis::IamV1::SignBlobResponse
264
+ def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
266
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
267
+ command.request_object = create_service_account_request_object
268
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
269
+ command.response_class = Google::Apis::IamV1::ServiceAccount
301
270
  command.params['name'] = name unless name.nil?
302
271
  command.query['fields'] = fields unless fields.nil?
303
272
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -339,12 +308,17 @@ module Google
339
308
  execute_or_queue_command(command, &block)
340
309
  end
341
310
 
342
- # Creates a ServiceAccount
343
- # and returns it.
311
+ # Signs a JWT using a service account's system-managed private key.
312
+ # If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
313
+ # an expiry time of one hour by default. If you request an expiry time of
314
+ # more than one hour, the request will fail.
344
315
  # @param [String] name
345
- # Required. The resource name of the project associated with the service
346
- # accounts, such as `projects/my-project-123`.
347
- # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
316
+ # The resource name of the service account in the following format:
317
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
318
+ # Using `-` as a wildcard for the project will infer the project from
319
+ # the account. The `account` value can be the `email` address or the
320
+ # `unique_id` of the service account.
321
+ # @param [Google::Apis::IamV1::SignJwtRequest] sign_jwt_request_object
348
322
  # @param [String] fields
349
323
  # Selector specifying which fields to include in a partial response.
350
324
  # @param [String] quota_user
@@ -354,37 +328,65 @@ module Google
354
328
  # Request-specific options
355
329
  #
356
330
  # @yield [result, err] Result & error if block supplied
357
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
331
+ # @yieldparam result [Google::Apis::IamV1::SignJwtResponse] parsed result object
358
332
  # @yieldparam err [StandardError] error object if request failed
359
333
  #
360
- # @return [Google::Apis::IamV1::ServiceAccount]
334
+ # @return [Google::Apis::IamV1::SignJwtResponse]
361
335
  #
362
336
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
337
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
338
  # @raise [Google::Apis::AuthorizationError] Authorization is required
365
- def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
366
- command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
367
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
368
- command.request_object = create_service_account_request_object
369
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
370
- command.response_class = Google::Apis::IamV1::ServiceAccount
339
+ def sign_service_account_jwt(name, sign_jwt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
340
+ command = make_simple_command(:post, 'v1/{+name}:signJwt', options)
341
+ command.request_representation = Google::Apis::IamV1::SignJwtRequest::Representation
342
+ command.request_object = sign_jwt_request_object
343
+ command.response_representation = Google::Apis::IamV1::SignJwtResponse::Representation
344
+ command.response_class = Google::Apis::IamV1::SignJwtResponse
371
345
  command.params['name'] = name unless name.nil?
372
346
  command.query['fields'] = fields unless fields.nil?
373
347
  command.query['quotaUser'] = quota_user unless quota_user.nil?
374
348
  execute_or_queue_command(command, &block)
375
349
  end
376
350
 
377
- # Signs a JWT using a service account's system-managed private key.
378
- # If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
379
- # an expiry time of one hour by default. If you request an expiry time of
380
- # more than one hour, the request will fail.
351
+ # Returns the IAM access control policy for a
352
+ # ServiceAccount.
353
+ # @param [String] resource
354
+ # REQUIRED: The resource for which the policy is being requested.
355
+ # See the operation documentation for the appropriate value for this field.
356
+ # @param [String] fields
357
+ # Selector specifying which fields to include in a partial response.
358
+ # @param [String] quota_user
359
+ # Available to use for quota purposes for server-side applications. Can be any
360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
361
+ # @param [Google::Apis::RequestOptions] options
362
+ # Request-specific options
363
+ #
364
+ # @yield [result, err] Result & error if block supplied
365
+ # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
366
+ # @yieldparam err [StandardError] error object if request failed
367
+ #
368
+ # @return [Google::Apis::IamV1::Policy]
369
+ #
370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
373
+ def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
374
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
375
+ command.response_representation = Google::Apis::IamV1::Policy::Representation
376
+ command.response_class = Google::Apis::IamV1::Policy
377
+ command.params['resource'] = resource unless resource.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Gets a ServiceAccount.
381
384
  # @param [String] name
382
385
  # The resource name of the service account in the following format:
383
386
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
384
387
  # Using `-` as a wildcard for the project will infer the project from
385
388
  # the account. The `account` value can be the `email` address or the
386
389
  # `unique_id` of the service account.
387
- # @param [Google::Apis::IamV1::SignJwtRequest] sign_jwt_request_object
388
390
  # @param [String] fields
389
391
  # Selector specifying which fields to include in a partial response.
390
392
  # @param [String] quota_user
@@ -394,20 +396,18 @@ module Google
394
396
  # Request-specific options
395
397
  #
396
398
  # @yield [result, err] Result & error if block supplied
397
- # @yieldparam result [Google::Apis::IamV1::SignJwtResponse] parsed result object
399
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
398
400
  # @yieldparam err [StandardError] error object if request failed
399
401
  #
400
- # @return [Google::Apis::IamV1::SignJwtResponse]
402
+ # @return [Google::Apis::IamV1::ServiceAccount]
401
403
  #
402
404
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
405
- def sign_service_account_jwt(name, sign_jwt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
406
- command = make_simple_command(:post, 'v1/{+name}:signJwt', options)
407
- command.request_representation = Google::Apis::IamV1::SignJwtRequest::Representation
408
- command.request_object = sign_jwt_request_object
409
- command.response_representation = Google::Apis::IamV1::SignJwtResponse::Representation
410
- command.response_class = Google::Apis::IamV1::SignJwtResponse
407
+ def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
408
+ command = make_simple_command(:get, 'v1/{+name}', options)
409
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
410
+ command.response_class = Google::Apis::IamV1::ServiceAccount
411
411
  command.params['name'] = name unless name.nil?
412
412
  command.query['fields'] = fields unless fields.nil?
413
413
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -486,17 +486,17 @@ module Google
486
486
  execute_or_queue_command(command, &block)
487
487
  end
488
488
 
489
- # Lists ServiceAccountKeys.
489
+ # Gets the ServiceAccountKey
490
+ # by key id.
490
491
  # @param [String] name
491
- # The resource name of the service account in the following format:
492
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
493
- # Using `-` as a wildcard for the project, will infer the project from
492
+ # The resource name of the service account key in the following format:
493
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
494
+ # Using `-` as a wildcard for the project will infer the project from
494
495
  # the account. The `account` value can be the `email` address or the
495
496
  # `unique_id` of the service account.
496
- # @param [Array<String>, String] key_types
497
- # Filters the types of keys the user wants to include in the list
498
- # response. Duplicate key types are not allowed. If no key type
499
- # is provided, all keys are returned.
497
+ # @param [String] public_key_type
498
+ # The output format of the public key requested.
499
+ # X509_PEM is the default output format.
500
500
  # @param [String] fields
501
501
  # Selector specifying which fields to include in a partial response.
502
502
  # @param [String] quota_user
@@ -506,36 +506,36 @@ module Google
506
506
  # Request-specific options
507
507
  #
508
508
  # @yield [result, err] Result & error if block supplied
509
- # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
509
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
510
510
  # @yieldparam err [StandardError] error object if request failed
511
511
  #
512
- # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
512
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
513
513
  #
514
514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
517
- def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
518
- command = make_simple_command(:get, 'v1/{+name}/keys', options)
519
- command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
520
- command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
517
+ def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
518
+ command = make_simple_command(:get, 'v1/{+name}', options)
519
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
520
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
521
521
  command.params['name'] = name unless name.nil?
522
- command.query['keyTypes'] = key_types unless key_types.nil?
522
+ command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
523
523
  command.query['fields'] = fields unless fields.nil?
524
524
  command.query['quotaUser'] = quota_user unless quota_user.nil?
525
525
  execute_or_queue_command(command, &block)
526
526
  end
527
527
 
528
- # Gets the ServiceAccountKey
529
- # by key id.
528
+ # Lists ServiceAccountKeys.
530
529
  # @param [String] name
531
- # The resource name of the service account key in the following format:
532
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
533
- # Using `-` as a wildcard for the project will infer the project from
530
+ # The resource name of the service account in the following format:
531
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
532
+ # Using `-` as a wildcard for the project, will infer the project from
534
533
  # the account. The `account` value can be the `email` address or the
535
534
  # `unique_id` of the service account.
536
- # @param [String] public_key_type
537
- # The output format of the public key requested.
538
- # X509_PEM is the default output format.
535
+ # @param [Array<String>, String] key_types
536
+ # Filters the types of keys the user wants to include in the list
537
+ # response. Duplicate key types are not allowed. If no key type
538
+ # is provided, all keys are returned.
539
539
  # @param [String] fields
540
540
  # Selector specifying which fields to include in a partial response.
541
541
  # @param [String] quota_user
@@ -545,20 +545,20 @@ module Google
545
545
  # Request-specific options
546
546
  #
547
547
  # @yield [result, err] Result & error if block supplied
548
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
548
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
549
549
  # @yieldparam err [StandardError] error object if request failed
550
550
  #
551
- # @return [Google::Apis::IamV1::ServiceAccountKey]
551
+ # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
552
552
  #
553
553
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
554
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
555
  # @raise [Google::Apis::AuthorizationError] Authorization is required
556
- def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
557
- command = make_simple_command(:get, 'v1/{+name}', options)
558
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
559
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
556
+ def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
557
+ command = make_simple_command(:get, 'v1/{+name}/keys', options)
558
+ command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
559
+ command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
560
560
  command.params['name'] = name unless name.nil?
561
- command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
561
+ command.query['keyTypes'] = key_types unless key_types.nil?
562
562
  command.query['fields'] = fields unless fields.nil?
563
563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
564
  execute_or_queue_command(command, &block)