google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,323 +22,324 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- class SetIamPolicyRequest
25
+ class AuditData
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class Binding
31
+ class BindingDelta
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ServiceAccount
37
+ class PolicyDelta
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Empty
43
+ class ListServiceAccountsResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class QueryGrantableRolesRequest
49
+ class CreateServiceAccountRequest
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class TestIamPermissionsResponse
55
+ class QueryGrantableRolesResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListServiceAccountKeysResponse
61
+ class SignBlobRequest
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class ServiceAccountKey
67
+ class Role
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class CreateServiceAccountKeyRequest
73
+ class SetIamPolicyRequest
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class TestIamPermissionsRequest
79
+ class Binding
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class SignBlobResponse
85
+ class ServiceAccount
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class SignJwtResponse
91
+ class Empty
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class Policy
97
+ class QueryGrantableRolesRequest
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class SignJwtRequest
103
+ class TestIamPermissionsResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class AuditData
109
+ class ListServiceAccountKeysResponse
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class BindingDelta
115
+ class ServiceAccountKey
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class PolicyDelta
121
+ class CreateServiceAccountKeyRequest
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class ListServiceAccountsResponse
127
+ class TestIamPermissionsRequest
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class CreateServiceAccountRequest
133
+ class SignBlobResponse
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class QueryGrantableRolesResponse
139
+ class SignJwtResponse
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class Role
145
+ class SignJwtRequest
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class SignBlobRequest
151
+ class Policy
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
- class SetIamPolicyRequest
157
+ class AuditData
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
160
+ property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
161
161
 
162
162
  end
163
163
  end
164
164
 
165
- class Binding
165
+ class BindingDelta
166
166
  # @private
167
167
  class Representation < Google::Apis::Core::JsonRepresentation
168
- collection :members, as: 'members'
168
+ property :action, as: 'action'
169
+ property :member, as: 'member'
169
170
  property :role, as: 'role'
170
171
  end
171
172
  end
172
173
 
173
- class ServiceAccount
174
+ class PolicyDelta
174
175
  # @private
175
176
  class Representation < Google::Apis::Core::JsonRepresentation
176
- property :display_name, as: 'displayName'
177
- property :etag, :base64 => true, as: 'etag'
178
- property :email, as: 'email'
179
- property :name, as: 'name'
180
- property :project_id, as: 'projectId'
181
- property :unique_id, as: 'uniqueId'
182
- property :oauth2_client_id, as: 'oauth2ClientId'
177
+ collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
178
+
183
179
  end
184
180
  end
185
181
 
186
- class Empty
182
+ class ListServiceAccountsResponse
187
183
  # @private
188
184
  class Representation < Google::Apis::Core::JsonRepresentation
185
+ property :next_page_token, as: 'nextPageToken'
186
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
187
+
189
188
  end
190
189
  end
191
190
 
192
- class QueryGrantableRolesRequest
191
+ class CreateServiceAccountRequest
193
192
  # @private
194
193
  class Representation < Google::Apis::Core::JsonRepresentation
195
- property :full_resource_name, as: 'fullResourceName'
196
- property :page_token, as: 'pageToken'
197
- property :page_size, as: 'pageSize'
194
+ property :account_id, as: 'accountId'
195
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
196
+
198
197
  end
199
198
  end
200
199
 
201
- class TestIamPermissionsResponse
200
+ class QueryGrantableRolesResponse
202
201
  # @private
203
202
  class Representation < Google::Apis::Core::JsonRepresentation
204
- collection :permissions, as: 'permissions'
203
+ collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
204
+
205
+ property :next_page_token, as: 'nextPageToken'
205
206
  end
206
207
  end
207
208
 
208
- class ListServiceAccountKeysResponse
209
+ class SignBlobRequest
209
210
  # @private
210
211
  class Representation < Google::Apis::Core::JsonRepresentation
211
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
212
-
212
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
213
213
  end
214
214
  end
215
215
 
216
- class ServiceAccountKey
216
+ class Role
217
217
  # @private
218
218
  class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :title, as: 'title'
219
220
  property :name, as: 'name'
220
- property :valid_before_time, as: 'validBeforeTime'
221
- property :key_algorithm, as: 'keyAlgorithm'
222
- property :private_key_type, as: 'privateKeyType'
223
- property :valid_after_time, as: 'validAfterTime'
224
- property :private_key_data, :base64 => true, as: 'privateKeyData'
225
- property :public_key_data, :base64 => true, as: 'publicKeyData'
221
+ property :description, as: 'description'
226
222
  end
227
223
  end
228
224
 
229
- class CreateServiceAccountKeyRequest
225
+ class SetIamPolicyRequest
230
226
  # @private
231
227
  class Representation < Google::Apis::Core::JsonRepresentation
232
- property :key_algorithm, as: 'keyAlgorithm'
233
- property :private_key_type, as: 'privateKeyType'
228
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
229
+
234
230
  end
235
231
  end
236
232
 
237
- class TestIamPermissionsRequest
233
+ class Binding
238
234
  # @private
239
235
  class Representation < Google::Apis::Core::JsonRepresentation
240
- collection :permissions, as: 'permissions'
236
+ collection :members, as: 'members'
237
+ property :role, as: 'role'
241
238
  end
242
239
  end
243
240
 
244
- class SignBlobResponse
241
+ class ServiceAccount
245
242
  # @private
246
243
  class Representation < Google::Apis::Core::JsonRepresentation
247
- property :signature, :base64 => true, as: 'signature'
248
- property :key_id, as: 'keyId'
244
+ property :etag, :base64 => true, as: 'etag'
245
+ property :name, as: 'name'
246
+ property :email, as: 'email'
247
+ property :project_id, as: 'projectId'
248
+ property :oauth2_client_id, as: 'oauth2ClientId'
249
+ property :unique_id, as: 'uniqueId'
250
+ property :display_name, as: 'displayName'
249
251
  end
250
252
  end
251
253
 
252
- class SignJwtResponse
254
+ class Empty
253
255
  # @private
254
256
  class Representation < Google::Apis::Core::JsonRepresentation
255
- property :key_id, as: 'keyId'
256
- property :signed_jwt, as: 'signedJwt'
257
257
  end
258
258
  end
259
259
 
260
- class Policy
260
+ class QueryGrantableRolesRequest
261
261
  # @private
262
262
  class Representation < Google::Apis::Core::JsonRepresentation
263
- property :etag, :base64 => true, as: 'etag'
264
- property :version, as: 'version'
265
- collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
266
-
263
+ property :full_resource_name, as: 'fullResourceName'
264
+ property :page_token, as: 'pageToken'
265
+ property :page_size, as: 'pageSize'
267
266
  end
268
267
  end
269
268
 
270
- class SignJwtRequest
269
+ class TestIamPermissionsResponse
271
270
  # @private
272
271
  class Representation < Google::Apis::Core::JsonRepresentation
273
- property :payload, as: 'payload'
272
+ collection :permissions, as: 'permissions'
274
273
  end
275
274
  end
276
275
 
277
- class AuditData
276
+ class ListServiceAccountKeysResponse
278
277
  # @private
279
278
  class Representation < Google::Apis::Core::JsonRepresentation
280
- property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
279
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
281
280
 
282
281
  end
283
282
  end
284
283
 
285
- class BindingDelta
284
+ class ServiceAccountKey
286
285
  # @private
287
286
  class Representation < Google::Apis::Core::JsonRepresentation
288
- property :action, as: 'action'
289
- property :member, as: 'member'
290
- property :role, as: 'role'
287
+ property :valid_after_time, as: 'validAfterTime'
288
+ property :private_key_type, as: 'privateKeyType'
289
+ property :private_key_data, :base64 => true, as: 'privateKeyData'
290
+ property :public_key_data, :base64 => true, as: 'publicKeyData'
291
+ property :name, as: 'name'
292
+ property :valid_before_time, as: 'validBeforeTime'
293
+ property :key_algorithm, as: 'keyAlgorithm'
291
294
  end
292
295
  end
293
296
 
294
- class PolicyDelta
297
+ class CreateServiceAccountKeyRequest
295
298
  # @private
296
299
  class Representation < Google::Apis::Core::JsonRepresentation
297
- collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
298
-
300
+ property :include_public_key_data, as: 'includePublicKeyData'
301
+ property :key_algorithm, as: 'keyAlgorithm'
302
+ property :private_key_type, as: 'privateKeyType'
299
303
  end
300
304
  end
301
305
 
302
- class ListServiceAccountsResponse
306
+ class TestIamPermissionsRequest
303
307
  # @private
304
308
  class Representation < Google::Apis::Core::JsonRepresentation
305
- property :next_page_token, as: 'nextPageToken'
306
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
307
-
309
+ collection :permissions, as: 'permissions'
308
310
  end
309
311
  end
310
312
 
311
- class CreateServiceAccountRequest
313
+ class SignBlobResponse
312
314
  # @private
313
315
  class Representation < Google::Apis::Core::JsonRepresentation
314
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
315
-
316
- property :account_id, as: 'accountId'
316
+ property :key_id, as: 'keyId'
317
+ property :signature, :base64 => true, as: 'signature'
317
318
  end
318
319
  end
319
320
 
320
- class QueryGrantableRolesResponse
321
+ class SignJwtResponse
321
322
  # @private
322
323
  class Representation < Google::Apis::Core::JsonRepresentation
323
- collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
324
-
325
- property :next_page_token, as: 'nextPageToken'
324
+ property :key_id, as: 'keyId'
325
+ property :signed_jwt, as: 'signedJwt'
326
326
  end
327
327
  end
328
328
 
329
- class Role
329
+ class SignJwtRequest
330
330
  # @private
331
331
  class Representation < Google::Apis::Core::JsonRepresentation
332
- property :title, as: 'title'
333
- property :name, as: 'name'
334
- property :description, as: 'description'
332
+ property :payload, as: 'payload'
335
333
  end
336
334
  end
337
335
 
338
- class SignBlobRequest
336
+ class Policy
339
337
  # @private
340
338
  class Representation < Google::Apis::Core::JsonRepresentation
341
- property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
339
+ property :etag, :base64 => true, as: 'etag'
340
+ property :version, as: 'version'
341
+ collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
342
+
342
343
  end
343
344
  end
344
345
  end
@@ -34,21 +34,53 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/iam/
36
36
  class IamService < Google::Apis::Core::BaseService
37
- # @return [String]
38
- # Available to use for quota purposes for server-side applications. Can be any
39
- # arbitrary string assigned to a user, but should not exceed 40 characters.
40
- attr_accessor :quota_user
41
-
42
37
  # @return [String]
43
38
  # API key. Your API key identifies your project and provides you with API access,
44
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
45
40
  attr_accessor :key
46
41
 
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
47
  def initialize
48
48
  super('https://iam.googleapis.com/', '')
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Queries roles that can be granted on a particular resource.
53
+ # A role is grantable if it can be used as the role in a binding for a policy
54
+ # for that resource.
55
+ # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def query_grantable_roles(query_grantable_roles_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
75
+ command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
76
+ command.request_object = query_grantable_roles_request_object
77
+ command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
78
+ command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
52
84
  # Deletes a ServiceAccount.
53
85
  # @param [String] name
54
86
  # The resource name of the service account in the following format:
@@ -161,12 +193,12 @@ module Google
161
193
  execute_or_queue_command(command, &block)
162
194
  end
163
195
 
164
- # Creates a ServiceAccount
165
- # and returns it.
166
- # @param [String] name
167
- # Required. The resource name of the project associated with the service
168
- # accounts, such as `projects/my-project-123`.
169
- # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
196
+ # Sets the IAM access control policy for a
197
+ # ServiceAccount.
198
+ # @param [String] resource
199
+ # REQUIRED: The resource for which the policy is being specified.
200
+ # See the operation documentation for the appropriate value for this field.
201
+ # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
170
202
  # @param [String] quota_user
171
203
  # Available to use for quota purposes for server-side applications. Can be any
172
204
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -176,32 +208,32 @@ module Google
176
208
  # Request-specific options
177
209
  #
178
210
  # @yield [result, err] Result & error if block supplied
179
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
211
+ # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
180
212
  # @yieldparam err [StandardError] error object if request failed
181
213
  #
182
- # @return [Google::Apis::IamV1::ServiceAccount]
214
+ # @return [Google::Apis::IamV1::Policy]
183
215
  #
184
216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
187
- def create_service_account(name, create_service_account_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
188
- command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
189
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
190
- command.request_object = create_service_account_request_object
191
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
192
- command.response_class = Google::Apis::IamV1::ServiceAccount
193
- command.params['name'] = name unless name.nil?
219
+ def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
220
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
221
+ command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
222
+ command.request_object = set_iam_policy_request_object
223
+ command.response_representation = Google::Apis::IamV1::Policy::Representation
224
+ command.response_class = Google::Apis::IamV1::Policy
225
+ command.params['resource'] = resource unless resource.nil?
194
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
195
227
  command.query['fields'] = fields unless fields.nil?
196
228
  execute_or_queue_command(command, &block)
197
229
  end
198
230
 
199
- # Sets the IAM access control policy for a
200
- # ServiceAccount.
201
- # @param [String] resource
202
- # REQUIRED: The resource for which the policy is being specified.
203
- # See the operation documentation for the appropriate value for this field.
204
- # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
231
+ # Creates a ServiceAccount
232
+ # and returns it.
233
+ # @param [String] name
234
+ # Required. The resource name of the project associated with the service
235
+ # accounts, such as `projects/my-project-123`.
236
+ # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
205
237
  # @param [String] quota_user
206
238
  # Available to use for quota purposes for server-side applications. Can be any
207
239
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -211,21 +243,21 @@ module Google
211
243
  # Request-specific options
212
244
  #
213
245
  # @yield [result, err] Result & error if block supplied
214
- # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
246
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
215
247
  # @yieldparam err [StandardError] error object if request failed
216
248
  #
217
- # @return [Google::Apis::IamV1::Policy]
249
+ # @return [Google::Apis::IamV1::ServiceAccount]
218
250
  #
219
251
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
- def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
223
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
224
- command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
225
- command.request_object = set_iam_policy_request_object
226
- command.response_representation = Google::Apis::IamV1::Policy::Representation
227
- command.response_class = Google::Apis::IamV1::Policy
228
- command.params['resource'] = resource unless resource.nil?
254
+ def create_service_account(name, create_service_account_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
255
+ command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
256
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
257
+ command.request_object = create_service_account_request_object
258
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
259
+ command.response_class = Google::Apis::IamV1::ServiceAccount
260
+ command.params['name'] = name unless name.nil?
229
261
  command.query['quotaUser'] = quota_user unless quota_user.nil?
230
262
  command.query['fields'] = fields unless fields.nil?
231
263
  execute_or_queue_command(command, &block)
@@ -414,44 +446,6 @@ module Google
414
446
  execute_or_queue_command(command, &block)
415
447
  end
416
448
 
417
- # Creates a ServiceAccountKey
418
- # and returns it.
419
- # @param [String] name
420
- # The resource name of the service account in the following format:
421
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
422
- # Using `-` as a wildcard for the project will infer the project from
423
- # the account. The `account` value can be the `email` address or the
424
- # `unique_id` of the service account.
425
- # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
426
- # @param [String] quota_user
427
- # Available to use for quota purposes for server-side applications. Can be any
428
- # arbitrary string assigned to a user, but should not exceed 40 characters.
429
- # @param [String] fields
430
- # Selector specifying which fields to include in a partial response.
431
- # @param [Google::Apis::RequestOptions] options
432
- # Request-specific options
433
- #
434
- # @yield [result, err] Result & error if block supplied
435
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
436
- # @yieldparam err [StandardError] error object if request failed
437
- #
438
- # @return [Google::Apis::IamV1::ServiceAccountKey]
439
- #
440
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
441
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
- # @raise [Google::Apis::AuthorizationError] Authorization is required
443
- def create_service_account_key(name, create_service_account_key_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
444
- command = make_simple_command(:post, 'v1/{+name}/keys', options)
445
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
446
- command.request_object = create_service_account_key_request_object
447
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
448
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
449
- command.params['name'] = name unless name.nil?
450
- command.query['quotaUser'] = quota_user unless quota_user.nil?
451
- command.query['fields'] = fields unless fields.nil?
452
- execute_or_queue_command(command, &block)
453
- end
454
-
455
449
  # Deletes a ServiceAccountKey.
456
450
  # @param [String] name
457
451
  # The resource name of the service account key in the following format:
@@ -564,10 +558,15 @@ module Google
564
558
  execute_or_queue_command(command, &block)
565
559
  end
566
560
 
567
- # Queries roles that can be granted on a particular resource.
568
- # A role is grantable if it can be used as the role in a binding for a policy
569
- # for that resource.
570
- # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
561
+ # Creates a ServiceAccountKey
562
+ # and returns it.
563
+ # @param [String] name
564
+ # The resource name of the service account in the following format:
565
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
566
+ # Using `-` as a wildcard for the project will infer the project from
567
+ # the account. The `account` value can be the `email` address or the
568
+ # `unique_id` of the service account.
569
+ # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
571
570
  # @param [String] quota_user
572
571
  # Available to use for quota purposes for server-side applications. Can be any
573
572
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -577,20 +576,21 @@ module Google
577
576
  # Request-specific options
578
577
  #
579
578
  # @yield [result, err] Result & error if block supplied
580
- # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
579
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
581
580
  # @yieldparam err [StandardError] error object if request failed
582
581
  #
583
- # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
582
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
584
583
  #
585
584
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
585
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
586
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def query_grantable_roles(query_grantable_roles_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
589
- command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
590
- command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
591
- command.request_object = query_grantable_roles_request_object
592
- command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
593
- command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
587
+ def create_service_account_key(name, create_service_account_key_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1/{+name}/keys', options)
589
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
590
+ command.request_object = create_service_account_key_request_object
591
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
592
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
593
+ command.params['name'] = name unless name.nil?
594
594
  command.query['quotaUser'] = quota_user unless quota_user.nil?
595
595
  command.query['fields'] = fields unless fields.nil?
596
596
  execute_or_queue_command(command, &block)
@@ -599,8 +599,8 @@ module Google
599
599
  protected
600
600
 
601
601
  def apply_command_defaults(command)
602
- command.query['quotaUser'] = quota_user unless quota_user.nil?
603
602
  command.query['key'] = key unless key.nil?
603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
604
604
  end
605
605
  end
606
606
  end