google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  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 +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -22,320 +22,323 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- class CreateServiceAccountKeyRequest
25
+ class SetIamPolicyRequest
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 SignBlobResponse
31
+ class Binding
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 TestIamPermissionsRequest
37
+ class ServiceAccount
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 SignJwtResponse
43
+ class Empty
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 SignJwtRequest
49
+ class QueryGrantableRolesRequest
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 Policy
55
+ class TestIamPermissionsResponse
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 AuditData
61
+ class ListServiceAccountKeysResponse
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 BindingDelta
67
+ class ServiceAccountKey
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 PolicyDelta
73
+ class CreateServiceAccountKeyRequest
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 ListServiceAccountsResponse
79
+ class TestIamPermissionsRequest
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 CreateServiceAccountRequest
85
+ class SignBlobResponse
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 QueryGrantableRolesResponse
91
+ class SignJwtResponse
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 SignBlobRequest
97
+ class Policy
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 Role
103
+ class SignJwtRequest
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 SetIamPolicyRequest
109
+ class AuditData
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 Binding
115
+ class BindingDelta
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 QueryGrantableRolesRequest
121
+ class PolicyDelta
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 Empty
127
+ class ListServiceAccountsResponse
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 ServiceAccount
133
+ class CreateServiceAccountRequest
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 ListServiceAccountKeysResponse
139
+ class QueryGrantableRolesResponse
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 TestIamPermissionsResponse
145
+ class Role
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 ServiceAccountKey
151
+ class SignBlobRequest
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 CreateServiceAccountKeyRequest
157
+ class SetIamPolicyRequest
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :key_algorithm, as: 'keyAlgorithm'
161
- property :private_key_type, as: 'privateKeyType'
160
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
161
+
162
162
  end
163
163
  end
164
164
 
165
- class SignBlobResponse
165
+ class Binding
166
166
  # @private
167
167
  class Representation < Google::Apis::Core::JsonRepresentation
168
- property :key_id, as: 'keyId'
169
- property :signature, :base64 => true, as: 'signature'
168
+ collection :members, as: 'members'
169
+ property :role, as: 'role'
170
170
  end
171
171
  end
172
172
 
173
- class TestIamPermissionsRequest
173
+ class ServiceAccount
174
174
  # @private
175
175
  class Representation < Google::Apis::Core::JsonRepresentation
176
- collection :permissions, as: 'permissions'
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
183
  end
178
184
  end
179
185
 
180
- class SignJwtResponse
186
+ class Empty
181
187
  # @private
182
188
  class Representation < Google::Apis::Core::JsonRepresentation
183
- property :key_id, as: 'keyId'
184
- property :signed_jwt, as: 'signedJwt'
185
189
  end
186
190
  end
187
191
 
188
- class SignJwtRequest
192
+ class QueryGrantableRolesRequest
189
193
  # @private
190
194
  class Representation < Google::Apis::Core::JsonRepresentation
191
- property :payload, as: 'payload'
195
+ property :full_resource_name, as: 'fullResourceName'
196
+ property :page_token, as: 'pageToken'
197
+ property :page_size, as: 'pageSize'
192
198
  end
193
199
  end
194
200
 
195
- class Policy
201
+ class TestIamPermissionsResponse
196
202
  # @private
197
203
  class Representation < Google::Apis::Core::JsonRepresentation
198
- property :etag, :base64 => true, as: 'etag'
199
- property :version, as: 'version'
200
- collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
201
-
204
+ collection :permissions, as: 'permissions'
202
205
  end
203
206
  end
204
207
 
205
- class AuditData
208
+ class ListServiceAccountKeysResponse
206
209
  # @private
207
210
  class Representation < Google::Apis::Core::JsonRepresentation
208
- property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
211
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
209
212
 
210
213
  end
211
214
  end
212
215
 
213
- class BindingDelta
216
+ class ServiceAccountKey
214
217
  # @private
215
218
  class Representation < Google::Apis::Core::JsonRepresentation
216
- property :role, as: 'role'
217
- property :action, as: 'action'
218
- property :member, as: 'member'
219
+ 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'
219
226
  end
220
227
  end
221
228
 
222
- class PolicyDelta
229
+ class CreateServiceAccountKeyRequest
223
230
  # @private
224
231
  class Representation < Google::Apis::Core::JsonRepresentation
225
- collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
226
-
232
+ property :key_algorithm, as: 'keyAlgorithm'
233
+ property :private_key_type, as: 'privateKeyType'
227
234
  end
228
235
  end
229
236
 
230
- class ListServiceAccountsResponse
237
+ class TestIamPermissionsRequest
231
238
  # @private
232
239
  class Representation < Google::Apis::Core::JsonRepresentation
233
- property :next_page_token, as: 'nextPageToken'
234
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
235
-
240
+ collection :permissions, as: 'permissions'
236
241
  end
237
242
  end
238
243
 
239
- class CreateServiceAccountRequest
244
+ class SignBlobResponse
240
245
  # @private
241
246
  class Representation < Google::Apis::Core::JsonRepresentation
242
- property :account_id, as: 'accountId'
243
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
244
-
247
+ property :signature, :base64 => true, as: 'signature'
248
+ property :key_id, as: 'keyId'
245
249
  end
246
250
  end
247
251
 
248
- class QueryGrantableRolesResponse
252
+ class SignJwtResponse
249
253
  # @private
250
254
  class Representation < Google::Apis::Core::JsonRepresentation
251
- collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
252
-
255
+ property :key_id, as: 'keyId'
256
+ property :signed_jwt, as: 'signedJwt'
253
257
  end
254
258
  end
255
259
 
256
- class SignBlobRequest
260
+ class Policy
257
261
  # @private
258
262
  class Representation < Google::Apis::Core::JsonRepresentation
259
- property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
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
+
260
267
  end
261
268
  end
262
269
 
263
- class Role
270
+ class SignJwtRequest
264
271
  # @private
265
272
  class Representation < Google::Apis::Core::JsonRepresentation
266
- property :name, as: 'name'
267
- property :description, as: 'description'
268
- property :title, as: 'title'
273
+ property :payload, as: 'payload'
269
274
  end
270
275
  end
271
276
 
272
- class SetIamPolicyRequest
277
+ class AuditData
273
278
  # @private
274
279
  class Representation < Google::Apis::Core::JsonRepresentation
275
- property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
280
+ property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
276
281
 
277
282
  end
278
283
  end
279
284
 
280
- class Binding
285
+ class BindingDelta
281
286
  # @private
282
287
  class Representation < Google::Apis::Core::JsonRepresentation
283
- collection :members, as: 'members'
288
+ property :action, as: 'action'
289
+ property :member, as: 'member'
284
290
  property :role, as: 'role'
285
291
  end
286
292
  end
287
293
 
288
- class QueryGrantableRolesRequest
294
+ class PolicyDelta
289
295
  # @private
290
296
  class Representation < Google::Apis::Core::JsonRepresentation
291
- property :full_resource_name, as: 'fullResourceName'
297
+ collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
298
+
292
299
  end
293
300
  end
294
301
 
295
- class Empty
302
+ class ListServiceAccountsResponse
296
303
  # @private
297
304
  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
+
298
308
  end
299
309
  end
300
310
 
301
- class ServiceAccount
311
+ class CreateServiceAccountRequest
302
312
  # @private
303
313
  class Representation < Google::Apis::Core::JsonRepresentation
304
- property :oauth2_client_id, as: 'oauth2ClientId'
305
- property :unique_id, as: 'uniqueId'
306
- property :display_name, as: 'displayName'
307
- property :etag, :base64 => true, as: 'etag'
308
- property :email, as: 'email'
309
- property :name, as: 'name'
310
- property :project_id, as: 'projectId'
314
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
315
+
316
+ property :account_id, as: 'accountId'
311
317
  end
312
318
  end
313
319
 
314
- class ListServiceAccountKeysResponse
320
+ class QueryGrantableRolesResponse
315
321
  # @private
316
322
  class Representation < Google::Apis::Core::JsonRepresentation
317
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
323
+ collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
318
324
 
325
+ property :next_page_token, as: 'nextPageToken'
319
326
  end
320
327
  end
321
328
 
322
- class TestIamPermissionsResponse
329
+ class Role
323
330
  # @private
324
331
  class Representation < Google::Apis::Core::JsonRepresentation
325
- collection :permissions, as: 'permissions'
332
+ property :title, as: 'title'
333
+ property :name, as: 'name'
334
+ property :description, as: 'description'
326
335
  end
327
336
  end
328
337
 
329
- class ServiceAccountKey
338
+ class SignBlobRequest
330
339
  # @private
331
340
  class Representation < Google::Apis::Core::JsonRepresentation
332
- property :key_algorithm, as: 'keyAlgorithm'
333
- property :valid_after_time, as: 'validAfterTime'
334
- property :private_key_type, as: 'privateKeyType'
335
- property :private_key_data, :base64 => true, as: 'privateKeyData'
336
- property :public_key_data, :base64 => true, as: 'publicKeyData'
337
- property :name, as: 'name'
338
- property :valid_before_time, as: 'validBeforeTime'
341
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
339
342
  end
340
343
  end
341
344
  end
@@ -34,87 +34,89 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/iam/
36
36
  class IamService < Google::Apis::Core::BaseService
37
- # @return [String]
38
- # API key. Your API key identifies your project and provides you with API access,
39
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
- attr_accessor :key
41
-
42
37
  # @return [String]
43
38
  # Available to use for quota purposes for server-side applications. Can be any
44
39
  # arbitrary string assigned to a user, but should not exceed 40 characters.
45
40
  attr_accessor :quota_user
46
41
 
42
+ # @return [String]
43
+ # API key. Your API key identifies your project and provides you with API access,
44
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
45
+ attr_accessor :key
46
+
47
47
  def initialize
48
48
  super('https://iam.googleapis.com/', '')
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Tests the specified permissions against the IAM access control policy
53
- # for a ServiceAccount.
54
- # @param [String] resource
55
- # REQUIRED: The resource for which the policy detail is being requested.
56
- # See the operation documentation for the appropriate value for this field.
57
- # @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
58
- # @param [String] fields
59
- # Selector specifying which fields to include in a partial response.
52
+ # Deletes a ServiceAccount.
53
+ # @param [String] name
54
+ # The resource name of the service account in the following format:
55
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
56
+ # Using `-` as a wildcard for the project will infer the project from
57
+ # the account. The `account` value can be the `email` address or the
58
+ # `unique_id` of the service account.
60
59
  # @param [String] quota_user
61
60
  # Available to use for quota purposes for server-side applications. Can be any
62
61
  # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
63
64
  # @param [Google::Apis::RequestOptions] options
64
65
  # Request-specific options
65
66
  #
66
67
  # @yield [result, err] Result & error if block supplied
67
- # @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
68
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
68
69
  # @yieldparam err [StandardError] error object if request failed
69
70
  #
70
- # @return [Google::Apis::IamV1::TestIamPermissionsResponse]
71
+ # @return [Google::Apis::IamV1::Empty]
71
72
  #
72
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
77
- command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
78
- command.request_object = test_iam_permissions_request_object
79
- command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
80
- command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
81
- command.params['resource'] = resource unless resource.nil?
82
- command.query['fields'] = fields unless fields.nil?
76
+ def delete_project_service_account(name, quota_user: nil, fields: nil, options: nil, &block)
77
+ command = make_simple_command(:delete, 'v1/{+name}', options)
78
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
79
+ command.response_class = Google::Apis::IamV1::Empty
80
+ command.params['name'] = name unless name.nil?
83
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ command.query['fields'] = fields unless fields.nil?
84
83
  execute_or_queue_command(command, &block)
85
84
  end
86
85
 
87
- # Deletes a ServiceAccount.
86
+ # Signs a blob using a service account's system-managed private key.
88
87
  # @param [String] name
89
88
  # The resource name of the service account in the following format:
90
89
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
91
90
  # Using `-` as a wildcard for the project will infer the project from
92
91
  # the account. The `account` value can be the `email` address or the
93
92
  # `unique_id` of the service account.
94
- # @param [String] fields
95
- # Selector specifying which fields to include in a partial response.
93
+ # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
96
94
  # @param [String] quota_user
97
95
  # Available to use for quota purposes for server-side applications. Can be any
98
96
  # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
99
  # @param [Google::Apis::RequestOptions] options
100
100
  # Request-specific options
101
101
  #
102
102
  # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
103
+ # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
104
104
  # @yieldparam err [StandardError] error object if request failed
105
105
  #
106
- # @return [Google::Apis::IamV1::Empty]
106
+ # @return [Google::Apis::IamV1::SignBlobResponse]
107
107
  #
108
108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
112
- command = make_simple_command(:delete, 'v1/{+name}', options)
113
- command.response_representation = Google::Apis::IamV1::Empty::Representation
114
- command.response_class = Google::Apis::IamV1::Empty
111
+ def sign_service_account_blob(name, sign_blob_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
112
+ command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
113
+ command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
114
+ command.request_object = sign_blob_request_object
115
+ command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
116
+ command.response_class = Google::Apis::IamV1::SignBlobResponse
115
117
  command.params['name'] = name unless name.nil?
116
- command.query['fields'] = fields unless fields.nil?
117
118
  command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ command.query['fields'] = fields unless fields.nil?
118
120
  execute_or_queue_command(command, &block)
119
121
  end
120
122
 
@@ -130,11 +132,11 @@ module Google
130
132
  # response. Further accounts can subsequently be obtained by including the
131
133
  # ListServiceAccountsResponse.next_page_token
132
134
  # in a subsequent request.
133
- # @param [String] fields
134
- # Selector specifying which fields to include in a partial response.
135
135
  # @param [String] quota_user
136
136
  # Available to use for quota purposes for server-side applications. Can be any
137
137
  # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [String] fields
139
+ # Selector specifying which fields to include in a partial response.
138
140
  # @param [Google::Apis::RequestOptions] options
139
141
  # Request-specific options
140
142
  #
@@ -147,52 +149,15 @@ module Google
147
149
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
150
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
151
  # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
152
+ def list_project_service_accounts(name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
151
153
  command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
152
154
  command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
153
155
  command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
154
156
  command.params['name'] = name unless name.nil?
155
157
  command.query['pageToken'] = page_token unless page_token.nil?
156
158
  command.query['pageSize'] = page_size unless page_size.nil?
157
- command.query['fields'] = fields unless fields.nil?
158
159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
159
- execute_or_queue_command(command, &block)
160
- end
161
-
162
- # Signs a blob using a service account's system-managed private key.
163
- # @param [String] name
164
- # The resource name of the service account in the following format:
165
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
166
- # Using `-` as a wildcard for the project will infer the project from
167
- # the account. The `account` value can be the `email` address or the
168
- # `unique_id` of the service account.
169
- # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
170
- # @param [String] fields
171
- # Selector specifying which fields to include in a partial response.
172
- # @param [String] quota_user
173
- # Available to use for quota purposes for server-side applications. Can be any
174
- # arbitrary string assigned to a user, but should not exceed 40 characters.
175
- # @param [Google::Apis::RequestOptions] options
176
- # Request-specific options
177
- #
178
- # @yield [result, err] Result & error if block supplied
179
- # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
180
- # @yieldparam err [StandardError] error object if request failed
181
- #
182
- # @return [Google::Apis::IamV1::SignBlobResponse]
183
- #
184
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
- # @raise [Google::Apis::AuthorizationError] Authorization is required
187
- def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
188
- command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
189
- command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
190
- command.request_object = sign_blob_request_object
191
- command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
192
- command.response_class = Google::Apis::IamV1::SignBlobResponse
193
- command.params['name'] = name unless name.nil?
194
160
  command.query['fields'] = fields unless fields.nil?
195
- command.query['quotaUser'] = quota_user unless quota_user.nil?
196
161
  execute_or_queue_command(command, &block)
197
162
  end
198
163
 
@@ -202,11 +167,11 @@ module Google
202
167
  # Required. The resource name of the project associated with the service
203
168
  # accounts, such as `projects/my-project-123`.
204
169
  # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
205
- # @param [String] fields
206
- # Selector specifying which fields to include in a partial response.
207
170
  # @param [String] quota_user
208
171
  # Available to use for quota purposes for server-side applications. Can be any
209
172
  # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
210
175
  # @param [Google::Apis::RequestOptions] options
211
176
  # Request-specific options
212
177
  #
@@ -219,15 +184,15 @@ module Google
219
184
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
185
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
186
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
- def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ def create_service_account(name, create_service_account_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
223
188
  command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
224
189
  command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
225
190
  command.request_object = create_service_account_request_object
226
191
  command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
227
192
  command.response_class = Google::Apis::IamV1::ServiceAccount
228
193
  command.params['name'] = name unless name.nil?
229
- command.query['fields'] = fields unless fields.nil?
230
194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ command.query['fields'] = fields unless fields.nil?
231
196
  execute_or_queue_command(command, &block)
232
197
  end
233
198
 
@@ -237,11 +202,11 @@ module Google
237
202
  # REQUIRED: The resource for which the policy is being specified.
238
203
  # See the operation documentation for the appropriate value for this field.
239
204
  # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
240
- # @param [String] fields
241
- # Selector specifying which fields to include in a partial response.
242
205
  # @param [String] quota_user
243
206
  # Available to use for quota purposes for server-side applications. Can be any
244
207
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
+ # @param [String] fields
209
+ # Selector specifying which fields to include in a partial response.
245
210
  # @param [Google::Apis::RequestOptions] options
246
211
  # Request-specific options
247
212
  #
@@ -254,15 +219,15 @@ module Google
254
219
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
255
220
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
256
221
  # @raise [Google::Apis::AuthorizationError] Authorization is required
257
- def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
222
+ def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
258
223
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
259
224
  command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
260
225
  command.request_object = set_iam_policy_request_object
261
226
  command.response_representation = Google::Apis::IamV1::Policy::Representation
262
227
  command.response_class = Google::Apis::IamV1::Policy
263
228
  command.params['resource'] = resource unless resource.nil?
264
- command.query['fields'] = fields unless fields.nil?
265
229
  command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ command.query['fields'] = fields unless fields.nil?
266
231
  execute_or_queue_command(command, &block)
267
232
  end
268
233
 
@@ -277,11 +242,11 @@ module Google
277
242
  # the account. The `account` value can be the `email` address or the
278
243
  # `unique_id` of the service account.
279
244
  # @param [Google::Apis::IamV1::SignJwtRequest] sign_jwt_request_object
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
245
  # @param [String] quota_user
283
246
  # Available to use for quota purposes for server-side applications. Can be any
284
247
  # arbitrary string assigned to a user, but should not exceed 40 characters.
248
+ # @param [String] fields
249
+ # Selector specifying which fields to include in a partial response.
285
250
  # @param [Google::Apis::RequestOptions] options
286
251
  # Request-specific options
287
252
  #
@@ -294,15 +259,15 @@ module Google
294
259
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
260
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
261
  # @raise [Google::Apis::AuthorizationError] Authorization is required
297
- def sign_service_account_jwt(name, sign_jwt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
262
+ def sign_service_account_jwt(name, sign_jwt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
298
263
  command = make_simple_command(:post, 'v1/{+name}:signJwt', options)
299
264
  command.request_representation = Google::Apis::IamV1::SignJwtRequest::Representation
300
265
  command.request_object = sign_jwt_request_object
301
266
  command.response_representation = Google::Apis::IamV1::SignJwtResponse::Representation
302
267
  command.response_class = Google::Apis::IamV1::SignJwtResponse
303
268
  command.params['name'] = name unless name.nil?
304
- command.query['fields'] = fields unless fields.nil?
305
269
  command.query['quotaUser'] = quota_user unless quota_user.nil?
270
+ command.query['fields'] = fields unless fields.nil?
306
271
  execute_or_queue_command(command, &block)
307
272
  end
308
273
 
@@ -311,11 +276,11 @@ module Google
311
276
  # @param [String] resource
312
277
  # REQUIRED: The resource for which the policy is being requested.
313
278
  # See the operation documentation for the appropriate value for this field.
314
- # @param [String] fields
315
- # Selector specifying which fields to include in a partial response.
316
279
  # @param [String] quota_user
317
280
  # Available to use for quota purposes for server-side applications. Can be any
318
281
  # arbitrary string assigned to a user, but should not exceed 40 characters.
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
319
284
  # @param [Google::Apis::RequestOptions] options
320
285
  # Request-specific options
321
286
  #
@@ -328,13 +293,13 @@ module Google
328
293
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
295
  # @raise [Google::Apis::AuthorizationError] Authorization is required
331
- def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
296
+ def get_project_service_account_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
332
297
  command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
333
298
  command.response_representation = Google::Apis::IamV1::Policy::Representation
334
299
  command.response_class = Google::Apis::IamV1::Policy
335
300
  command.params['resource'] = resource unless resource.nil?
336
- command.query['fields'] = fields unless fields.nil?
337
301
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ command.query['fields'] = fields unless fields.nil?
338
303
  execute_or_queue_command(command, &block)
339
304
  end
340
305
 
@@ -345,11 +310,11 @@ module Google
345
310
  # Using `-` as a wildcard for the project will infer the project from
346
311
  # the account. The `account` value can be the `email` address or the
347
312
  # `unique_id` of the service account.
348
- # @param [String] fields
349
- # Selector specifying which fields to include in a partial response.
350
313
  # @param [String] quota_user
351
314
  # Available to use for quota purposes for server-side applications. Can be any
352
315
  # arbitrary string assigned to a user, but should not exceed 40 characters.
316
+ # @param [String] fields
317
+ # Selector specifying which fields to include in a partial response.
353
318
  # @param [Google::Apis::RequestOptions] options
354
319
  # Request-specific options
355
320
  #
@@ -362,13 +327,13 @@ module Google
362
327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
365
- def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
330
+ def get_project_service_account(name, quota_user: nil, fields: nil, options: nil, &block)
366
331
  command = make_simple_command(:get, 'v1/{+name}', options)
367
332
  command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
368
333
  command.response_class = Google::Apis::IamV1::ServiceAccount
369
334
  command.params['name'] = name unless name.nil?
370
- command.query['fields'] = fields unless fields.nil?
371
335
  command.query['quotaUser'] = quota_user unless quota_user.nil?
336
+ command.query['fields'] = fields unless fields.nil?
372
337
  execute_or_queue_command(command, &block)
373
338
  end
374
339
 
@@ -385,11 +350,11 @@ module Google
385
350
  # In responses the resource name will always be in the format
386
351
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
387
352
  # @param [Google::Apis::IamV1::ServiceAccount] service_account_object
388
- # @param [String] fields
389
- # Selector specifying which fields to include in a partial response.
390
353
  # @param [String] quota_user
391
354
  # Available to use for quota purposes for server-side applications. Can be any
392
355
  # arbitrary string assigned to a user, but should not exceed 40 characters.
356
+ # @param [String] fields
357
+ # Selector specifying which fields to include in a partial response.
393
358
  # @param [Google::Apis::RequestOptions] options
394
359
  # Request-specific options
395
360
  #
@@ -402,165 +367,200 @@ module Google
402
367
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
368
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
369
  # @raise [Google::Apis::AuthorizationError] Authorization is required
405
- def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
370
+ def update_project_service_account(name, service_account_object = nil, quota_user: nil, fields: nil, options: nil, &block)
406
371
  command = make_simple_command(:put, 'v1/{+name}', options)
407
372
  command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
408
373
  command.request_object = service_account_object
409
374
  command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
410
375
  command.response_class = Google::Apis::IamV1::ServiceAccount
411
376
  command.params['name'] = name unless name.nil?
377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
412
378
  command.query['fields'] = fields unless fields.nil?
379
+ execute_or_queue_command(command, &block)
380
+ end
381
+
382
+ # Tests the specified permissions against the IAM access control policy
383
+ # for a ServiceAccount.
384
+ # @param [String] resource
385
+ # REQUIRED: The resource for which the policy detail is being requested.
386
+ # See the operation documentation for the appropriate value for this field.
387
+ # @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
388
+ # @param [String] quota_user
389
+ # Available to use for quota purposes for server-side applications. Can be any
390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
391
+ # @param [String] fields
392
+ # Selector specifying which fields to include in a partial response.
393
+ # @param [Google::Apis::RequestOptions] options
394
+ # Request-specific options
395
+ #
396
+ # @yield [result, err] Result & error if block supplied
397
+ # @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
398
+ # @yieldparam err [StandardError] error object if request failed
399
+ #
400
+ # @return [Google::Apis::IamV1::TestIamPermissionsResponse]
401
+ #
402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
405
+ def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
406
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
407
+ command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
408
+ command.request_object = test_iam_permissions_request_object
409
+ command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
410
+ command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
411
+ command.params['resource'] = resource unless resource.nil?
413
412
  command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ command.query['fields'] = fields unless fields.nil?
414
414
  execute_or_queue_command(command, &block)
415
415
  end
416
416
 
417
- # Lists ServiceAccountKeys.
417
+ # Creates a ServiceAccountKey
418
+ # and returns it.
418
419
  # @param [String] name
419
420
  # The resource name of the service account in the following format:
420
421
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
421
- # Using `-` as a wildcard for the project, will infer the project from
422
+ # Using `-` as a wildcard for the project will infer the project from
422
423
  # the account. The `account` value can be the `email` address or the
423
424
  # `unique_id` of the service account.
424
- # @param [Array<String>, String] key_types
425
- # Filters the types of keys the user wants to include in the list
426
- # response. Duplicate key types are not allowed. If no key type
427
- # is provided, all keys are returned.
428
- # @param [String] fields
429
- # Selector specifying which fields to include in a partial response.
425
+ # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
430
426
  # @param [String] quota_user
431
427
  # Available to use for quota purposes for server-side applications. Can be any
432
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.
433
431
  # @param [Google::Apis::RequestOptions] options
434
432
  # Request-specific options
435
433
  #
436
434
  # @yield [result, err] Result & error if block supplied
437
- # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
435
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
438
436
  # @yieldparam err [StandardError] error object if request failed
439
437
  #
440
- # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
438
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
441
439
  #
442
440
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
441
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
442
  # @raise [Google::Apis::AuthorizationError] Authorization is required
445
- def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
446
- command = make_simple_command(:get, 'v1/{+name}/keys', options)
447
- command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
448
- command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
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
449
  command.params['name'] = name unless name.nil?
450
- command.query['keyTypes'] = key_types unless key_types.nil?
451
- command.query['fields'] = fields unless fields.nil?
452
450
  command.query['quotaUser'] = quota_user unless quota_user.nil?
451
+ command.query['fields'] = fields unless fields.nil?
453
452
  execute_or_queue_command(command, &block)
454
453
  end
455
454
 
456
- # Gets the ServiceAccountKey
457
- # by key id.
455
+ # Deletes a ServiceAccountKey.
458
456
  # @param [String] name
459
457
  # The resource name of the service account key in the following format:
460
458
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
461
459
  # Using `-` as a wildcard for the project will infer the project from
462
460
  # the account. The `account` value can be the `email` address or the
463
461
  # `unique_id` of the service account.
464
- # @param [String] public_key_type
465
- # The output format of the public key requested.
466
- # X509_PEM is the default output format.
467
- # @param [String] fields
468
- # Selector specifying which fields to include in a partial response.
469
462
  # @param [String] quota_user
470
463
  # Available to use for quota purposes for server-side applications. Can be any
471
464
  # arbitrary string assigned to a user, but should not exceed 40 characters.
465
+ # @param [String] fields
466
+ # Selector specifying which fields to include in a partial response.
472
467
  # @param [Google::Apis::RequestOptions] options
473
468
  # Request-specific options
474
469
  #
475
470
  # @yield [result, err] Result & error if block supplied
476
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
471
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
477
472
  # @yieldparam err [StandardError] error object if request failed
478
473
  #
479
- # @return [Google::Apis::IamV1::ServiceAccountKey]
474
+ # @return [Google::Apis::IamV1::Empty]
480
475
  #
481
476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
482
477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
483
478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
484
- def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
485
- command = make_simple_command(:get, 'v1/{+name}', options)
486
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
487
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
479
+ def delete_project_service_account_key(name, quota_user: nil, fields: nil, options: nil, &block)
480
+ command = make_simple_command(:delete, 'v1/{+name}', options)
481
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
482
+ command.response_class = Google::Apis::IamV1::Empty
488
483
  command.params['name'] = name unless name.nil?
489
- command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
490
- command.query['fields'] = fields unless fields.nil?
491
484
  command.query['quotaUser'] = quota_user unless quota_user.nil?
485
+ command.query['fields'] = fields unless fields.nil?
492
486
  execute_or_queue_command(command, &block)
493
487
  end
494
488
 
495
- # Creates a ServiceAccountKey
496
- # and returns it.
489
+ # Lists ServiceAccountKeys.
497
490
  # @param [String] name
498
491
  # The resource name of the service account in the following format:
499
492
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
500
- # Using `-` as a wildcard for the project will infer the project from
493
+ # Using `-` as a wildcard for the project, will infer the project from
501
494
  # the account. The `account` value can be the `email` address or the
502
495
  # `unique_id` of the service account.
503
- # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
504
- # @param [String] fields
505
- # Selector specifying which fields to include in a partial response.
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.
506
500
  # @param [String] quota_user
507
501
  # Available to use for quota purposes for server-side applications. Can be any
508
502
  # arbitrary string assigned to a user, but should not exceed 40 characters.
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
509
505
  # @param [Google::Apis::RequestOptions] options
510
506
  # Request-specific options
511
507
  #
512
508
  # @yield [result, err] Result & error if block supplied
513
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
509
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
514
510
  # @yieldparam err [StandardError] error object if request failed
515
511
  #
516
- # @return [Google::Apis::IamV1::ServiceAccountKey]
512
+ # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
517
513
  #
518
514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
521
- def create_service_account_key(name, create_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
522
- command = make_simple_command(:post, 'v1/{+name}/keys', options)
523
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
524
- command.request_object = create_service_account_key_request_object
525
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
526
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
517
+ def list_project_service_account_keys(name, key_types: nil, quota_user: nil, fields: 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
527
521
  command.params['name'] = name unless name.nil?
528
- command.query['fields'] = fields unless fields.nil?
522
+ command.query['keyTypes'] = key_types unless key_types.nil?
529
523
  command.query['quotaUser'] = quota_user unless quota_user.nil?
524
+ command.query['fields'] = fields unless fields.nil?
530
525
  execute_or_queue_command(command, &block)
531
526
  end
532
527
 
533
- # Deletes a ServiceAccountKey.
528
+ # Gets the ServiceAccountKey
529
+ # by key id.
534
530
  # @param [String] name
535
531
  # The resource name of the service account key in the following format:
536
532
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
537
533
  # Using `-` as a wildcard for the project will infer the project from
538
534
  # the account. The `account` value can be the `email` address or the
539
535
  # `unique_id` of the service account.
540
- # @param [String] fields
541
- # Selector specifying which fields to include in a partial response.
536
+ # @param [String] public_key_type
537
+ # The output format of the public key requested.
538
+ # X509_PEM is the default output format.
542
539
  # @param [String] quota_user
543
540
  # Available to use for quota purposes for server-side applications. Can be any
544
541
  # arbitrary string assigned to a user, but should not exceed 40 characters.
542
+ # @param [String] fields
543
+ # Selector specifying which fields to include in a partial response.
545
544
  # @param [Google::Apis::RequestOptions] options
546
545
  # Request-specific options
547
546
  #
548
547
  # @yield [result, err] Result & error if block supplied
549
- # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
548
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
550
549
  # @yieldparam err [StandardError] error object if request failed
551
550
  #
552
- # @return [Google::Apis::IamV1::Empty]
551
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
553
552
  #
554
553
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
555
554
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
556
555
  # @raise [Google::Apis::AuthorizationError] Authorization is required
557
- def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
558
- command = make_simple_command(:delete, 'v1/{+name}', options)
559
- command.response_representation = Google::Apis::IamV1::Empty::Representation
560
- command.response_class = Google::Apis::IamV1::Empty
556
+ def get_project_service_account_key(name, public_key_type: nil, quota_user: nil, fields: 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
561
560
  command.params['name'] = name unless name.nil?
562
- command.query['fields'] = fields unless fields.nil?
561
+ command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
563
562
  command.query['quotaUser'] = quota_user unless quota_user.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
564
  execute_or_queue_command(command, &block)
565
565
  end
566
566
 
@@ -568,11 +568,11 @@ module Google
568
568
  # A role is grantable if it can be used as the role in a binding for a policy
569
569
  # for that resource.
570
570
  # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
571
- # @param [String] fields
572
- # Selector specifying which fields to include in a partial response.
573
571
  # @param [String] quota_user
574
572
  # Available to use for quota purposes for server-side applications. Can be any
575
573
  # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
576
  # @param [Google::Apis::RequestOptions] options
577
577
  # Request-specific options
578
578
  #
@@ -585,22 +585,22 @@ module Google
585
585
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
586
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
587
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ def query_grantable_roles(query_grantable_roles_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
589
589
  command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
590
590
  command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
591
591
  command.request_object = query_grantable_roles_request_object
592
592
  command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
593
593
  command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
594
- command.query['fields'] = fields unless fields.nil?
595
594
  command.query['quotaUser'] = quota_user unless quota_user.nil?
595
+ command.query['fields'] = fields unless fields.nil?
596
596
  execute_or_queue_command(command, &block)
597
597
  end
598
598
 
599
599
  protected
600
600
 
601
601
  def apply_command_defaults(command)
602
- command.query['key'] = key unless key.nil?
603
602
  command.query['quotaUser'] = quota_user unless quota_user.nil?
603
+ command.query['key'] = key unless key.nil?
604
604
  end
605
605
  end
606
606
  end