google-api-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -22,320 +22,320 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module IamV1
|
24
24
|
|
25
|
-
class
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
85
|
+
class TestIamPermissionsResponse
|
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
|
91
|
+
class ListServiceAccountKeysResponse
|
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
|
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
|
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
|
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
|
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
|
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
|
127
|
+
class Policy
|
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
|
133
|
+
class SignJwtRequest
|
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
|
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
|
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
|
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
|
157
|
+
class CreateServiceAccountRequest
|
158
158
|
# @private
|
159
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
|
160
|
+
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
161
|
+
|
162
|
+
property :account_id, as: 'accountId'
|
161
163
|
end
|
162
164
|
end
|
163
165
|
|
164
|
-
class
|
166
|
+
class ListServiceAccountsResponse
|
165
167
|
# @private
|
166
168
|
class Representation < Google::Apis::Core::JsonRepresentation
|
167
|
-
|
169
|
+
property :next_page_token, as: 'nextPageToken'
|
170
|
+
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
168
171
|
|
169
172
|
end
|
170
173
|
end
|
171
174
|
|
172
|
-
class
|
175
|
+
class QueryGrantableRolesResponse
|
173
176
|
# @private
|
174
177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
-
|
176
|
-
|
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'
|
178
|
+
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
179
|
+
|
182
180
|
end
|
183
181
|
end
|
184
182
|
|
185
|
-
class
|
183
|
+
class SignBlobRequest
|
186
184
|
# @private
|
187
185
|
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
-
property :
|
189
|
-
property :private_key_type, as: 'privateKeyType'
|
186
|
+
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
190
187
|
end
|
191
188
|
end
|
192
189
|
|
193
|
-
class
|
190
|
+
class Role
|
194
191
|
# @private
|
195
192
|
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
-
|
193
|
+
property :title, as: 'title'
|
194
|
+
property :name, as: 'name'
|
195
|
+
property :description, as: 'description'
|
197
196
|
end
|
198
197
|
end
|
199
198
|
|
200
|
-
class
|
199
|
+
class SetIamPolicyRequest
|
201
200
|
# @private
|
202
201
|
class Representation < Google::Apis::Core::JsonRepresentation
|
203
|
-
property :
|
204
|
-
|
202
|
+
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
203
|
+
|
205
204
|
end
|
206
205
|
end
|
207
206
|
|
208
|
-
class
|
207
|
+
class Binding
|
209
208
|
# @private
|
210
209
|
class Representation < Google::Apis::Core::JsonRepresentation
|
211
|
-
|
212
|
-
property :
|
210
|
+
collection :members, as: 'members'
|
211
|
+
property :role, as: 'role'
|
213
212
|
end
|
214
213
|
end
|
215
214
|
|
216
|
-
class
|
215
|
+
class QueryGrantableRolesRequest
|
217
216
|
# @private
|
218
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
property :
|
218
|
+
property :full_resource_name, as: 'fullResourceName'
|
220
219
|
end
|
221
220
|
end
|
222
221
|
|
223
|
-
class
|
222
|
+
class Empty
|
224
223
|
# @private
|
225
224
|
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
|
-
|
230
225
|
end
|
231
226
|
end
|
232
227
|
|
233
|
-
class
|
228
|
+
class ServiceAccount
|
234
229
|
# @private
|
235
230
|
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
-
property :
|
237
|
-
|
231
|
+
property :email, as: 'email'
|
232
|
+
property :name, as: 'name'
|
233
|
+
property :project_id, as: 'projectId'
|
234
|
+
property :oauth2_client_id, as: 'oauth2ClientId'
|
235
|
+
property :unique_id, as: 'uniqueId'
|
236
|
+
property :display_name, as: 'displayName'
|
237
|
+
property :etag, :base64 => true, as: 'etag'
|
238
238
|
end
|
239
239
|
end
|
240
240
|
|
241
|
-
class
|
241
|
+
class TestIamPermissionsResponse
|
242
242
|
# @private
|
243
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
-
|
245
|
-
property :action, as: 'action'
|
246
|
-
property :member, as: 'member'
|
244
|
+
collection :permissions, as: 'permissions'
|
247
245
|
end
|
248
246
|
end
|
249
247
|
|
250
|
-
class
|
248
|
+
class ListServiceAccountKeysResponse
|
251
249
|
# @private
|
252
250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
-
collection :
|
251
|
+
collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
|
254
252
|
|
255
253
|
end
|
256
254
|
end
|
257
255
|
|
258
|
-
class
|
256
|
+
class ServiceAccountKey
|
259
257
|
# @private
|
260
258
|
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
-
property :
|
262
|
-
|
263
|
-
|
259
|
+
property :valid_after_time, as: 'validAfterTime'
|
260
|
+
property :private_key_type, as: 'privateKeyType'
|
261
|
+
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
262
|
+
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
263
|
+
property :name, as: 'name'
|
264
|
+
property :valid_before_time, as: 'validBeforeTime'
|
265
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
264
266
|
end
|
265
267
|
end
|
266
268
|
|
267
|
-
class
|
269
|
+
class CreateServiceAccountKeyRequest
|
268
270
|
# @private
|
269
271
|
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
-
property :
|
271
|
-
|
272
|
-
property :account_id, as: 'accountId'
|
272
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
273
|
+
property :private_key_type, as: 'privateKeyType'
|
273
274
|
end
|
274
275
|
end
|
275
276
|
|
276
|
-
class
|
277
|
+
class TestIamPermissionsRequest
|
277
278
|
# @private
|
278
279
|
class Representation < Google::Apis::Core::JsonRepresentation
|
279
|
-
collection :
|
280
|
-
|
280
|
+
collection :permissions, as: 'permissions'
|
281
281
|
end
|
282
282
|
end
|
283
283
|
|
284
|
-
class
|
284
|
+
class SignBlobResponse
|
285
285
|
# @private
|
286
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
287
|
-
property :
|
287
|
+
property :signature, :base64 => true, as: 'signature'
|
288
|
+
property :key_id, as: 'keyId'
|
288
289
|
end
|
289
290
|
end
|
290
291
|
|
291
|
-
class
|
292
|
+
class SignJwtResponse
|
292
293
|
# @private
|
293
294
|
class Representation < Google::Apis::Core::JsonRepresentation
|
294
|
-
property :
|
295
|
-
property :
|
296
|
-
property :description, as: 'description'
|
295
|
+
property :key_id, as: 'keyId'
|
296
|
+
property :signed_jwt, as: 'signedJwt'
|
297
297
|
end
|
298
298
|
end
|
299
299
|
|
300
|
-
class
|
300
|
+
class Policy
|
301
301
|
# @private
|
302
302
|
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
-
|
303
|
+
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
304
304
|
|
305
|
+
property :etag, :base64 => true, as: 'etag'
|
306
|
+
property :version, as: 'version'
|
305
307
|
end
|
306
308
|
end
|
307
309
|
|
308
|
-
class
|
310
|
+
class SignJwtRequest
|
309
311
|
# @private
|
310
312
|
class Representation < Google::Apis::Core::JsonRepresentation
|
311
|
-
property :
|
312
|
-
collection :members, as: 'members'
|
313
|
+
property :payload, as: 'payload'
|
313
314
|
end
|
314
315
|
end
|
315
316
|
|
316
|
-
class
|
317
|
+
class AuditData
|
317
318
|
# @private
|
318
319
|
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
-
property :
|
320
|
-
|
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'
|
320
|
+
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
321
|
+
|
326
322
|
end
|
327
323
|
end
|
328
324
|
|
329
|
-
class
|
325
|
+
class BindingDelta
|
330
326
|
# @private
|
331
327
|
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
+
property :role, as: 'role'
|
329
|
+
property :action, as: 'action'
|
330
|
+
property :member, as: 'member'
|
332
331
|
end
|
333
332
|
end
|
334
333
|
|
335
|
-
class
|
334
|
+
class PolicyDelta
|
336
335
|
# @private
|
337
336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
338
|
-
|
337
|
+
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
338
|
+
|
339
339
|
end
|
340
340
|
end
|
341
341
|
end
|
@@ -48,13 +48,51 @@ module Google
|
|
48
48
|
super('https://iam.googleapis.com/', '')
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
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
|
+
# Updates a ServiceAccount.
|
84
|
+
# Currently, only the following fields are updatable:
|
85
|
+
# `display_name` .
|
86
|
+
# The `etag` is mandatory.
|
52
87
|
# @param [String] name
|
53
88
|
# The resource name of the service account in the following format:
|
54
89
|
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
55
|
-
#
|
56
|
-
# the account
|
57
|
-
# `unique_id` of the service account.
|
90
|
+
# Requests using `-` as a wildcard for the project will infer the project
|
91
|
+
# from the `account` and the `account` value can be the `email` address or
|
92
|
+
# the `unique_id` of the service account.
|
93
|
+
# In responses the resource name will always be in the format
|
94
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
95
|
+
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object
|
58
96
|
# @param [String] fields
|
59
97
|
# Selector specifying which fields to include in a partial response.
|
60
98
|
# @param [String] quota_user
|
@@ -64,36 +102,68 @@ module Google
|
|
64
102
|
# Request-specific options
|
65
103
|
#
|
66
104
|
# @yield [result, err] Result & error if block supplied
|
67
|
-
# @yieldparam result [Google::Apis::IamV1::
|
105
|
+
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
68
106
|
# @yieldparam err [StandardError] error object if request failed
|
69
107
|
#
|
70
|
-
# @return [Google::Apis::IamV1::
|
108
|
+
# @return [Google::Apis::IamV1::ServiceAccount]
|
71
109
|
#
|
72
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
-
def
|
76
|
-
command = make_simple_command(:
|
77
|
-
command.
|
78
|
-
command.
|
113
|
+
def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
115
|
+
command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
116
|
+
command.request_object = service_account_object
|
117
|
+
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
118
|
+
command.response_class = Google::Apis::IamV1::ServiceAccount
|
79
119
|
command.params['name'] = name unless name.nil?
|
80
120
|
command.query['fields'] = fields unless fields.nil?
|
81
121
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
122
|
execute_or_queue_command(command, &block)
|
83
123
|
end
|
84
124
|
|
85
|
-
#
|
125
|
+
# Tests the specified permissions against the IAM access control policy
|
126
|
+
# for a ServiceAccount.
|
127
|
+
# @param [String] resource
|
128
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
129
|
+
# See the operation documentation for the appropriate value for this field.
|
130
|
+
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::IamV1::TestIamPermissionsResponse]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
150
|
+
command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
|
151
|
+
command.request_object = test_iam_permissions_request_object
|
152
|
+
command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
|
153
|
+
command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
|
154
|
+
command.params['resource'] = resource unless resource.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Deletes a ServiceAccount.
|
86
161
|
# @param [String] name
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
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.
|
162
|
+
# The resource name of the service account in the following format:
|
163
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
164
|
+
# Using `-` as a wildcard for the project will infer the project from
|
165
|
+
# the account. The `account` value can be the `email` address or the
|
166
|
+
# `unique_id` of the service account.
|
97
167
|
# @param [String] fields
|
98
168
|
# Selector specifying which fields to include in a partial response.
|
99
169
|
# @param [String] quota_user
|
@@ -103,21 +173,19 @@ module Google
|
|
103
173
|
# Request-specific options
|
104
174
|
#
|
105
175
|
# @yield [result, err] Result & error if block supplied
|
106
|
-
# @yieldparam result [Google::Apis::IamV1::
|
176
|
+
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
107
177
|
# @yieldparam err [StandardError] error object if request failed
|
108
178
|
#
|
109
|
-
# @return [Google::Apis::IamV1::
|
179
|
+
# @return [Google::Apis::IamV1::Empty]
|
110
180
|
#
|
111
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
-
def
|
115
|
-
command = make_simple_command(:
|
116
|
-
command.response_representation = Google::Apis::IamV1::
|
117
|
-
command.response_class = Google::Apis::IamV1::
|
184
|
+
def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
186
|
+
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
187
|
+
command.response_class = Google::Apis::IamV1::Empty
|
118
188
|
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
189
|
command.query['fields'] = fields unless fields.nil?
|
122
190
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
191
|
execute_or_queue_command(command, &block)
|
@@ -160,17 +228,18 @@ module Google
|
|
160
228
|
execute_or_queue_command(command, &block)
|
161
229
|
end
|
162
230
|
|
163
|
-
#
|
164
|
-
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
165
|
-
# an expiry time of one hour by default. If you request an expiry time of
|
166
|
-
# more than one hour, the request will fail.
|
231
|
+
# Lists ServiceAccounts for a project.
|
167
232
|
# @param [String] name
|
168
|
-
# The resource name of the
|
169
|
-
# `projects
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
# @param [
|
233
|
+
# Required. The resource name of the project associated with the service
|
234
|
+
# accounts, such as `projects/my-project-123`.
|
235
|
+
# @param [String] page_token
|
236
|
+
# Optional pagination token returned in an earlier
|
237
|
+
# ListServiceAccountsResponse.next_page_token.
|
238
|
+
# @param [Fixnum] page_size
|
239
|
+
# Optional limit on the number of service accounts to include in the
|
240
|
+
# response. Further accounts can subsequently be obtained by including the
|
241
|
+
# ListServiceAccountsResponse.next_page_token
|
242
|
+
# in a subsequent request.
|
174
243
|
# @param [String] fields
|
175
244
|
# Selector specifying which fields to include in a partial response.
|
176
245
|
# @param [String] quota_user
|
@@ -180,21 +249,21 @@ module Google
|
|
180
249
|
# Request-specific options
|
181
250
|
#
|
182
251
|
# @yield [result, err] Result & error if block supplied
|
183
|
-
# @yieldparam result [Google::Apis::IamV1::
|
252
|
+
# @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
|
184
253
|
# @yieldparam err [StandardError] error object if request failed
|
185
254
|
#
|
186
|
-
# @return [Google::Apis::IamV1::
|
255
|
+
# @return [Google::Apis::IamV1::ListServiceAccountsResponse]
|
187
256
|
#
|
188
257
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
258
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
259
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
-
def
|
192
|
-
command = make_simple_command(:
|
193
|
-
command.
|
194
|
-
command.
|
195
|
-
command.response_representation = Google::Apis::IamV1::SignJwtResponse::Representation
|
196
|
-
command.response_class = Google::Apis::IamV1::SignJwtResponse
|
260
|
+
def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
|
262
|
+
command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
|
263
|
+
command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
|
197
264
|
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
198
267
|
command.query['fields'] = fields unless fields.nil?
|
199
268
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
269
|
execute_or_queue_command(command, &block)
|
@@ -235,12 +304,51 @@ module Google
|
|
235
304
|
execute_or_queue_command(command, &block)
|
236
305
|
end
|
237
306
|
|
307
|
+
# Signs a JWT using a service account's system-managed private key.
|
308
|
+
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
309
|
+
# an expiry time of one hour by default. If you request an expiry time of
|
310
|
+
# more than one hour, the request will fail.
|
311
|
+
# @param [String] name
|
312
|
+
# The resource name of the service account in the following format:
|
313
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
314
|
+
# Using `-` as a wildcard for the project will infer the project from
|
315
|
+
# the account. The `account` value can be the `email` address or the
|
316
|
+
# `unique_id` of the service account.
|
317
|
+
# @param [Google::Apis::IamV1::SignJwtRequest] sign_jwt_request_object
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::IamV1::SignJwtResponse] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::IamV1::SignJwtResponse]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def sign_service_account_jwt(name, sign_jwt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:post, 'v1/{+name}:signJwt', options)
|
337
|
+
command.request_representation = Google::Apis::IamV1::SignJwtRequest::Representation
|
338
|
+
command.request_object = sign_jwt_request_object
|
339
|
+
command.response_representation = Google::Apis::IamV1::SignJwtResponse::Representation
|
340
|
+
command.response_class = Google::Apis::IamV1::SignJwtResponse
|
341
|
+
command.params['name'] = name unless name.nil?
|
342
|
+
command.query['fields'] = fields unless fields.nil?
|
343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
344
|
+
execute_or_queue_command(command, &block)
|
345
|
+
end
|
346
|
+
|
238
347
|
# Sets the IAM access control policy for a
|
239
348
|
# ServiceAccount.
|
240
349
|
# @param [String] resource
|
241
350
|
# REQUIRED: The resource for which the policy is being specified.
|
242
|
-
#
|
243
|
-
# resource is specified as `projects/`project``.
|
351
|
+
# See the operation documentation for the appropriate value for this field.
|
244
352
|
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
|
245
353
|
# @param [String] fields
|
246
354
|
# Selector specifying which fields to include in a partial response.
|
@@ -275,8 +383,7 @@ module Google
|
|
275
383
|
# ServiceAccount.
|
276
384
|
# @param [String] resource
|
277
385
|
# REQUIRED: The resource for which the policy is being requested.
|
278
|
-
#
|
279
|
-
# resource is specified as `projects/`project``.
|
386
|
+
# See the operation documentation for the appropriate value for this field.
|
280
387
|
# @param [String] fields
|
281
388
|
# Selector specifying which fields to include in a partial response.
|
282
389
|
# @param [String] quota_user
|
@@ -338,19 +445,13 @@ module Google
|
|
338
445
|
execute_or_queue_command(command, &block)
|
339
446
|
end
|
340
447
|
|
341
|
-
#
|
342
|
-
# Currently, only the following fields are updatable:
|
343
|
-
# `display_name` .
|
344
|
-
# The `etag` is mandatory.
|
448
|
+
# Deletes a ServiceAccountKey.
|
345
449
|
# @param [String] name
|
346
|
-
# The resource name of the service account in the following format:
|
347
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
# In responses the resource name will always be in the format
|
352
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
353
|
-
# @param [Google::Apis::IamV1::ServiceAccount] service_account_object
|
450
|
+
# The resource name of the service account key in the following format:
|
451
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
|
452
|
+
# Using `-` as a wildcard for the project will infer the project from
|
453
|
+
# the account. The `account` value can be the `email` address or the
|
454
|
+
# `unique_id` of the service account.
|
354
455
|
# @param [String] fields
|
355
456
|
# Selector specifying which fields to include in a partial response.
|
356
457
|
# @param [String] quota_user
|
@@ -360,62 +461,24 @@ module Google
|
|
360
461
|
# Request-specific options
|
361
462
|
#
|
362
463
|
# @yield [result, err] Result & error if block supplied
|
363
|
-
# @yieldparam result [Google::Apis::IamV1::
|
464
|
+
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
364
465
|
# @yieldparam err [StandardError] error object if request failed
|
365
466
|
#
|
366
|
-
# @return [Google::Apis::IamV1::
|
467
|
+
# @return [Google::Apis::IamV1::Empty]
|
367
468
|
#
|
368
469
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
369
470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
370
471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
371
|
-
def
|
372
|
-
command = make_simple_command(:
|
373
|
-
command.
|
374
|
-
command.
|
375
|
-
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
376
|
-
command.response_class = Google::Apis::IamV1::ServiceAccount
|
472
|
+
def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
|
473
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
474
|
+
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
475
|
+
command.response_class = Google::Apis::IamV1::Empty
|
377
476
|
command.params['name'] = name unless name.nil?
|
378
477
|
command.query['fields'] = fields unless fields.nil?
|
379
478
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
479
|
execute_or_queue_command(command, &block)
|
381
480
|
end
|
382
481
|
|
383
|
-
# Tests the specified permissions against the IAM access control policy
|
384
|
-
# for a ServiceAccount.
|
385
|
-
# @param [String] resource
|
386
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
387
|
-
# `resource` is usually specified as a path. For example, a Project
|
388
|
-
# resource is specified as `projects/`project``.
|
389
|
-
# @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
390
|
-
# @param [String] fields
|
391
|
-
# Selector specifying which fields to include in a partial response.
|
392
|
-
# @param [String] quota_user
|
393
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
394
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
395
|
-
# @param [Google::Apis::RequestOptions] options
|
396
|
-
# Request-specific options
|
397
|
-
#
|
398
|
-
# @yield [result, err] Result & error if block supplied
|
399
|
-
# @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
|
400
|
-
# @yieldparam err [StandardError] error object if request failed
|
401
|
-
#
|
402
|
-
# @return [Google::Apis::IamV1::TestIamPermissionsResponse]
|
403
|
-
#
|
404
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
405
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
406
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
407
|
-
def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
408
|
-
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
409
|
-
command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
|
410
|
-
command.request_object = test_iam_permissions_request_object
|
411
|
-
command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
|
412
|
-
command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
|
413
|
-
command.params['resource'] = resource unless resource.nil?
|
414
|
-
command.query['fields'] = fields unless fields.nil?
|
415
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
|
-
execute_or_queue_command(command, &block)
|
417
|
-
end
|
418
|
-
|
419
482
|
# Lists ServiceAccountKeys.
|
420
483
|
# @param [String] name
|
421
484
|
# The resource name of the service account in the following format:
|
@@ -531,72 +594,6 @@ module Google
|
|
531
594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
532
595
|
execute_or_queue_command(command, &block)
|
533
596
|
end
|
534
|
-
|
535
|
-
# Deletes a ServiceAccountKey.
|
536
|
-
# @param [String] name
|
537
|
-
# The resource name of the service account key in the following format:
|
538
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
|
539
|
-
# Using `-` as a wildcard for the project will infer the project from
|
540
|
-
# the account. The `account` value can be the `email` address or the
|
541
|
-
# `unique_id` of the service account.
|
542
|
-
# @param [String] fields
|
543
|
-
# Selector specifying which fields to include in a partial response.
|
544
|
-
# @param [String] quota_user
|
545
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
546
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
547
|
-
# @param [Google::Apis::RequestOptions] options
|
548
|
-
# Request-specific options
|
549
|
-
#
|
550
|
-
# @yield [result, err] Result & error if block supplied
|
551
|
-
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
552
|
-
# @yieldparam err [StandardError] error object if request failed
|
553
|
-
#
|
554
|
-
# @return [Google::Apis::IamV1::Empty]
|
555
|
-
#
|
556
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
557
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
558
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
559
|
-
def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
|
560
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
561
|
-
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
562
|
-
command.response_class = Google::Apis::IamV1::Empty
|
563
|
-
command.params['name'] = name unless name.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
|
-
# 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
|
573
|
-
# @param [String] fields
|
574
|
-
# Selector specifying which fields to include in a partial response.
|
575
|
-
# @param [String] quota_user
|
576
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
577
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
578
|
-
# @param [Google::Apis::RequestOptions] options
|
579
|
-
# Request-specific options
|
580
|
-
#
|
581
|
-
# @yield [result, err] Result & error if block supplied
|
582
|
-
# @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
|
583
|
-
# @yieldparam err [StandardError] error object if request failed
|
584
|
-
#
|
585
|
-
# @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
|
586
|
-
#
|
587
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
588
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
589
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
-
command.query['fields'] = fields unless fields.nil?
|
597
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
598
|
-
execute_or_queue_command(command, &block)
|
599
|
-
end
|
600
597
|
|
601
598
|
protected
|
602
599
|
|