google-api-client 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -22,320 +22,320 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- class CreateServiceAccountRequest
25
+ class TestIamPermissionsResponse
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 ListServiceAccountsResponse
31
+ class ListServiceAccountKeysResponse
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 QueryGrantableRolesResponse
37
+ class ServiceAccountKey
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 SignBlobRequest
43
+ class CreateServiceAccountKeyRequest
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 Role
49
+ class TestIamPermissionsRequest
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 SetIamPolicyRequest
55
+ class SignBlobResponse
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 Binding
61
+ class SignJwtResponse
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 QueryGrantableRolesRequest
67
+ class SignJwtRequest
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 Empty
73
+ class Policy
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 ServiceAccount
79
+ class AuditData
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 ListServiceAccountKeysResponse
85
+ class BindingDelta
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 TestIamPermissionsResponse
91
+ class PolicyDelta
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 ServiceAccountKey
97
+ class ListServiceAccountsResponse
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 CreateServiceAccountKeyRequest
103
+ class CreateServiceAccountRequest
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 TestIamPermissionsRequest
109
+ class QueryGrantableRolesResponse
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 SignBlobResponse
115
+ class SignBlobRequest
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 SignJwtResponse
121
+ class Role
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 SignJwtRequest
127
+ class SetIamPolicyRequest
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 Policy
133
+ class Binding
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 AuditData
139
+ class ServiceAccount
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 BindingDelta
145
+ class Empty
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 PolicyDelta
151
+ class QueryGrantableRolesRequest
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 CreateServiceAccountRequest
157
+ class TestIamPermissionsResponse
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
161
-
162
- property :account_id, as: 'accountId'
160
+ collection :permissions, as: 'permissions'
163
161
  end
164
162
  end
165
163
 
166
- class ListServiceAccountsResponse
164
+ class ListServiceAccountKeysResponse
167
165
  # @private
168
166
  class Representation < Google::Apis::Core::JsonRepresentation
169
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
167
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
170
168
 
171
- property :next_page_token, as: 'nextPageToken'
172
169
  end
173
170
  end
174
171
 
175
- class QueryGrantableRolesResponse
172
+ class ServiceAccountKey
176
173
  # @private
177
174
  class Representation < Google::Apis::Core::JsonRepresentation
178
- collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
179
-
175
+ property :private_key_data, :base64 => true, as: 'privateKeyData'
176
+ property :public_key_data, :base64 => true, as: 'publicKeyData'
177
+ property :name, as: 'name'
178
+ property :valid_before_time, as: 'validBeforeTime'
179
+ property :key_algorithm, as: 'keyAlgorithm'
180
+ property :private_key_type, as: 'privateKeyType'
181
+ property :valid_after_time, as: 'validAfterTime'
180
182
  end
181
183
  end
182
184
 
183
- class SignBlobRequest
185
+ class CreateServiceAccountKeyRequest
184
186
  # @private
185
187
  class Representation < Google::Apis::Core::JsonRepresentation
186
- property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
188
+ property :key_algorithm, as: 'keyAlgorithm'
189
+ property :private_key_type, as: 'privateKeyType'
187
190
  end
188
191
  end
189
192
 
190
- class Role
193
+ class TestIamPermissionsRequest
191
194
  # @private
192
195
  class Representation < Google::Apis::Core::JsonRepresentation
193
- property :title, as: 'title'
194
- property :name, as: 'name'
195
- property :description, as: 'description'
196
+ collection :permissions, as: 'permissions'
196
197
  end
197
198
  end
198
199
 
199
- class SetIamPolicyRequest
200
+ class SignBlobResponse
200
201
  # @private
201
202
  class Representation < Google::Apis::Core::JsonRepresentation
202
- property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
203
-
203
+ property :key_id, as: 'keyId'
204
+ property :signature, :base64 => true, as: 'signature'
204
205
  end
205
206
  end
206
207
 
207
- class Binding
208
+ class SignJwtResponse
208
209
  # @private
209
210
  class Representation < Google::Apis::Core::JsonRepresentation
210
- collection :members, as: 'members'
211
- property :role, as: 'role'
211
+ property :key_id, as: 'keyId'
212
+ property :signed_jwt, as: 'signedJwt'
212
213
  end
213
214
  end
214
215
 
215
- class QueryGrantableRolesRequest
216
+ class SignJwtRequest
216
217
  # @private
217
218
  class Representation < Google::Apis::Core::JsonRepresentation
218
- property :full_resource_name, as: 'fullResourceName'
219
+ property :payload, as: 'payload'
219
220
  end
220
221
  end
221
222
 
222
- class Empty
223
+ class Policy
223
224
  # @private
224
225
  class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :etag, :base64 => true, as: 'etag'
227
+ property :version, as: 'version'
228
+ collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
229
+
225
230
  end
226
231
  end
227
232
 
228
- class ServiceAccount
233
+ class AuditData
229
234
  # @private
230
235
  class Representation < Google::Apis::Core::JsonRepresentation
231
- property :unique_id, as: 'uniqueId'
232
- property :oauth2_client_id, as: 'oauth2ClientId'
233
- property :display_name, as: 'displayName'
234
- property :etag, :base64 => true, as: 'etag'
235
- property :name, as: 'name'
236
- property :email, as: 'email'
237
- property :project_id, as: 'projectId'
236
+ property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
237
+
238
238
  end
239
239
  end
240
240
 
241
- class ListServiceAccountKeysResponse
241
+ class BindingDelta
242
242
  # @private
243
243
  class Representation < Google::Apis::Core::JsonRepresentation
244
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
245
-
244
+ property :role, as: 'role'
245
+ property :action, as: 'action'
246
+ property :member, as: 'member'
246
247
  end
247
248
  end
248
249
 
249
- class TestIamPermissionsResponse
250
+ class PolicyDelta
250
251
  # @private
251
252
  class Representation < Google::Apis::Core::JsonRepresentation
252
- collection :permissions, as: 'permissions'
253
+ collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
254
+
253
255
  end
254
256
  end
255
257
 
256
- class ServiceAccountKey
258
+ class ListServiceAccountsResponse
257
259
  # @private
258
260
  class Representation < Google::Apis::Core::JsonRepresentation
259
- property :name, as: 'name'
260
- property :valid_before_time, as: 'validBeforeTime'
261
- property :key_algorithm, as: 'keyAlgorithm'
262
- property :valid_after_time, as: 'validAfterTime'
263
- property :private_key_type, as: 'privateKeyType'
264
- property :private_key_data, :base64 => true, as: 'privateKeyData'
265
- property :public_key_data, :base64 => true, as: 'publicKeyData'
261
+ property :next_page_token, as: 'nextPageToken'
262
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
263
+
266
264
  end
267
265
  end
268
266
 
269
- class CreateServiceAccountKeyRequest
267
+ class CreateServiceAccountRequest
270
268
  # @private
271
269
  class Representation < Google::Apis::Core::JsonRepresentation
272
- property :key_algorithm, as: 'keyAlgorithm'
273
- property :private_key_type, as: 'privateKeyType'
270
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
271
+
272
+ property :account_id, as: 'accountId'
274
273
  end
275
274
  end
276
275
 
277
- class TestIamPermissionsRequest
276
+ class QueryGrantableRolesResponse
278
277
  # @private
279
278
  class Representation < Google::Apis::Core::JsonRepresentation
280
- collection :permissions, as: 'permissions'
279
+ collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
280
+
281
281
  end
282
282
  end
283
283
 
284
- class SignBlobResponse
284
+ class SignBlobRequest
285
285
  # @private
286
286
  class Representation < Google::Apis::Core::JsonRepresentation
287
- property :key_id, as: 'keyId'
288
- property :signature, :base64 => true, as: 'signature'
287
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
289
288
  end
290
289
  end
291
290
 
292
- class SignJwtResponse
291
+ class Role
293
292
  # @private
294
293
  class Representation < Google::Apis::Core::JsonRepresentation
295
- property :key_id, as: 'keyId'
296
- property :signed_jwt, as: 'signedJwt'
294
+ property :title, as: 'title'
295
+ property :name, as: 'name'
296
+ property :description, as: 'description'
297
297
  end
298
298
  end
299
299
 
300
- class SignJwtRequest
300
+ class SetIamPolicyRequest
301
301
  # @private
302
302
  class Representation < Google::Apis::Core::JsonRepresentation
303
- property :payload, as: 'payload'
303
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
304
+
304
305
  end
305
306
  end
306
307
 
307
- class Policy
308
+ class Binding
308
309
  # @private
309
310
  class Representation < Google::Apis::Core::JsonRepresentation
310
- property :version, as: 'version'
311
- collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
312
-
313
- property :etag, :base64 => true, as: 'etag'
311
+ property :role, as: 'role'
312
+ collection :members, as: 'members'
314
313
  end
315
314
  end
316
315
 
317
- class AuditData
316
+ class ServiceAccount
318
317
  # @private
319
318
  class Representation < Google::Apis::Core::JsonRepresentation
320
- property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
321
-
319
+ property :project_id, as: 'projectId'
320
+ property :unique_id, as: 'uniqueId'
321
+ property :oauth2_client_id, as: 'oauth2ClientId'
322
+ property :display_name, as: 'displayName'
323
+ property :etag, :base64 => true, as: 'etag'
324
+ property :email, as: 'email'
325
+ property :name, as: 'name'
322
326
  end
323
327
  end
324
328
 
325
- class BindingDelta
329
+ class Empty
326
330
  # @private
327
331
  class Representation < Google::Apis::Core::JsonRepresentation
328
- property :action, as: 'action'
329
- property :member, as: 'member'
330
- property :role, as: 'role'
331
332
  end
332
333
  end
333
334
 
334
- class PolicyDelta
335
+ class QueryGrantableRolesRequest
335
336
  # @private
336
337
  class Representation < Google::Apis::Core::JsonRepresentation
337
- collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
338
-
338
+ property :full_resource_name, as: 'fullResourceName'
339
339
  end
340
340
  end
341
341
  end
@@ -48,12 +48,52 @@ module Google
48
48
  super('https://iam.googleapis.com/', '')
49
49
  end
50
50
 
51
- # Creates a ServiceAccount
52
- # and returns it.
51
+ # Deletes a ServiceAccount.
52
+ # @param [String] name
53
+ # The resource name of the service account in the following format:
54
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
55
+ # Using `-` as a wildcard for the project will infer the project from
56
+ # the account. The `account` value can be the `email` address or the
57
+ # `unique_id` of the service account.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::IamV1::Empty]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:delete, 'v1/{+name}', options)
77
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
78
+ command.response_class = Google::Apis::IamV1::Empty
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists ServiceAccounts for a project.
53
86
  # @param [String] name
54
87
  # Required. The resource name of the project associated with the service
55
88
  # accounts, such as `projects/my-project-123`.
56
- # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
89
+ # @param [String] page_token
90
+ # Optional pagination token returned in an earlier
91
+ # ListServiceAccountsResponse.next_page_token.
92
+ # @param [Fixnum] page_size
93
+ # Optional limit on the number of service accounts to include in the
94
+ # response. Further accounts can subsequently be obtained by including the
95
+ # ListServiceAccountsResponse.next_page_token
96
+ # in a subsequent request.
57
97
  # @param [String] fields
58
98
  # Selector specifying which fields to include in a partial response.
59
99
  # @param [String] quota_user
@@ -63,20 +103,57 @@ module Google
63
103
  # Request-specific options
64
104
  #
65
105
  # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
106
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
67
107
  # @yieldparam err [StandardError] error object if request failed
68
108
  #
69
- # @return [Google::Apis::IamV1::ServiceAccount]
109
+ # @return [Google::Apis::IamV1::ListServiceAccountsResponse]
70
110
  #
71
111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
113
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
- command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
76
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
77
- command.request_object = create_service_account_request_object
78
- command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
79
- command.response_class = Google::Apis::IamV1::ServiceAccount
114
+ def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
116
+ command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
117
+ command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
118
+ command.params['name'] = name unless name.nil?
119
+ command.query['pageToken'] = page_token unless page_token.nil?
120
+ command.query['pageSize'] = page_size unless page_size.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Signs a blob using a service account's system-managed private key.
127
+ # @param [String] name
128
+ # The resource name of the service account in the following format:
129
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
130
+ # Using `-` as a wildcard for the project will infer the project from
131
+ # the account. The `account` value can be the `email` address or the
132
+ # `unique_id` of the service account.
133
+ # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [Google::Apis::RequestOptions] options
140
+ # Request-specific options
141
+ #
142
+ # @yield [result, err] Result & error if block supplied
143
+ # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
144
+ # @yieldparam err [StandardError] error object if request failed
145
+ #
146
+ # @return [Google::Apis::IamV1::SignBlobResponse]
147
+ #
148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
151
+ def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
153
+ command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
154
+ command.request_object = sign_blob_request_object
155
+ command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
156
+ command.response_class = Google::Apis::IamV1::SignBlobResponse
80
157
  command.params['name'] = name unless name.nil?
81
158
  command.query['fields'] = fields unless fields.nil?
82
159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -123,6 +200,41 @@ module Google
123
200
  execute_or_queue_command(command, &block)
124
201
  end
125
202
 
203
+ # Creates a ServiceAccount
204
+ # and returns it.
205
+ # @param [String] name
206
+ # Required. The resource name of the project associated with the service
207
+ # accounts, such as `projects/my-project-123`.
208
+ # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::IamV1::ServiceAccount]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
228
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
229
+ command.request_object = create_service_account_request_object
230
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
231
+ command.response_class = Google::Apis::IamV1::ServiceAccount
232
+ command.params['name'] = name unless name.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
126
238
  # Sets the IAM access control policy for a
127
239
  # ServiceAccount.
128
240
  # @param [String] resource
@@ -304,13 +416,17 @@ module Google
304
416
  execute_or_queue_command(command, &block)
305
417
  end
306
418
 
307
- # Deletes a ServiceAccount.
419
+ # Lists ServiceAccountKeys.
308
420
  # @param [String] name
309
421
  # The resource name of the service account in the following format:
310
422
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
311
- # Using `-` as a wildcard for the project will infer the project from
423
+ # Using `-` as a wildcard for the project, will infer the project from
312
424
  # the account. The `account` value can be the `email` address or the
313
425
  # `unique_id` of the service account.
426
+ # @param [Array<String>, String] key_types
427
+ # Filters the types of keys the user wants to include in the list
428
+ # response. Duplicate key types are not allowed. If no key type
429
+ # is provided, all keys are returned.
314
430
  # @param [String] fields
315
431
  # Selector specifying which fields to include in a partial response.
316
432
  # @param [String] quota_user
@@ -320,73 +436,36 @@ module Google
320
436
  # Request-specific options
321
437
  #
322
438
  # @yield [result, err] Result & error if block supplied
323
- # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
439
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
324
440
  # @yieldparam err [StandardError] error object if request failed
325
441
  #
326
- # @return [Google::Apis::IamV1::Empty]
442
+ # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
327
443
  #
328
444
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
445
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
446
  # @raise [Google::Apis::AuthorizationError] Authorization is required
331
- def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
332
- command = make_simple_command(:delete, 'v1/{+name}', options)
333
- command.response_representation = Google::Apis::IamV1::Empty::Representation
334
- command.response_class = Google::Apis::IamV1::Empty
447
+ def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
448
+ command = make_simple_command(:get, 'v1/{+name}/keys', options)
449
+ command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
450
+ command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
335
451
  command.params['name'] = name unless name.nil?
452
+ command.query['keyTypes'] = key_types unless key_types.nil?
336
453
  command.query['fields'] = fields unless fields.nil?
337
454
  command.query['quotaUser'] = quota_user unless quota_user.nil?
338
455
  execute_or_queue_command(command, &block)
339
456
  end
340
457
 
341
- # Signs a blob using a service account's system-managed private key.
458
+ # Gets the ServiceAccountKey
459
+ # by key id.
342
460
  # @param [String] name
343
- # The resource name of the service account in the following format:
344
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
461
+ # The resource name of the service account key in the following format:
462
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
345
463
  # Using `-` as a wildcard for the project will infer the project from
346
464
  # the account. The `account` value can be the `email` address or the
347
465
  # `unique_id` of the service account.
348
- # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
349
- # @param [String] fields
350
- # Selector specifying which fields to include in a partial response.
351
- # @param [String] quota_user
352
- # Available to use for quota purposes for server-side applications. Can be any
353
- # arbitrary string assigned to a user, but should not exceed 40 characters.
354
- # @param [Google::Apis::RequestOptions] options
355
- # Request-specific options
356
- #
357
- # @yield [result, err] Result & error if block supplied
358
- # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
359
- # @yieldparam err [StandardError] error object if request failed
360
- #
361
- # @return [Google::Apis::IamV1::SignBlobResponse]
362
- #
363
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
364
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
365
- # @raise [Google::Apis::AuthorizationError] Authorization is required
366
- def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
367
- command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
368
- command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
369
- command.request_object = sign_blob_request_object
370
- command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
371
- command.response_class = Google::Apis::IamV1::SignBlobResponse
372
- command.params['name'] = name unless name.nil?
373
- command.query['fields'] = fields unless fields.nil?
374
- command.query['quotaUser'] = quota_user unless quota_user.nil?
375
- execute_or_queue_command(command, &block)
376
- end
377
-
378
- # Lists ServiceAccounts for a project.
379
- # @param [String] name
380
- # Required. The resource name of the project associated with the service
381
- # accounts, such as `projects/my-project-123`.
382
- # @param [String] page_token
383
- # Optional pagination token returned in an earlier
384
- # ListServiceAccountsResponse.next_page_token.
385
- # @param [Fixnum] page_size
386
- # Optional limit on the number of service accounts to include in the
387
- # response. Further accounts can subsequently be obtained by including the
388
- # ListServiceAccountsResponse.next_page_token
389
- # in a subsequent request.
466
+ # @param [String] public_key_type
467
+ # The output format of the public key requested.
468
+ # X509_PEM is the default output format.
390
469
  # @param [String] fields
391
470
  # Selector specifying which fields to include in a partial response.
392
471
  # @param [String] quota_user
@@ -396,21 +475,20 @@ module Google
396
475
  # Request-specific options
397
476
  #
398
477
  # @yield [result, err] Result & error if block supplied
399
- # @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
478
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
400
479
  # @yieldparam err [StandardError] error object if request failed
401
480
  #
402
- # @return [Google::Apis::IamV1::ListServiceAccountsResponse]
481
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
403
482
  #
404
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
407
- def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
408
- command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
409
- command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
410
- command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
486
+ def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:get, 'v1/{+name}', options)
488
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
489
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
411
490
  command.params['name'] = name unless name.nil?
412
- command.query['pageToken'] = page_token unless page_token.nil?
413
- command.query['pageSize'] = page_size unless page_size.nil?
491
+ command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
414
492
  command.query['fields'] = fields unless fields.nil?
415
493
  command.query['quotaUser'] = quota_user unless quota_user.nil?
416
494
  execute_or_queue_command(command, &block)
@@ -488,84 +566,6 @@ module Google
488
566
  execute_or_queue_command(command, &block)
489
567
  end
490
568
 
491
- # Lists ServiceAccountKeys.
492
- # @param [String] name
493
- # The resource name of the service account in the following format:
494
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
495
- # Using `-` as a wildcard for the project, will infer the project from
496
- # the account. The `account` value can be the `email` address or the
497
- # `unique_id` of the service account.
498
- # @param [Array<String>, String] key_types
499
- # Filters the types of keys the user wants to include in the list
500
- # response. Duplicate key types are not allowed. If no key type
501
- # is provided, all keys are returned.
502
- # @param [String] fields
503
- # Selector specifying which fields to include in a partial response.
504
- # @param [String] quota_user
505
- # Available to use for quota purposes for server-side applications. Can be any
506
- # arbitrary string assigned to a user, but should not exceed 40 characters.
507
- # @param [Google::Apis::RequestOptions] options
508
- # Request-specific options
509
- #
510
- # @yield [result, err] Result & error if block supplied
511
- # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
512
- # @yieldparam err [StandardError] error object if request failed
513
- #
514
- # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
515
- #
516
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
- # @raise [Google::Apis::AuthorizationError] Authorization is required
519
- def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
520
- command = make_simple_command(:get, 'v1/{+name}/keys', options)
521
- command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
522
- command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
523
- command.params['name'] = name unless name.nil?
524
- command.query['keyTypes'] = key_types unless key_types.nil?
525
- command.query['fields'] = fields unless fields.nil?
526
- command.query['quotaUser'] = quota_user unless quota_user.nil?
527
- execute_or_queue_command(command, &block)
528
- end
529
-
530
- # Gets the ServiceAccountKey
531
- # by key id.
532
- # @param [String] name
533
- # The resource name of the service account key in the following format:
534
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
535
- # Using `-` as a wildcard for the project will infer the project from
536
- # the account. The `account` value can be the `email` address or the
537
- # `unique_id` of the service account.
538
- # @param [String] public_key_type
539
- # The output format of the public key requested.
540
- # X509_PEM is the default output format.
541
- # @param [String] fields
542
- # Selector specifying which fields to include in a partial response.
543
- # @param [String] quota_user
544
- # Available to use for quota purposes for server-side applications. Can be any
545
- # arbitrary string assigned to a user, but should not exceed 40 characters.
546
- # @param [Google::Apis::RequestOptions] options
547
- # Request-specific options
548
- #
549
- # @yield [result, err] Result & error if block supplied
550
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
551
- # @yieldparam err [StandardError] error object if request failed
552
- #
553
- # @return [Google::Apis::IamV1::ServiceAccountKey]
554
- #
555
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
- # @raise [Google::Apis::AuthorizationError] Authorization is required
558
- def get_project_service_account_key(name, public_key_type: nil, fields: nil, quota_user: nil, options: nil, &block)
559
- command = make_simple_command(:get, 'v1/{+name}', options)
560
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
561
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
562
- command.params['name'] = name unless name.nil?
563
- command.query['publicKeyType'] = public_key_type unless public_key_type.nil?
564
- command.query['fields'] = fields unless fields.nil?
565
- command.query['quotaUser'] = quota_user unless quota_user.nil?
566
- execute_or_queue_command(command, &block)
567
- end
568
-
569
569
  # Queries roles that can be granted on a particular resource.
570
570
  # A role is grantable if it can be used as the role in a binding for a policy
571
571
  # for that resource.