google-api-client 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- 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 +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- 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 +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- 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 +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- 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 +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
@@ -58,13 +58,13 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class Organization
|
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 UndeleteProjectRequest
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -76,13 +76,13 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class TestIamPermissionsResponse
|
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 GetIamPolicyRequest
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -100,13 +100,13 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class ListProjectsResponse
|
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 AuditLogConfig
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class
|
133
|
+
class Policy
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
135
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
-
class
|
145
|
+
class FolderOperationError
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
147
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -157,9 +157,9 @@ module Google
|
|
157
157
|
class AuditConfig
|
158
158
|
# @private
|
159
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :service, as: 'service'
|
160
161
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
|
161
162
|
|
162
|
-
property :service, as: 'service'
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -203,22 +203,22 @@ module Google
|
|
203
203
|
end
|
204
204
|
end
|
205
205
|
|
206
|
-
class UndeleteProjectRequest
|
207
|
-
# @private
|
208
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
-
end
|
210
|
-
end
|
211
|
-
|
212
206
|
class Organization
|
213
207
|
# @private
|
214
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
+
property :organization_id, as: 'organizationId'
|
215
210
|
property :lifecycle_state, as: 'lifecycleState'
|
216
211
|
property :display_name, as: 'displayName'
|
217
212
|
property :creation_time, as: 'creationTime'
|
218
213
|
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
|
219
214
|
|
220
215
|
property :name, as: 'name'
|
221
|
-
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
class UndeleteProjectRequest
|
220
|
+
# @private
|
221
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
222
222
|
end
|
223
223
|
end
|
224
224
|
|
@@ -231,16 +231,16 @@ module Google
|
|
231
231
|
end
|
232
232
|
end
|
233
233
|
|
234
|
-
class
|
234
|
+
class TestIamPermissionsResponse
|
235
235
|
# @private
|
236
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
collection :permissions, as: 'permissions'
|
237
238
|
end
|
238
239
|
end
|
239
240
|
|
240
|
-
class
|
241
|
+
class GetIamPolicyRequest
|
241
242
|
# @private
|
242
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
-
collection :permissions, as: 'permissions'
|
244
244
|
end
|
245
245
|
end
|
246
246
|
|
@@ -259,20 +259,20 @@ module Google
|
|
259
259
|
end
|
260
260
|
end
|
261
261
|
|
262
|
-
class
|
262
|
+
class ListProjectsResponse
|
263
263
|
# @private
|
264
264
|
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
-
|
266
|
-
|
265
|
+
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
266
|
+
|
267
|
+
property :next_page_token, as: 'nextPageToken'
|
267
268
|
end
|
268
269
|
end
|
269
270
|
|
270
|
-
class
|
271
|
+
class AuditLogConfig
|
271
272
|
# @private
|
272
273
|
class Representation < Google::Apis::Core::JsonRepresentation
|
273
|
-
collection :
|
274
|
-
|
275
|
-
property :next_page_token, as: 'nextPageToken'
|
274
|
+
collection :exempted_members, as: 'exemptedMembers'
|
275
|
+
property :log_type, as: 'logType'
|
276
276
|
end
|
277
277
|
end
|
278
278
|
|
@@ -285,14 +285,14 @@ module Google
|
|
285
285
|
class Project
|
286
286
|
# @private
|
287
287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
-
property :
|
288
|
+
property :project_number, :numeric_string => true, as: 'projectNumber'
|
289
|
+
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
290
|
+
|
289
291
|
hash :labels, as: 'labels'
|
292
|
+
property :create_time, as: 'createTime'
|
290
293
|
property :name, as: 'name'
|
291
294
|
property :project_id, as: 'projectId'
|
292
295
|
property :lifecycle_state, as: 'lifecycleState'
|
293
|
-
property :project_number, :numeric_string => true, as: 'projectNumber'
|
294
|
-
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
|
295
|
-
|
296
296
|
end
|
297
297
|
end
|
298
298
|
|
@@ -303,10 +303,15 @@ module Google
|
|
303
303
|
end
|
304
304
|
end
|
305
305
|
|
306
|
-
class
|
306
|
+
class Policy
|
307
307
|
# @private
|
308
308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
-
property :
|
309
|
+
property :version, as: 'version'
|
310
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
|
311
|
+
|
312
|
+
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
|
313
|
+
|
314
|
+
property :etag, :base64 => true, as: 'etag'
|
310
315
|
end
|
311
316
|
end
|
312
317
|
|
@@ -320,15 +325,10 @@ module Google
|
|
320
325
|
end
|
321
326
|
end
|
322
327
|
|
323
|
-
class
|
328
|
+
class FolderOperationError
|
324
329
|
# @private
|
325
330
|
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
-
|
327
|
-
|
328
|
-
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
|
329
|
-
|
330
|
-
property :etag, :base64 => true, as: 'etag'
|
331
|
-
property :version, as: 'version'
|
331
|
+
property :error_message_id, as: 'errorMessageId'
|
332
332
|
end
|
333
333
|
end
|
334
334
|
|
@@ -48,12 +48,27 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
51
|
+
# Lists Organization resources that are visible to the user and satisfy
|
52
|
+
# the specified filter. This method returns Organizations in an unspecified
|
53
|
+
# order. New Organizations do not necessarily appear at the end of the list.
|
54
|
+
# @param [String] filter
|
55
|
+
# An optional query string used to filter the Organizations to return in
|
56
|
+
# the response. Filter rules are case-insensitive.
|
57
|
+
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
58
|
+
# `domain`, where the domain is a Google for Work domain, for example:
|
59
|
+
# |Filter|Description|
|
60
|
+
# |------|-----------|
|
61
|
+
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
62
|
+
# directory_customer_id` equal to `123456789`.|
|
63
|
+
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
64
|
+
# This field is optional.
|
65
|
+
# @param [String] page_token
|
66
|
+
# A pagination token returned from a previous call to `ListOrganizations`
|
67
|
+
# that indicates from where listing should continue.
|
68
|
+
# This field is optional.
|
69
|
+
# @param [Fixnum] page_size
|
70
|
+
# The maximum number of Organizations to return in the response.
|
71
|
+
# This field is optional.
|
57
72
|
# @param [String] fields
|
58
73
|
# Selector specifying which fields to include in a partial response.
|
59
74
|
# @param [String] quota_user
|
@@ -63,36 +78,33 @@ module Google
|
|
63
78
|
# Request-specific options
|
64
79
|
#
|
65
80
|
# @yield [result, err] Result & error if block supplied
|
66
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
81
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
67
82
|
# @yieldparam err [StandardError] error object if request failed
|
68
83
|
#
|
69
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
84
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
70
85
|
#
|
71
86
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
87
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
88
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def
|
75
|
-
command = make_simple_command(:
|
76
|
-
command.
|
77
|
-
command.
|
78
|
-
command.
|
79
|
-
command.
|
80
|
-
command.
|
89
|
+
def list_organizations(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
90
|
+
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
91
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
92
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
93
|
+
command.query['filter'] = filter unless filter.nil?
|
94
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
95
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
81
96
|
command.query['fields'] = fields unless fields.nil?
|
82
97
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
98
|
execute_or_queue_command(command, &block)
|
84
99
|
end
|
85
100
|
|
86
|
-
#
|
87
|
-
# `
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# @param [
|
93
|
-
# The project ID (for example, `foo-bar-123`).
|
94
|
-
# Required.
|
95
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
101
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
102
|
+
# existing policy. The `resource` field should be the organization's resource
|
103
|
+
# name, e.g. "organizations/123".
|
104
|
+
# @param [String] resource
|
105
|
+
# REQUIRED: The resource for which the policy is being specified.
|
106
|
+
# See the operation documentation for the appropriate value for this field.
|
107
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
96
108
|
# @param [String] fields
|
97
109
|
# Selector specifying which fields to include in a partial response.
|
98
110
|
# @param [String] quota_user
|
@@ -102,32 +114,33 @@ module Google
|
|
102
114
|
# Request-specific options
|
103
115
|
#
|
104
116
|
# @yield [result, err] Result & error if block supplied
|
105
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
117
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
106
118
|
# @yieldparam err [StandardError] error object if request failed
|
107
119
|
#
|
108
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
120
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
109
121
|
#
|
110
122
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
123
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
124
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
-
def
|
114
|
-
command = make_simple_command(:post, 'v1beta1/
|
115
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
116
|
-
command.request_object =
|
117
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
118
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
119
|
-
command.params['
|
125
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
126
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
127
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
128
|
+
command.request_object = set_iam_policy_request_object
|
129
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
130
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
131
|
+
command.params['resource'] = resource unless resource.nil?
|
120
132
|
command.query['fields'] = fields unless fields.nil?
|
121
133
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
134
|
execute_or_queue_command(command, &block)
|
123
135
|
end
|
124
136
|
|
125
|
-
#
|
126
|
-
# `
|
127
|
-
#
|
128
|
-
# @param [String]
|
129
|
-
# The
|
130
|
-
#
|
137
|
+
# Gets the access control policy for an Organization resource. May be empty
|
138
|
+
# if no such policy or resource exists. The `resource` field should be the
|
139
|
+
# organization's resource name, e.g. "organizations/123".
|
140
|
+
# @param [String] resource
|
141
|
+
# REQUIRED: The resource for which the policy is being requested.
|
142
|
+
# See the operation documentation for the appropriate value for this field.
|
143
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
131
144
|
# @param [String] fields
|
132
145
|
# Selector specifying which fields to include in a partial response.
|
133
146
|
# @param [String] quota_user
|
@@ -137,31 +150,32 @@ module Google
|
|
137
150
|
# Request-specific options
|
138
151
|
#
|
139
152
|
# @yield [result, err] Result & error if block supplied
|
140
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
153
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
141
154
|
# @yieldparam err [StandardError] error object if request failed
|
142
155
|
#
|
143
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
156
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
144
157
|
#
|
145
158
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
-
def
|
149
|
-
command = make_simple_command(:
|
150
|
-
command.
|
151
|
-
command.
|
152
|
-
command.
|
161
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
162
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
163
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
164
|
+
command.request_object = get_iam_policy_request_object
|
165
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
166
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
167
|
+
command.params['resource'] = resource unless resource.nil?
|
153
168
|
command.query['fields'] = fields unless fields.nil?
|
154
169
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
170
|
execute_or_queue_command(command, &block)
|
156
171
|
end
|
157
172
|
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
# @param [String]
|
162
|
-
# The
|
163
|
-
#
|
164
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
173
|
+
# Fetches an Organization resource identified by the specified resource name.
|
174
|
+
# @param [String] name
|
175
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
176
|
+
# @param [String] organization_id
|
177
|
+
# The id of the Organization resource to fetch.
|
178
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
165
179
|
# @param [String] fields
|
166
180
|
# Selector specifying which fields to include in a partial response.
|
167
181
|
# @param [String] quota_user
|
@@ -171,33 +185,31 @@ module Google
|
|
171
185
|
# Request-specific options
|
172
186
|
#
|
173
187
|
# @yield [result, err] Result & error if block supplied
|
174
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
188
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
175
189
|
# @yieldparam err [StandardError] error object if request failed
|
176
190
|
#
|
177
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
191
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
178
192
|
#
|
179
193
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
194
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
195
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
-
def
|
183
|
-
command = make_simple_command(:
|
184
|
-
command.
|
185
|
-
command.
|
186
|
-
command.
|
187
|
-
command.
|
188
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
196
|
+
def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
197
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
198
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
199
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
200
|
+
command.params['name'] = name unless name.nil?
|
201
|
+
command.query['organizationId'] = organization_id unless organization_id.nil?
|
189
202
|
command.query['fields'] = fields unless fields.nil?
|
190
203
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
204
|
execute_or_queue_command(command, &block)
|
192
205
|
end
|
193
206
|
|
194
|
-
# Updates
|
195
|
-
#
|
196
|
-
# The
|
197
|
-
#
|
198
|
-
#
|
199
|
-
#
|
200
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
207
|
+
# Updates an Organization resource identified by the specified resource name.
|
208
|
+
# @param [String] name
|
209
|
+
# Output Only. The resource name of the organization. This is the
|
210
|
+
# organization's relative path in the API. Its format is
|
211
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
212
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
|
201
213
|
# @param [String] fields
|
202
214
|
# Selector specifying which fields to include in a partial response.
|
203
215
|
# @param [String] quota_user
|
@@ -207,27 +219,29 @@ module Google
|
|
207
219
|
# Request-specific options
|
208
220
|
#
|
209
221
|
# @yield [result, err] Result & error if block supplied
|
210
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
222
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
211
223
|
# @yieldparam err [StandardError] error object if request failed
|
212
224
|
#
|
213
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
225
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
214
226
|
#
|
215
227
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
-
def
|
219
|
-
command = make_simple_command(:put, 'v1beta1/
|
220
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
221
|
-
command.request_object =
|
222
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
223
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
224
|
-
command.params['
|
230
|
+
def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
231
|
+
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
232
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
233
|
+
command.request_object = organization_object
|
234
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
235
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
236
|
+
command.params['name'] = name unless name.nil?
|
225
237
|
command.query['fields'] = fields unless fields.nil?
|
226
238
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
227
239
|
execute_or_queue_command(command, &block)
|
228
240
|
end
|
229
241
|
|
230
|
-
# Returns permissions that a caller has on the specified
|
242
|
+
# Returns permissions that a caller has on the specified Organization.
|
243
|
+
# The `resource` field should be the organization's resource name,
|
244
|
+
# e.g. "organizations/123".
|
231
245
|
# @param [String] resource
|
232
246
|
# REQUIRED: The resource for which the policy detail is being requested.
|
233
247
|
# See the operation documentation for the appropriate value for this field.
|
@@ -249,8 +263,8 @@ module Google
|
|
249
263
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
250
264
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
251
265
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
252
|
-
def
|
253
|
-
command = make_simple_command(:post, 'v1beta1/
|
266
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
267
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
254
268
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
255
269
|
command.request_object = test_iam_permissions_request_object
|
256
270
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
@@ -261,28 +275,37 @@ module Google
|
|
261
275
|
execute_or_queue_command(command, &block)
|
262
276
|
end
|
263
277
|
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
# +
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
# the
|
281
|
-
#
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
278
|
+
# Sets the IAM access control policy for the specified Project. Replaces
|
279
|
+
# any existing policy.
|
280
|
+
# The following constraints apply when using `setIamPolicy()`:
|
281
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
282
|
+
# `members` in a `Binding` of a `Policy`.
|
283
|
+
# + The owner role can be granted only to `user` and `serviceAccount`.
|
284
|
+
# + Service accounts can be made owners of a project directly
|
285
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
286
|
+
# invited via Cloud Platform console and must accept the invitation.
|
287
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
288
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
289
|
+
# explicitly accept the invitation.
|
290
|
+
# + Invitations to grant the owner role cannot be sent using
|
291
|
+
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
292
|
+
# + Membership changes that leave the project without any owners that have
|
293
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
294
|
+
# + There must be at least one owner who has accepted the Terms of
|
295
|
+
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
296
|
+
# remove the last ToS-accepted owner from the policy will fail. This
|
297
|
+
# restriction also applies to legacy projects that no longer have owners
|
298
|
+
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
299
|
+
# the lack of a ToS-accepting owner is rectified.
|
300
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
301
|
+
# Note: Removing service accounts from policies or changing their roles
|
302
|
+
# can render services completely inoperable. It is important to understand
|
303
|
+
# how the service account is being used before removing or updating its
|
304
|
+
# roles.
|
305
|
+
# @param [String] resource
|
306
|
+
# REQUIRED: The resource for which the policy is being specified.
|
307
|
+
# See the operation documentation for the appropriate value for this field.
|
308
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
286
309
|
# @param [String] fields
|
287
310
|
# Selector specifying which fields to include in a partial response.
|
288
311
|
# @param [String] quota_user
|
@@ -292,78 +315,21 @@ module Google
|
|
292
315
|
# Request-specific options
|
293
316
|
#
|
294
317
|
# @yield [result, err] Result & error if block supplied
|
295
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
318
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
296
319
|
# @yieldparam err [StandardError] error object if request failed
|
297
320
|
#
|
298
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
321
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
299
322
|
#
|
300
323
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
301
324
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
302
325
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
303
|
-
def
|
304
|
-
command = make_simple_command(:
|
305
|
-
command.
|
306
|
-
command.
|
307
|
-
command.
|
308
|
-
command.
|
309
|
-
command.
|
310
|
-
execute_or_queue_command(command, &block)
|
311
|
-
end
|
312
|
-
|
313
|
-
# Lists Projects that are visible to the user and satisfy the
|
314
|
-
# specified filter. This method returns Projects in an unspecified order.
|
315
|
-
# New Projects do not necessarily appear at the end of the list.
|
316
|
-
# @param [String] page_token
|
317
|
-
# A pagination token returned from a previous call to ListProjects
|
318
|
-
# that indicates from where listing should continue.
|
319
|
-
# Optional.
|
320
|
-
# @param [Fixnum] page_size
|
321
|
-
# The maximum number of Projects to return in the response.
|
322
|
-
# The server can return fewer Projects than requested.
|
323
|
-
# If unspecified, server picks an appropriate default.
|
324
|
-
# Optional.
|
325
|
-
# @param [String] filter
|
326
|
-
# An expression for filtering the results of the request. Filter rules are
|
327
|
-
# case insensitive. The fields eligible for filtering are:
|
328
|
-
# + `name`
|
329
|
-
# + `id`
|
330
|
-
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
331
|
-
# Some examples of using labels as filters:
|
332
|
-
# |Filter|Description|
|
333
|
-
# |------|-----------|
|
334
|
-
# |name:*|The project has a name.|
|
335
|
-
# |name:Howl|The project's name is `Howl` or `howl`.|
|
336
|
-
# |name:HOWL|Equivalent to above.|
|
337
|
-
# |NAME:howl|Equivalent to above.|
|
338
|
-
# |labels.color:*|The project has the label `color`.|
|
339
|
-
# |labels.color:red|The project's label `color` has the value `red`.|
|
340
|
-
# |labels.color:red labels.size:big|The project's label `color` has the
|
341
|
-
# value `red` and its label `size` has the value `big`.
|
342
|
-
# Optional.
|
343
|
-
# @param [String] fields
|
344
|
-
# Selector specifying which fields to include in a partial response.
|
345
|
-
# @param [String] quota_user
|
346
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
-
# @param [Google::Apis::RequestOptions] options
|
349
|
-
# Request-specific options
|
350
|
-
#
|
351
|
-
# @yield [result, err] Result & error if block supplied
|
352
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
353
|
-
# @yieldparam err [StandardError] error object if request failed
|
354
|
-
#
|
355
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
356
|
-
#
|
357
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
-
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
-
command = make_simple_command(:get, 'v1beta1/projects', options)
|
362
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
363
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
364
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
365
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
366
|
-
command.query['filter'] = filter unless filter.nil?
|
326
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
328
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
329
|
+
command.request_object = set_iam_policy_request_object
|
330
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
331
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
332
|
+
command.params['resource'] = resource unless resource.nil?
|
367
333
|
command.query['fields'] = fields unless fields.nil?
|
368
334
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
369
335
|
execute_or_queue_command(command, &block)
|
@@ -407,37 +373,12 @@ module Google
|
|
407
373
|
execute_or_queue_command(command, &block)
|
408
374
|
end
|
409
375
|
|
410
|
-
#
|
411
|
-
#
|
412
|
-
# The following constraints apply when using `setIamPolicy()`:
|
413
|
-
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
414
|
-
# `members` in a `Binding` of a `Policy`.
|
415
|
-
# + The owner role can be granted only to `user` and `serviceAccount`.
|
416
|
-
# + Service accounts can be made owners of a project directly
|
417
|
-
# without any restrictions. However, to be added as an owner, a user must be
|
418
|
-
# invited via Cloud Platform console and must accept the invitation.
|
419
|
-
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
420
|
-
# must be granted the owner role using the Cloud Platform Console and must
|
421
|
-
# explicitly accept the invitation.
|
422
|
-
# + Invitations to grant the owner role cannot be sent using
|
423
|
-
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
424
|
-
# + Membership changes that leave the project without any owners that have
|
425
|
-
# accepted the Terms of Service (ToS) will be rejected.
|
426
|
-
# + There must be at least one owner who has accepted the Terms of
|
427
|
-
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
428
|
-
# remove the last ToS-accepted owner from the policy will fail. This
|
429
|
-
# restriction also applies to legacy projects that no longer have owners
|
430
|
-
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
431
|
-
# the lack of a ToS-accepting owner is rectified.
|
432
|
-
# + Calling this method requires enabling the App Engine Admin API.
|
433
|
-
# Note: Removing service accounts from policies or changing their roles
|
434
|
-
# can render services completely inoperable. It is important to understand
|
435
|
-
# how the service account is being used before removing or updating its
|
436
|
-
# roles.
|
376
|
+
# Returns the IAM access control policy for the specified Project.
|
377
|
+
# Permission is denied if the policy or the resource does not exist.
|
437
378
|
# @param [String] resource
|
438
|
-
# REQUIRED: The resource for which the policy is being
|
379
|
+
# REQUIRED: The resource for which the policy is being requested.
|
439
380
|
# See the operation documentation for the appropriate value for this field.
|
440
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::
|
381
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
441
382
|
# @param [String] fields
|
442
383
|
# Selector specifying which fields to include in a partial response.
|
443
384
|
# @param [String] quota_user
|
@@ -455,10 +396,10 @@ module Google
|
|
455
396
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
456
397
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
457
398
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
458
|
-
def
|
459
|
-
command = make_simple_command(:post, 'v1beta1/projects/{resource}:
|
460
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
461
|
-
command.request_object =
|
399
|
+
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
400
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
401
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
402
|
+
command.request_object = get_iam_policy_request_object
|
462
403
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
463
404
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
464
405
|
command.params['resource'] = resource unless resource.nil?
|
@@ -467,27 +408,12 @@ module Google
|
|
467
408
|
execute_or_queue_command(command, &block)
|
468
409
|
end
|
469
410
|
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
# @param [String]
|
474
|
-
#
|
475
|
-
#
|
476
|
-
# This field is optional.
|
477
|
-
# @param [Fixnum] page_size
|
478
|
-
# The maximum number of Organizations to return in the response.
|
479
|
-
# This field is optional.
|
480
|
-
# @param [String] filter
|
481
|
-
# An optional query string used to filter the Organizations to return in
|
482
|
-
# the response. Filter rules are case-insensitive.
|
483
|
-
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
484
|
-
# `domain`, where the domain is a Google for Work domain, for example:
|
485
|
-
# |Filter|Description|
|
486
|
-
# |------|-----------|
|
487
|
-
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
488
|
-
# directory_customer_id` equal to `123456789`.|
|
489
|
-
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
490
|
-
# This field is optional.
|
411
|
+
# Retrieves the Project identified by the specified
|
412
|
+
# `project_id` (for example, `my-project-123`).
|
413
|
+
# The caller must have read permissions for this Project.
|
414
|
+
# @param [String] project_id
|
415
|
+
# The Project ID (for example, `my-project-123`).
|
416
|
+
# Required.
|
491
417
|
# @param [String] fields
|
492
418
|
# Selector specifying which fields to include in a partial response.
|
493
419
|
# @param [String] quota_user
|
@@ -497,33 +423,34 @@ module Google
|
|
497
423
|
# Request-specific options
|
498
424
|
#
|
499
425
|
# @yield [result, err] Result & error if block supplied
|
500
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
426
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
501
427
|
# @yieldparam err [StandardError] error object if request failed
|
502
428
|
#
|
503
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
429
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
504
430
|
#
|
505
431
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
506
432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
507
433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
508
|
-
def
|
509
|
-
command = make_simple_command(:get, 'v1beta1/
|
510
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
511
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
512
|
-
command.
|
513
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
514
|
-
command.query['filter'] = filter unless filter.nil?
|
434
|
+
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
435
|
+
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
436
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
437
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
438
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
515
439
|
command.query['fields'] = fields unless fields.nil?
|
516
440
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
517
441
|
execute_or_queue_command(command, &block)
|
518
442
|
end
|
519
443
|
|
520
|
-
#
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
# @param [
|
444
|
+
# Restores the Project identified by the specified
|
445
|
+
# `project_id` (for example, `my-project-123`).
|
446
|
+
# You can only use this method for a Project that has a lifecycle state of
|
447
|
+
# DELETE_REQUESTED.
|
448
|
+
# After deletion starts, the Project cannot be restored.
|
449
|
+
# The caller must have modify permissions for this Project.
|
450
|
+
# @param [String] project_id
|
451
|
+
# The project ID (for example, `foo-bar-123`).
|
452
|
+
# Required.
|
453
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
527
454
|
# @param [String] fields
|
528
455
|
# Selector specifying which fields to include in a partial response.
|
529
456
|
# @param [String] quota_user
|
@@ -533,33 +460,33 @@ module Google
|
|
533
460
|
# Request-specific options
|
534
461
|
#
|
535
462
|
# @yield [result, err] Result & error if block supplied
|
536
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
463
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
537
464
|
# @yieldparam err [StandardError] error object if request failed
|
538
465
|
#
|
539
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
466
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
540
467
|
#
|
541
468
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
542
469
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
543
470
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
544
|
-
def
|
545
|
-
command = make_simple_command(:post, 'v1beta1/{
|
546
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
547
|
-
command.request_object =
|
548
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
549
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
550
|
-
command.params['
|
471
|
+
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
472
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
473
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
474
|
+
command.request_object = undelete_project_request_object
|
475
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
476
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
477
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
551
478
|
command.query['fields'] = fields unless fields.nil?
|
552
479
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
553
480
|
execute_or_queue_command(command, &block)
|
554
481
|
end
|
555
482
|
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
559
|
-
# @param [String]
|
560
|
-
#
|
561
|
-
#
|
562
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::
|
483
|
+
# Updates the attributes of the Project identified by the specified
|
484
|
+
# `project_id` (for example, `my-project-123`).
|
485
|
+
# The caller must have modify permissions for this Project.
|
486
|
+
# @param [String] project_id
|
487
|
+
# The project ID (for example, `my-project-123`).
|
488
|
+
# Required.
|
489
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
563
490
|
# @param [String] fields
|
564
491
|
# Selector specifying which fields to include in a partial response.
|
565
492
|
# @param [String] quota_user
|
@@ -569,32 +496,33 @@ module Google
|
|
569
496
|
# Request-specific options
|
570
497
|
#
|
571
498
|
# @yield [result, err] Result & error if block supplied
|
572
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
499
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
573
500
|
# @yieldparam err [StandardError] error object if request failed
|
574
501
|
#
|
575
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
502
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
576
503
|
#
|
577
504
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
578
505
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
579
506
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
580
|
-
def
|
581
|
-
command = make_simple_command(:
|
582
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
583
|
-
command.request_object =
|
584
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
585
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
586
|
-
command.params['
|
507
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
508
|
+
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
509
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
510
|
+
command.request_object = project_object
|
511
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
512
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
513
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
587
514
|
command.query['fields'] = fields unless fields.nil?
|
588
515
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
589
516
|
execute_or_queue_command(command, &block)
|
590
517
|
end
|
591
518
|
|
592
|
-
#
|
593
|
-
#
|
594
|
-
#
|
595
|
-
# @param [String]
|
596
|
-
# The
|
597
|
-
#
|
519
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
520
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
521
|
+
# The caller must have read permissions for this Project.
|
522
|
+
# @param [String] project_id
|
523
|
+
# The Project ID (for example, `my-project-123`).
|
524
|
+
# Required.
|
525
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
598
526
|
# @param [String] fields
|
599
527
|
# Selector specifying which fields to include in a partial response.
|
600
528
|
# @param [String] quota_user
|
@@ -604,31 +532,31 @@ module Google
|
|
604
532
|
# Request-specific options
|
605
533
|
#
|
606
534
|
# @yield [result, err] Result & error if block supplied
|
607
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
535
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
608
536
|
# @yieldparam err [StandardError] error object if request failed
|
609
537
|
#
|
610
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
538
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
611
539
|
#
|
612
540
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
613
541
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
614
542
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
615
|
-
def
|
616
|
-
command = make_simple_command(:
|
617
|
-
command.
|
618
|
-
command.
|
619
|
-
command.
|
620
|
-
command.
|
543
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
544
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
545
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
546
|
+
command.request_object = get_ancestry_request_object
|
547
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
548
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
549
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
621
550
|
command.query['fields'] = fields unless fields.nil?
|
622
551
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
552
|
execute_or_queue_command(command, &block)
|
624
553
|
end
|
625
554
|
|
626
|
-
#
|
627
|
-
# @param [String]
|
628
|
-
#
|
629
|
-
#
|
630
|
-
#
|
631
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
|
555
|
+
# Returns permissions that a caller has on the specified Project.
|
556
|
+
# @param [String] resource
|
557
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
558
|
+
# See the operation documentation for the appropriate value for this field.
|
559
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
632
560
|
# @param [String] fields
|
633
561
|
# Selector specifying which fields to include in a partial response.
|
634
562
|
# @param [String] quota_user
|
@@ -638,33 +566,48 @@ module Google
|
|
638
566
|
# Request-specific options
|
639
567
|
#
|
640
568
|
# @yield [result, err] Result & error if block supplied
|
641
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
569
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
642
570
|
# @yieldparam err [StandardError] error object if request failed
|
643
571
|
#
|
644
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
572
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
645
573
|
#
|
646
574
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
575
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
576
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
-
def
|
650
|
-
command = make_simple_command(:
|
651
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
652
|
-
command.request_object =
|
653
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
654
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
655
|
-
command.params['
|
577
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
578
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
579
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
580
|
+
command.request_object = test_iam_permissions_request_object
|
581
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
582
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
583
|
+
command.params['resource'] = resource unless resource.nil?
|
656
584
|
command.query['fields'] = fields unless fields.nil?
|
657
585
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
658
586
|
execute_or_queue_command(command, &block)
|
659
587
|
end
|
660
588
|
|
661
|
-
#
|
662
|
-
#
|
663
|
-
#
|
664
|
-
#
|
665
|
-
#
|
666
|
-
#
|
667
|
-
#
|
589
|
+
# Marks the Project identified by the specified
|
590
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
591
|
+
# This method will only affect the Project if the following criteria are met:
|
592
|
+
# + The Project does not have a billing account associated with it.
|
593
|
+
# + The Project has a lifecycle state of
|
594
|
+
# ACTIVE.
|
595
|
+
# This method changes the Project's lifecycle state from
|
596
|
+
# ACTIVE
|
597
|
+
# to DELETE_REQUESTED.
|
598
|
+
# The deletion starts at an unspecified time, at which point the project is
|
599
|
+
# no longer accessible.
|
600
|
+
# Until the deletion completes, you can check the lifecycle state
|
601
|
+
# checked by retrieving the Project with GetProject,
|
602
|
+
# and the Project remains visible to ListProjects.
|
603
|
+
# However, you cannot update the project.
|
604
|
+
# After the deletion completes, the Project is not retrievable by
|
605
|
+
# the GetProject and
|
606
|
+
# ListProjects methods.
|
607
|
+
# The caller must have modify permissions for this Project.
|
608
|
+
# @param [String] project_id
|
609
|
+
# The Project ID (for example, `foo-bar-123`).
|
610
|
+
# Required.
|
668
611
|
# @param [String] fields
|
669
612
|
# Selector specifying which fields to include in a partial response.
|
670
613
|
# @param [String] quota_user
|
@@ -674,21 +617,78 @@ module Google
|
|
674
617
|
# Request-specific options
|
675
618
|
#
|
676
619
|
# @yield [result, err] Result & error if block supplied
|
677
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
620
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
678
621
|
# @yieldparam err [StandardError] error object if request failed
|
679
622
|
#
|
680
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
623
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
681
624
|
#
|
682
625
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
683
626
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
684
627
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
685
|
-
def
|
686
|
-
command = make_simple_command(:
|
687
|
-
command.
|
688
|
-
command.
|
689
|
-
command.
|
690
|
-
command.
|
691
|
-
command.
|
628
|
+
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
630
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
631
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
632
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
633
|
+
command.query['fields'] = fields unless fields.nil?
|
634
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
635
|
+
execute_or_queue_command(command, &block)
|
636
|
+
end
|
637
|
+
|
638
|
+
# Lists Projects that are visible to the user and satisfy the
|
639
|
+
# specified filter. This method returns Projects in an unspecified order.
|
640
|
+
# New Projects do not necessarily appear at the end of the list.
|
641
|
+
# @param [String] page_token
|
642
|
+
# A pagination token returned from a previous call to ListProjects
|
643
|
+
# that indicates from where listing should continue.
|
644
|
+
# Optional.
|
645
|
+
# @param [Fixnum] page_size
|
646
|
+
# The maximum number of Projects to return in the response.
|
647
|
+
# The server can return fewer Projects than requested.
|
648
|
+
# If unspecified, server picks an appropriate default.
|
649
|
+
# Optional.
|
650
|
+
# @param [String] filter
|
651
|
+
# An expression for filtering the results of the request. Filter rules are
|
652
|
+
# case insensitive. The fields eligible for filtering are:
|
653
|
+
# + `name`
|
654
|
+
# + `id`
|
655
|
+
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
656
|
+
# Some examples of using labels as filters:
|
657
|
+
# |Filter|Description|
|
658
|
+
# |------|-----------|
|
659
|
+
# |name:how*|The project's name starts with "how".|
|
660
|
+
# |name:Howl|The project's name is `Howl` or `howl`.|
|
661
|
+
# |name:HOWL|Equivalent to above.|
|
662
|
+
# |NAME:howl|Equivalent to above.|
|
663
|
+
# |labels.color:*|The project has the label `color`.|
|
664
|
+
# |labels.color:red|The project's label `color` has the value `red`.|
|
665
|
+
# |labels.color:red labels.size:big|The project's label `color` has the
|
666
|
+
# value `red` and its label `size` has the value `big`.
|
667
|
+
# Optional.
|
668
|
+
# @param [String] fields
|
669
|
+
# Selector specifying which fields to include in a partial response.
|
670
|
+
# @param [String] quota_user
|
671
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
672
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
673
|
+
# @param [Google::Apis::RequestOptions] options
|
674
|
+
# Request-specific options
|
675
|
+
#
|
676
|
+
# @yield [result, err] Result & error if block supplied
|
677
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
678
|
+
# @yieldparam err [StandardError] error object if request failed
|
679
|
+
#
|
680
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
681
|
+
#
|
682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
685
|
+
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
686
|
+
command = make_simple_command(:get, 'v1beta1/projects', options)
|
687
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
688
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
689
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
690
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
691
|
+
command.query['filter'] = filter unless filter.nil?
|
692
692
|
command.query['fields'] = fields unless fields.nil?
|
693
693
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
694
694
|
execute_or_queue_command(command, &block)
|