google-api-client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- 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/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- 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 +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- 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 +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.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 +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- 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 +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- 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 +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- 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 +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
@@ -22,13 +22,19 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudresourcemanagerV1beta1
|
24
24
|
|
25
|
+
class TestIamPermissionsResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GetIamPolicyRequest
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
28
34
|
include Google::Apis::Core::JsonObjectSupport
|
29
35
|
end
|
30
36
|
|
31
|
-
class
|
37
|
+
class OrganizationOwner
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -40,13 +46,13 @@ module Google
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
43
|
-
class
|
49
|
+
class ListProjectsResponse
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
46
52
|
include Google::Apis::Core::JsonObjectSupport
|
47
53
|
end
|
48
54
|
|
49
|
-
class
|
55
|
+
class AuditLogConfig
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -70,19 +76,19 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
73
|
-
class
|
79
|
+
class Policy
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
77
83
|
end
|
78
84
|
|
79
|
-
class
|
85
|
+
class FolderOperation
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
83
89
|
end
|
84
90
|
|
85
|
-
class
|
91
|
+
class FolderOperationError
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
88
94
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -94,13 +100,13 @@ module Google
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
95
101
|
end
|
96
102
|
|
97
|
-
class
|
103
|
+
class AuditConfig
|
98
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
105
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
103
|
-
class
|
109
|
+
class Ancestor
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
106
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -112,6 +118,12 @@ module Google
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
113
119
|
end
|
114
120
|
|
121
|
+
class ListOrganizationsResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class Binding
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -124,13 +136,13 @@ module Google
|
|
124
136
|
include Google::Apis::Core::JsonObjectSupport
|
125
137
|
end
|
126
138
|
|
127
|
-
class
|
139
|
+
class Organization
|
128
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
141
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
131
143
|
end
|
132
144
|
|
133
|
-
class
|
145
|
+
class UndeleteProjectRequest
|
134
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
147
|
|
136
148
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -142,31 +154,31 @@ module Google
|
|
142
154
|
include Google::Apis::Core::JsonObjectSupport
|
143
155
|
end
|
144
156
|
|
145
|
-
class
|
157
|
+
class TestIamPermissionsResponse
|
146
158
|
# @private
|
147
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
collection :permissions, as: 'permissions'
|
148
161
|
end
|
149
162
|
end
|
150
163
|
|
151
|
-
class
|
164
|
+
class GetIamPolicyRequest
|
152
165
|
# @private
|
153
166
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
collection :permissions, as: 'permissions'
|
155
167
|
end
|
156
168
|
end
|
157
169
|
|
158
|
-
class
|
170
|
+
class OrganizationOwner
|
159
171
|
# @private
|
160
172
|
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
-
|
162
|
-
|
173
|
+
property :directory_customer_id, as: 'directoryCustomerId'
|
163
174
|
end
|
164
175
|
end
|
165
176
|
|
166
|
-
class
|
177
|
+
class GetAncestryResponse
|
167
178
|
# @private
|
168
179
|
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
-
|
180
|
+
collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
|
181
|
+
|
170
182
|
end
|
171
183
|
end
|
172
184
|
|
@@ -179,6 +191,14 @@ module Google
|
|
179
191
|
end
|
180
192
|
end
|
181
193
|
|
194
|
+
class AuditLogConfig
|
195
|
+
# @private
|
196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
+
collection :exempted_members, as: 'exemptedMembers'
|
198
|
+
property :log_type, as: 'logType'
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
182
202
|
class GetAncestryRequest
|
183
203
|
# @private
|
184
204
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -193,8 +213,8 @@ module Google
|
|
193
213
|
property :project_number, as: 'projectNumber'
|
194
214
|
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
195
215
|
|
196
|
-
hash :labels, as: 'labels'
|
197
216
|
property :create_time, as: 'createTime'
|
217
|
+
hash :labels, as: 'labels'
|
198
218
|
property :name, as: 'name'
|
199
219
|
end
|
200
220
|
end
|
@@ -206,30 +226,32 @@ module Google
|
|
206
226
|
end
|
207
227
|
end
|
208
228
|
|
209
|
-
class FolderOperationError
|
210
|
-
# @private
|
211
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
-
property :error_message_id, as: 'errorMessageId'
|
213
|
-
end
|
214
|
-
end
|
215
|
-
|
216
229
|
class Policy
|
217
230
|
# @private
|
218
231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
|
220
|
-
|
232
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
|
233
|
+
|
221
234
|
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
|
222
235
|
|
236
|
+
property :etag, :base64 => true, as: 'etag'
|
237
|
+
property :version, as: 'version'
|
223
238
|
end
|
224
239
|
end
|
225
240
|
|
226
241
|
class FolderOperation
|
227
242
|
# @private
|
228
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
229
|
-
property :operation_type, as: 'operationType'
|
230
244
|
property :display_name, as: 'displayName'
|
231
245
|
property :source_parent, as: 'sourceParent'
|
232
246
|
property :destination_parent, as: 'destinationParent'
|
247
|
+
property :operation_type, as: 'operationType'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class FolderOperationError
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
property :error_message_id, as: 'errorMessageId'
|
233
255
|
end
|
234
256
|
end
|
235
257
|
|
@@ -241,19 +263,19 @@ module Google
|
|
241
263
|
end
|
242
264
|
end
|
243
265
|
|
244
|
-
class
|
266
|
+
class AuditConfig
|
245
267
|
# @private
|
246
268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
247
|
-
property :
|
269
|
+
property :service, as: 'service'
|
270
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
|
248
271
|
|
249
272
|
end
|
250
273
|
end
|
251
274
|
|
252
|
-
class
|
275
|
+
class Ancestor
|
253
276
|
# @private
|
254
277
|
class Representation < Google::Apis::Core::JsonRepresentation
|
255
|
-
property :
|
256
|
-
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
278
|
+
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
257
279
|
|
258
280
|
end
|
259
281
|
end
|
@@ -263,24 +285,28 @@ module Google
|
|
263
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
264
286
|
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
265
287
|
|
288
|
+
property :update_mask, as: 'updateMask'
|
266
289
|
end
|
267
290
|
end
|
268
291
|
|
269
|
-
class
|
292
|
+
class ListOrganizationsResponse
|
270
293
|
# @private
|
271
294
|
class Representation < Google::Apis::Core::JsonRepresentation
|
272
|
-
|
273
|
-
|
295
|
+
property :next_page_token, as: 'nextPageToken'
|
296
|
+
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
297
|
+
|
274
298
|
end
|
275
299
|
end
|
276
300
|
|
277
|
-
class
|
301
|
+
class Binding
|
278
302
|
# @private
|
279
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
collection :members, as: 'members'
|
305
|
+
property :role, as: 'role'
|
280
306
|
end
|
281
307
|
end
|
282
308
|
|
283
|
-
class
|
309
|
+
class Empty
|
284
310
|
# @private
|
285
311
|
class Representation < Google::Apis::Core::JsonRepresentation
|
286
312
|
end
|
@@ -299,12 +325,18 @@ module Google
|
|
299
325
|
end
|
300
326
|
end
|
301
327
|
|
328
|
+
class UndeleteProjectRequest
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
302
334
|
class ProjectCreationStatus
|
303
335
|
# @private
|
304
336
|
class Representation < Google::Apis::Core::JsonRepresentation
|
305
|
-
property :ready, as: 'ready'
|
306
337
|
property :create_time, as: 'createTime'
|
307
338
|
property :gettable, as: 'gettable'
|
339
|
+
property :ready, as: 'ready'
|
308
340
|
end
|
309
341
|
end
|
310
342
|
end
|
@@ -47,64 +47,12 @@ module Google
|
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# @param [String]
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# This field is optional.
|
57
|
-
# @param [Fixnum] page_size
|
58
|
-
# The maximum number of Organizations to return in the response.
|
59
|
-
# This field is optional.
|
60
|
-
# @param [String] filter
|
61
|
-
# An optional query string used to filter the Organizations to return in
|
62
|
-
# the response. Filter rules are case-insensitive.
|
63
|
-
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
64
|
-
# `domain`, where the domain is a Google for Work domain, for example:
|
65
|
-
# |Filter|Description|
|
66
|
-
# |------|-----------|
|
67
|
-
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
68
|
-
# directory_customer_id` equal to `123456789`.|
|
69
|
-
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
70
|
-
# This field is optional.
|
71
|
-
# @param [String] quota_user
|
72
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
73
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
74
|
-
# @param [String] fields
|
75
|
-
# Selector specifying which fields to include in a partial response.
|
76
|
-
# @param [Google::Apis::RequestOptions] options
|
77
|
-
# Request-specific options
|
78
|
-
#
|
79
|
-
# @yield [result, err] Result & error if block supplied
|
80
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
81
|
-
# @yieldparam err [StandardError] error object if request failed
|
82
|
-
#
|
83
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
84
|
-
#
|
85
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
86
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
87
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
88
|
-
def list_organizations(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
89
|
-
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
90
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
91
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
92
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
93
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
94
|
-
command.query['filter'] = filter unless filter.nil?
|
95
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
|
-
command.query['fields'] = fields unless fields.nil?
|
97
|
-
execute_or_queue_command(command, &block)
|
98
|
-
end
|
99
|
-
|
100
|
-
# Sets the access control policy on an Organization resource. Replaces any
|
101
|
-
# existing policy. The `resource` field should be the organization's resource
|
102
|
-
# name, e.g. "organizations/123".
|
103
|
-
# @param [String] resource
|
104
|
-
# REQUIRED: The resource for which the policy is being specified.
|
105
|
-
# `resource` is usually specified as a path. For example, a Project
|
106
|
-
# resource is specified as `projects/`project``.
|
107
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
50
|
+
# Retrieves the Project identified by the specified
|
51
|
+
# `project_id` (for example, `my-project-123`).
|
52
|
+
# The caller must have read permissions for this Project.
|
53
|
+
# @param [String] project_id
|
54
|
+
# The Project ID (for example, `my-project-123`).
|
55
|
+
# Required.
|
108
56
|
# @param [String] quota_user
|
109
57
|
# Available to use for quota purposes for server-side applications. Can be any
|
110
58
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -114,34 +62,34 @@ module Google
|
|
114
62
|
# Request-specific options
|
115
63
|
#
|
116
64
|
# @yield [result, err] Result & error if block supplied
|
117
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
65
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
118
66
|
# @yieldparam err [StandardError] error object if request failed
|
119
67
|
#
|
120
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
68
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
121
69
|
#
|
122
70
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
123
71
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
124
72
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
125
|
-
def
|
126
|
-
command = make_simple_command(:
|
127
|
-
command.
|
128
|
-
command.
|
129
|
-
command.
|
130
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
131
|
-
command.params['resource'] = resource unless resource.nil?
|
73
|
+
def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
75
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
76
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
77
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
132
78
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
133
79
|
command.query['fields'] = fields unless fields.nil?
|
134
80
|
execute_or_queue_command(command, &block)
|
135
81
|
end
|
136
82
|
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
83
|
+
# Restores the Project identified by the specified
|
84
|
+
# `project_id` (for example, `my-project-123`).
|
85
|
+
# You can only use this method for a Project that has a lifecycle state of
|
86
|
+
# DELETE_REQUESTED.
|
87
|
+
# After deletion starts, the Project cannot be restored.
|
88
|
+
# The caller must have modify permissions for this Project.
|
89
|
+
# @param [String] project_id
|
90
|
+
# The project ID (for example, `foo-bar-123`).
|
91
|
+
# Required.
|
92
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
145
93
|
# @param [String] quota_user
|
146
94
|
# Available to use for quota purposes for server-side applications. Can be any
|
147
95
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -151,32 +99,33 @@ module Google
|
|
151
99
|
# Request-specific options
|
152
100
|
#
|
153
101
|
# @yield [result, err] Result & error if block supplied
|
154
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
102
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
155
103
|
# @yieldparam err [StandardError] error object if request failed
|
156
104
|
#
|
157
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
105
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
158
106
|
#
|
159
107
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
160
108
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
161
109
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
162
|
-
def
|
163
|
-
command = make_simple_command(:post, 'v1beta1/{
|
164
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
165
|
-
command.request_object =
|
166
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
167
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
168
|
-
command.params['
|
110
|
+
def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
112
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
113
|
+
command.request_object = undelete_project_request_object
|
114
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
115
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
116
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
169
117
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
170
118
|
command.query['fields'] = fields unless fields.nil?
|
171
119
|
execute_or_queue_command(command, &block)
|
172
120
|
end
|
173
121
|
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
# @param [String]
|
178
|
-
# The
|
179
|
-
#
|
122
|
+
# Updates the attributes of the Project identified by the specified
|
123
|
+
# `project_id` (for example, `my-project-123`).
|
124
|
+
# The caller must have modify permissions for this Project.
|
125
|
+
# @param [String] project_id
|
126
|
+
# The project ID (for example, `my-project-123`).
|
127
|
+
# Required.
|
128
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
180
129
|
# @param [String] quota_user
|
181
130
|
# Available to use for quota purposes for server-side applications. Can be any
|
182
131
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -186,31 +135,33 @@ module Google
|
|
186
135
|
# Request-specific options
|
187
136
|
#
|
188
137
|
# @yield [result, err] Result & error if block supplied
|
189
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
138
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
190
139
|
# @yieldparam err [StandardError] error object if request failed
|
191
140
|
#
|
192
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
141
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
193
142
|
#
|
194
143
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
195
144
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
196
145
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
197
|
-
def
|
198
|
-
command = make_simple_command(:
|
199
|
-
command.
|
200
|
-
command.
|
201
|
-
command.
|
202
|
-
command.
|
146
|
+
def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
148
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
149
|
+
command.request_object = project_object
|
150
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
151
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
152
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
203
153
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
154
|
command.query['fields'] = fields unless fields.nil?
|
205
155
|
execute_or_queue_command(command, &block)
|
206
156
|
end
|
207
157
|
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
158
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
159
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
160
|
+
# The caller must have read permissions for this Project.
|
161
|
+
# @param [String] project_id
|
162
|
+
# The Project ID (for example, `my-project-123`).
|
163
|
+
# Required.
|
164
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
214
165
|
# @param [String] quota_user
|
215
166
|
# Available to use for quota purposes for server-side applications. Can be any
|
216
167
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -220,33 +171,30 @@ module Google
|
|
220
171
|
# Request-specific options
|
221
172
|
#
|
222
173
|
# @yield [result, err] Result & error if block supplied
|
223
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
174
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
224
175
|
# @yieldparam err [StandardError] error object if request failed
|
225
176
|
#
|
226
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
177
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
227
178
|
#
|
228
179
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
229
180
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
230
181
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
231
|
-
def
|
232
|
-
command = make_simple_command(:
|
233
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
234
|
-
command.request_object =
|
235
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
236
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
237
|
-
command.params['
|
182
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
184
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
185
|
+
command.request_object = get_ancestry_request_object
|
186
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
187
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
188
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
238
189
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
239
190
|
command.query['fields'] = fields unless fields.nil?
|
240
191
|
execute_or_queue_command(command, &block)
|
241
192
|
end
|
242
193
|
|
243
|
-
# Returns permissions that a caller has on the specified
|
244
|
-
# The `resource` field should be the organization's resource name,
|
245
|
-
# e.g. "organizations/123".
|
194
|
+
# Returns permissions that a caller has on the specified Project.
|
246
195
|
# @param [String] resource
|
247
196
|
# REQUIRED: The resource for which the policy detail is being requested.
|
248
|
-
#
|
249
|
-
# resource is specified as `projects/`project``.
|
197
|
+
# See the operation documentation for the appropriate value for this field.
|
250
198
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
251
199
|
# @param [String] quota_user
|
252
200
|
# Available to use for quota purposes for server-side applications. Can be any
|
@@ -265,8 +213,8 @@ module Google
|
|
265
213
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
266
214
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
267
215
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
268
|
-
def
|
269
|
-
command = make_simple_command(:post, 'v1beta1/{
|
216
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
217
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
270
218
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
271
219
|
command.request_object = test_iam_permissions_request_object
|
272
220
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
@@ -329,6 +277,11 @@ module Google
|
|
329
277
|
# Lists Projects that are visible to the user and satisfy the
|
330
278
|
# specified filter. This method returns Projects in an unspecified order.
|
331
279
|
# New Projects do not necessarily appear at the end of the list.
|
280
|
+
# @param [Fixnum] page_size
|
281
|
+
# The maximum number of Projects to return in the response.
|
282
|
+
# The server can return fewer Projects than requested.
|
283
|
+
# If unspecified, server picks an appropriate default.
|
284
|
+
# Optional.
|
332
285
|
# @param [String] filter
|
333
286
|
# An expression for filtering the results of the request. Filter rules are
|
334
287
|
# case insensitive. The fields eligible for filtering are:
|
@@ -351,11 +304,6 @@ module Google
|
|
351
304
|
# A pagination token returned from a previous call to ListProjects
|
352
305
|
# that indicates from where listing should continue.
|
353
306
|
# Optional.
|
354
|
-
# @param [Fixnum] page_size
|
355
|
-
# The maximum number of Projects to return in the response.
|
356
|
-
# The server can return fewer Projects than requested.
|
357
|
-
# If unspecified, server picks an appropriate default.
|
358
|
-
# Optional.
|
359
307
|
# @param [String] quota_user
|
360
308
|
# Available to use for quota purposes for server-side applications. Can be any
|
361
309
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -373,13 +321,13 @@ module Google
|
|
373
321
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
374
322
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
375
323
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
376
|
-
def list_projects(
|
324
|
+
def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
377
325
|
command = make_simple_command(:get, 'v1beta1/projects', options)
|
378
326
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
379
327
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
328
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
380
329
|
command.query['filter'] = filter unless filter.nil?
|
381
330
|
command.query['pageToken'] = page_token unless page_token.nil?
|
382
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
383
331
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
384
332
|
command.query['fields'] = fields unless fields.nil?
|
385
333
|
execute_or_queue_command(command, &block)
|
@@ -413,8 +361,7 @@ module Google
|
|
413
361
|
# how the service account is being used before removing or updating its roles.
|
414
362
|
# @param [String] resource
|
415
363
|
# REQUIRED: The resource for which the policy is being specified.
|
416
|
-
#
|
417
|
-
# resource is specified as `projects/`project``.
|
364
|
+
# See the operation documentation for the appropriate value for this field.
|
418
365
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
419
366
|
# @param [String] quota_user
|
420
367
|
# Available to use for quota purposes for server-side applications. Can be any
|
@@ -487,8 +434,7 @@ module Google
|
|
487
434
|
# Permission is denied if the policy or the resource does not exist.
|
488
435
|
# @param [String] resource
|
489
436
|
# REQUIRED: The resource for which the policy is being requested.
|
490
|
-
#
|
491
|
-
# resource is specified as `projects/`project``.
|
437
|
+
# See the operation documentation for the appropriate value for this field.
|
492
438
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
493
439
|
# @param [String] quota_user
|
494
440
|
# Available to use for quota purposes for server-side applications. Can be any
|
@@ -519,12 +465,12 @@ module Google
|
|
519
465
|
execute_or_queue_command(command, &block)
|
520
466
|
end
|
521
467
|
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# @param [String]
|
526
|
-
# The
|
527
|
-
#
|
468
|
+
# Fetches an Organization resource identified by the specified resource name.
|
469
|
+
# @param [String] name
|
470
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
471
|
+
# @param [String] organization_id
|
472
|
+
# The id of the Organization resource to fetch.
|
473
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
528
474
|
# @param [String] quota_user
|
529
475
|
# Available to use for quota purposes for server-side applications. Can be any
|
530
476
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -534,34 +480,31 @@ module Google
|
|
534
480
|
# Request-specific options
|
535
481
|
#
|
536
482
|
# @yield [result, err] Result & error if block supplied
|
537
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
483
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
538
484
|
# @yieldparam err [StandardError] error object if request failed
|
539
485
|
#
|
540
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
486
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
541
487
|
#
|
542
488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
543
489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
544
490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
545
|
-
def
|
546
|
-
command = make_simple_command(:get, 'v1beta1/
|
547
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
548
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
549
|
-
command.params['
|
491
|
+
def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
492
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
493
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
494
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
495
|
+
command.params['name'] = name unless name.nil?
|
496
|
+
command.query['organizationId'] = organization_id unless organization_id.nil?
|
550
497
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
551
498
|
command.query['fields'] = fields unless fields.nil?
|
552
499
|
execute_or_queue_command(command, &block)
|
553
500
|
end
|
554
501
|
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
# @param [String] project_id
|
562
|
-
# The project ID (for example, `foo-bar-123`).
|
563
|
-
# Required.
|
564
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
502
|
+
# Updates an Organization resource identified by the specified resource name.
|
503
|
+
# @param [String] name
|
504
|
+
# Output Only. The resource name of the organization. This is the
|
505
|
+
# organization's relative path in the API. Its format is
|
506
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
507
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
|
565
508
|
# @param [String] quota_user
|
566
509
|
# Available to use for quota purposes for server-side applications. Can be any
|
567
510
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -571,33 +514,33 @@ module Google
|
|
571
514
|
# Request-specific options
|
572
515
|
#
|
573
516
|
# @yield [result, err] Result & error if block supplied
|
574
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
517
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
575
518
|
# @yieldparam err [StandardError] error object if request failed
|
576
519
|
#
|
577
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
520
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
578
521
|
#
|
579
522
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
580
523
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
581
524
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
582
|
-
def
|
583
|
-
command = make_simple_command(:
|
584
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
585
|
-
command.request_object =
|
586
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
587
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
588
|
-
command.params['
|
525
|
+
def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
526
|
+
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
527
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
528
|
+
command.request_object = organization_object
|
529
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
530
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
531
|
+
command.params['name'] = name unless name.nil?
|
589
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
590
533
|
command.query['fields'] = fields unless fields.nil?
|
591
534
|
execute_or_queue_command(command, &block)
|
592
535
|
end
|
593
536
|
|
594
|
-
#
|
595
|
-
# `
|
596
|
-
#
|
597
|
-
# @param [String]
|
598
|
-
# The
|
599
|
-
#
|
600
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::
|
537
|
+
# Returns permissions that a caller has on the specified Organization.
|
538
|
+
# The `resource` field should be the organization's resource name,
|
539
|
+
# e.g. "organizations/123".
|
540
|
+
# @param [String] resource
|
541
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
542
|
+
# See the operation documentation for the appropriate value for this field.
|
543
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
601
544
|
# @param [String] quota_user
|
602
545
|
# Available to use for quota purposes for server-side applications. Can be any
|
603
546
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -607,33 +550,47 @@ module Google
|
|
607
550
|
# Request-specific options
|
608
551
|
#
|
609
552
|
# @yield [result, err] Result & error if block supplied
|
610
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
553
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
611
554
|
# @yieldparam err [StandardError] error object if request failed
|
612
555
|
#
|
613
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
556
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
614
557
|
#
|
615
558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
616
559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
617
560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
618
|
-
def
|
619
|
-
command = make_simple_command(:
|
620
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
621
|
-
command.request_object =
|
622
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
623
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
624
|
-
command.params['
|
561
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
562
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
563
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
564
|
+
command.request_object = test_iam_permissions_request_object
|
565
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
566
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
567
|
+
command.params['resource'] = resource unless resource.nil?
|
625
568
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
626
569
|
command.query['fields'] = fields unless fields.nil?
|
627
570
|
execute_or_queue_command(command, &block)
|
628
571
|
end
|
629
572
|
|
630
|
-
#
|
631
|
-
#
|
632
|
-
#
|
633
|
-
# @param [
|
634
|
-
# The
|
635
|
-
#
|
636
|
-
# @param [
|
573
|
+
# Lists Organization resources that are visible to the user and satisfy
|
574
|
+
# the specified filter. This method returns Organizations in an unspecified
|
575
|
+
# order. New Organizations do not necessarily appear at the end of the list.
|
576
|
+
# @param [Fixnum] page_size
|
577
|
+
# The maximum number of Organizations to return in the response.
|
578
|
+
# This field is optional.
|
579
|
+
# @param [String] filter
|
580
|
+
# An optional query string used to filter the Organizations to return in
|
581
|
+
# the response. Filter rules are case-insensitive.
|
582
|
+
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
583
|
+
# `domain`, where the domain is a Google for Work domain, for example:
|
584
|
+
# |Filter|Description|
|
585
|
+
# |------|-----------|
|
586
|
+
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
587
|
+
# directory_customer_id` equal to `123456789`.|
|
588
|
+
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
589
|
+
# This field is optional.
|
590
|
+
# @param [String] page_token
|
591
|
+
# A pagination token returned from a previous call to `ListOrganizations`
|
592
|
+
# that indicates from where listing should continue.
|
593
|
+
# This field is optional.
|
637
594
|
# @param [String] quota_user
|
638
595
|
# Available to use for quota purposes for server-side applications. Can be any
|
639
596
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -643,32 +600,33 @@ module Google
|
|
643
600
|
# Request-specific options
|
644
601
|
#
|
645
602
|
# @yield [result, err] Result & error if block supplied
|
646
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
603
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
647
604
|
# @yieldparam err [StandardError] error object if request failed
|
648
605
|
#
|
649
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
606
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
650
607
|
#
|
651
608
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
652
609
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
653
610
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
654
|
-
def
|
655
|
-
command = make_simple_command(:
|
656
|
-
command.
|
657
|
-
command.
|
658
|
-
command.
|
659
|
-
command.
|
660
|
-
command.
|
611
|
+
def list_organizations(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
612
|
+
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
613
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
614
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
615
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
616
|
+
command.query['filter'] = filter unless filter.nil?
|
617
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
661
618
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
662
619
|
command.query['fields'] = fields unless fields.nil?
|
663
620
|
execute_or_queue_command(command, &block)
|
664
621
|
end
|
665
622
|
|
666
|
-
#
|
623
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
624
|
+
# existing policy. The `resource` field should be the organization's resource
|
625
|
+
# name, e.g. "organizations/123".
|
667
626
|
# @param [String] resource
|
668
|
-
# REQUIRED: The resource for which the policy
|
669
|
-
#
|
670
|
-
#
|
671
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
627
|
+
# REQUIRED: The resource for which the policy is being specified.
|
628
|
+
# See the operation documentation for the appropriate value for this field.
|
629
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
672
630
|
# @param [String] quota_user
|
673
631
|
# Available to use for quota purposes for server-side applications. Can be any
|
674
632
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -678,20 +636,56 @@ module Google
|
|
678
636
|
# Request-specific options
|
679
637
|
#
|
680
638
|
# @yield [result, err] Result & error if block supplied
|
681
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
639
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
682
640
|
# @yieldparam err [StandardError] error object if request failed
|
683
641
|
#
|
684
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
642
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
685
643
|
#
|
686
644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
687
645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
688
646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
689
|
-
def
|
690
|
-
command = make_simple_command(:post, 'v1beta1/
|
691
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
692
|
-
command.request_object =
|
693
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
694
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
647
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
648
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
649
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
650
|
+
command.request_object = set_iam_policy_request_object
|
651
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
652
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
653
|
+
command.params['resource'] = resource unless resource.nil?
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
655
|
+
command.query['fields'] = fields unless fields.nil?
|
656
|
+
execute_or_queue_command(command, &block)
|
657
|
+
end
|
658
|
+
|
659
|
+
# Gets the access control policy for an Organization resource. May be empty
|
660
|
+
# if no such policy or resource exists. The `resource` field should be the
|
661
|
+
# organization's resource name, e.g. "organizations/123".
|
662
|
+
# @param [String] resource
|
663
|
+
# REQUIRED: The resource for which the policy is being requested.
|
664
|
+
# See the operation documentation for the appropriate value for this field.
|
665
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
666
|
+
# @param [String] quota_user
|
667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
669
|
+
# @param [String] fields
|
670
|
+
# Selector specifying which fields to include in a partial response.
|
671
|
+
# @param [Google::Apis::RequestOptions] options
|
672
|
+
# Request-specific options
|
673
|
+
#
|
674
|
+
# @yield [result, err] Result & error if block supplied
|
675
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
676
|
+
# @yieldparam err [StandardError] error object if request failed
|
677
|
+
#
|
678
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
679
|
+
#
|
680
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
681
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
682
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
683
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
684
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
685
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
686
|
+
command.request_object = get_iam_policy_request_object
|
687
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
688
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
695
689
|
command.params['resource'] = resource unless resource.nil?
|
696
690
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
697
691
|
command.query['fields'] = fields unless fields.nil?
|