google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -22,319 +22,319 @@ module Google
22
22
  module Apis
23
23
  module IamV1
24
24
 
25
- class ServiceAccountKey
25
+ class CreateServiceAccountRequest
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 CreateServiceAccountKeyRequest
31
+ class ListServiceAccountsResponse
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 SignJwtResponse
37
+ class QueryGrantableRolesResponse
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 SignBlobResponse
43
+ class SignBlobRequest
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 TestIamPermissionsRequest
49
+ class Role
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 SetIamPolicyRequest
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 SignJwtRequest
61
+ class Binding
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 AuditData
67
+ class QueryGrantableRolesRequest
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 BindingDelta
73
+ class Empty
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 PolicyDelta
79
+ class ServiceAccount
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 ListServiceAccountsResponse
85
+ class ListServiceAccountKeysResponse
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 CreateServiceAccountRequest
91
+ class TestIamPermissionsResponse
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 QueryGrantableRolesResponse
97
+ class ServiceAccountKey
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 SignBlobRequest
103
+ class CreateServiceAccountKeyRequest
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 Role
109
+ class TestIamPermissionsRequest
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 SetIamPolicyRequest
115
+ class SignBlobResponse
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 Binding
121
+ class SignJwtResponse
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 QueryGrantableRolesRequest
127
+ class SignJwtRequest
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 Empty
133
+ class Policy
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 ServiceAccount
139
+ class AuditData
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 BindingDelta
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 ListServiceAccountKeysResponse
151
+ class PolicyDelta
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 ServiceAccountKey
157
+ class CreateServiceAccountRequest
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :valid_after_time, as: 'validAfterTime'
161
- property :private_key_type, as: 'privateKeyType'
162
- property :private_key_data, :base64 => true, as: 'privateKeyData'
163
- property :public_key_data, :base64 => true, as: 'publicKeyData'
164
- property :name, as: 'name'
165
- property :valid_before_time, as: 'validBeforeTime'
166
- property :key_algorithm, as: 'keyAlgorithm'
160
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
161
+
162
+ property :account_id, as: 'accountId'
167
163
  end
168
164
  end
169
165
 
170
- class CreateServiceAccountKeyRequest
166
+ class ListServiceAccountsResponse
171
167
  # @private
172
168
  class Representation < Google::Apis::Core::JsonRepresentation
173
- property :private_key_type, as: 'privateKeyType'
174
- property :key_algorithm, as: 'keyAlgorithm'
169
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
170
+
171
+ property :next_page_token, as: 'nextPageToken'
175
172
  end
176
173
  end
177
174
 
178
- class SignJwtResponse
175
+ class QueryGrantableRolesResponse
179
176
  # @private
180
177
  class Representation < Google::Apis::Core::JsonRepresentation
181
- property :key_id, as: 'keyId'
182
- property :signed_jwt, as: 'signedJwt'
178
+ collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
179
+
183
180
  end
184
181
  end
185
182
 
186
- class SignBlobResponse
183
+ class SignBlobRequest
187
184
  # @private
188
185
  class Representation < Google::Apis::Core::JsonRepresentation
189
- property :signature, :base64 => true, as: 'signature'
190
- property :key_id, as: 'keyId'
186
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
191
187
  end
192
188
  end
193
189
 
194
- class TestIamPermissionsRequest
190
+ class Role
195
191
  # @private
196
192
  class Representation < Google::Apis::Core::JsonRepresentation
197
- collection :permissions, as: 'permissions'
193
+ property :title, as: 'title'
194
+ property :name, as: 'name'
195
+ property :description, as: 'description'
198
196
  end
199
197
  end
200
198
 
201
- class Policy
199
+ class SetIamPolicyRequest
202
200
  # @private
203
201
  class Representation < Google::Apis::Core::JsonRepresentation
204
- property :etag, :base64 => true, as: 'etag'
205
- property :version, as: 'version'
206
- collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
202
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
207
203
 
208
204
  end
209
205
  end
210
206
 
211
- class SignJwtRequest
207
+ class Binding
212
208
  # @private
213
209
  class Representation < Google::Apis::Core::JsonRepresentation
214
- property :payload, as: 'payload'
210
+ collection :members, as: 'members'
211
+ property :role, as: 'role'
215
212
  end
216
213
  end
217
214
 
218
- class AuditData
215
+ class QueryGrantableRolesRequest
219
216
  # @private
220
217
  class Representation < Google::Apis::Core::JsonRepresentation
221
- property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
222
-
218
+ property :full_resource_name, as: 'fullResourceName'
223
219
  end
224
220
  end
225
221
 
226
- class BindingDelta
222
+ class Empty
227
223
  # @private
228
224
  class Representation < Google::Apis::Core::JsonRepresentation
229
- property :action, as: 'action'
230
- property :member, as: 'member'
231
- property :role, as: 'role'
232
225
  end
233
226
  end
234
227
 
235
- class PolicyDelta
228
+ class ServiceAccount
236
229
  # @private
237
230
  class Representation < Google::Apis::Core::JsonRepresentation
238
- collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
239
-
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'
240
238
  end
241
239
  end
242
240
 
243
- class ListServiceAccountsResponse
241
+ class ListServiceAccountKeysResponse
244
242
  # @private
245
243
  class Representation < Google::Apis::Core::JsonRepresentation
246
- property :next_page_token, as: 'nextPageToken'
247
- collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
244
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
248
245
 
249
246
  end
250
247
  end
251
248
 
252
- class CreateServiceAccountRequest
249
+ class TestIamPermissionsResponse
253
250
  # @private
254
251
  class Representation < Google::Apis::Core::JsonRepresentation
255
- property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
256
-
257
- property :account_id, as: 'accountId'
252
+ collection :permissions, as: 'permissions'
258
253
  end
259
254
  end
260
255
 
261
- class QueryGrantableRolesResponse
256
+ class ServiceAccountKey
262
257
  # @private
263
258
  class Representation < Google::Apis::Core::JsonRepresentation
264
- collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
265
-
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'
266
266
  end
267
267
  end
268
268
 
269
- class SignBlobRequest
269
+ class CreateServiceAccountKeyRequest
270
270
  # @private
271
271
  class Representation < Google::Apis::Core::JsonRepresentation
272
- property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
272
+ property :key_algorithm, as: 'keyAlgorithm'
273
+ property :private_key_type, as: 'privateKeyType'
273
274
  end
274
275
  end
275
276
 
276
- class Role
277
+ class TestIamPermissionsRequest
277
278
  # @private
278
279
  class Representation < Google::Apis::Core::JsonRepresentation
279
- property :name, as: 'name'
280
- property :description, as: 'description'
281
- property :title, as: 'title'
280
+ collection :permissions, as: 'permissions'
282
281
  end
283
282
  end
284
283
 
285
- class SetIamPolicyRequest
284
+ class SignBlobResponse
286
285
  # @private
287
286
  class Representation < Google::Apis::Core::JsonRepresentation
288
- property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
289
-
287
+ property :key_id, as: 'keyId'
288
+ property :signature, :base64 => true, as: 'signature'
290
289
  end
291
290
  end
292
291
 
293
- class Binding
292
+ class SignJwtResponse
294
293
  # @private
295
294
  class Representation < Google::Apis::Core::JsonRepresentation
296
- collection :members, as: 'members'
297
- property :role, as: 'role'
295
+ property :key_id, as: 'keyId'
296
+ property :signed_jwt, as: 'signedJwt'
298
297
  end
299
298
  end
300
299
 
301
- class QueryGrantableRolesRequest
300
+ class SignJwtRequest
302
301
  # @private
303
302
  class Representation < Google::Apis::Core::JsonRepresentation
304
- property :full_resource_name, as: 'fullResourceName'
303
+ property :payload, as: 'payload'
305
304
  end
306
305
  end
307
306
 
308
- class Empty
307
+ class Policy
309
308
  # @private
310
309
  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
314
  end
312
315
  end
313
316
 
314
- class ServiceAccount
317
+ class AuditData
315
318
  # @private
316
319
  class Representation < Google::Apis::Core::JsonRepresentation
317
- property :display_name, as: 'displayName'
318
- property :etag, :base64 => true, as: 'etag'
319
- property :email, as: 'email'
320
- property :name, as: 'name'
321
- property :project_id, as: 'projectId'
322
- property :unique_id, as: 'uniqueId'
323
- property :oauth2_client_id, as: 'oauth2ClientId'
320
+ property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
321
+
324
322
  end
325
323
  end
326
324
 
327
- class TestIamPermissionsResponse
325
+ class BindingDelta
328
326
  # @private
329
327
  class Representation < Google::Apis::Core::JsonRepresentation
330
- collection :permissions, as: 'permissions'
328
+ property :action, as: 'action'
329
+ property :member, as: 'member'
330
+ property :role, as: 'role'
331
331
  end
332
332
  end
333
333
 
334
- class ListServiceAccountKeysResponse
334
+ class PolicyDelta
335
335
  # @private
336
336
  class Representation < Google::Apis::Core::JsonRepresentation
337
- collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
337
+ collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
338
338
 
339
339
  end
340
340
  end
@@ -48,38 +48,6 @@ module Google
48
48
  super('https://iam.googleapis.com/', '')
49
49
  end
50
50
 
51
- # Queries roles that can be granted on a particular resource.
52
- # A role is grantable if it can be used as the role in a binding for a policy
53
- # for that resource.
54
- # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
74
- command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
75
- command.request_object = query_grantable_roles_request_object
76
- command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
77
- command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
78
- command.query['fields'] = fields unless fields.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
51
  # Creates a ServiceAccount
84
52
  # and returns it.
85
53
  # @param [String] name
@@ -370,6 +338,43 @@ module Google
370
338
  execute_or_queue_command(command, &block)
371
339
  end
372
340
 
341
+ # Signs a blob using a service account's system-managed private key.
342
+ # @param [String] name
343
+ # The resource name of the service account in the following format:
344
+ # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
345
+ # Using `-` as a wildcard for the project will infer the project from
346
+ # the account. The `account` value can be the `email` address or the
347
+ # `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
+
373
378
  # Lists ServiceAccounts for a project.
374
379
  # @param [String] name
375
380
  # Required. The resource name of the project associated with the service
@@ -411,14 +416,15 @@ module Google
411
416
  execute_or_queue_command(command, &block)
412
417
  end
413
418
 
414
- # Signs a blob using a service account's system-managed private key.
419
+ # Creates a ServiceAccountKey
420
+ # and returns it.
415
421
  # @param [String] name
416
422
  # The resource name of the service account in the following format:
417
423
  # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
418
424
  # Using `-` as a wildcard for the project will infer the project from
419
425
  # the account. The `account` value can be the `email` address or the
420
426
  # `unique_id` of the service account.
421
- # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
427
+ # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
422
428
  # @param [String] fields
423
429
  # Selector specifying which fields to include in a partial response.
424
430
  # @param [String] quota_user
@@ -428,20 +434,20 @@ module Google
428
434
  # Request-specific options
429
435
  #
430
436
  # @yield [result, err] Result & error if block supplied
431
- # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
437
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
432
438
  # @yieldparam err [StandardError] error object if request failed
433
439
  #
434
- # @return [Google::Apis::IamV1::SignBlobResponse]
440
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
435
441
  #
436
442
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
443
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
444
  # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
440
- command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
441
- command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
442
- command.request_object = sign_blob_request_object
443
- command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
444
- command.response_class = Google::Apis::IamV1::SignBlobResponse
445
+ def create_service_account_key(name, create_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:post, 'v1/{+name}/keys', options)
447
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
448
+ command.request_object = create_service_account_key_request_object
449
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
450
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
445
451
  command.params['name'] = name unless name.nil?
446
452
  command.query['fields'] = fields unless fields.nil?
447
453
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -560,15 +566,10 @@ module Google
560
566
  execute_or_queue_command(command, &block)
561
567
  end
562
568
 
563
- # Creates a ServiceAccountKey
564
- # and returns it.
565
- # @param [String] name
566
- # The resource name of the service account in the following format:
567
- # `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
568
- # Using `-` as a wildcard for the project will infer the project from
569
- # the account. The `account` value can be the `email` address or the
570
- # `unique_id` of the service account.
571
- # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
569
+ # Queries roles that can be granted on a particular resource.
570
+ # A role is grantable if it can be used as the role in a binding for a policy
571
+ # for that resource.
572
+ # @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
572
573
  # @param [String] fields
573
574
  # Selector specifying which fields to include in a partial response.
574
575
  # @param [String] quota_user
@@ -578,21 +579,20 @@ module Google
578
579
  # Request-specific options
579
580
  #
580
581
  # @yield [result, err] Result & error if block supplied
581
- # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
582
+ # @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
582
583
  # @yieldparam err [StandardError] error object if request failed
583
584
  #
584
- # @return [Google::Apis::IamV1::ServiceAccountKey]
585
+ # @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
585
586
  #
586
587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
589
- def create_service_account_key(name, create_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
590
- command = make_simple_command(:post, 'v1/{+name}/keys', options)
591
- command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
592
- command.request_object = create_service_account_key_request_object
593
- command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
594
- command.response_class = Google::Apis::IamV1::ServiceAccountKey
595
- command.params['name'] = name unless name.nil?
590
+ def query_grantable_roles(query_grantable_roles_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
591
+ command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
592
+ command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
593
+ command.request_object = query_grantable_roles_request_object
594
+ command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
595
+ command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
596
596
  command.query['fields'] = fields unless fields.nil?
597
597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
598
598
  execute_or_queue_command(command, &block)