google-api-client 0.9.8 → 0.9.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +63 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +217 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
- data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
- data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- 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 +277 -20
- data/generated/google/apis/bigquery_v2/representations.rb +86 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +79 -1
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +183 -37
- data/generated/google/apis/classroom_v1/representations.rb +74 -9
- data/generated/google/apis/classroom_v1/service.rb +403 -38
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
- data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- 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 +502 -111
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2299 -434
- data/generated/google/apis/compute_beta/representations.rb +752 -33
- data/generated/google/apis/compute_beta/service.rb +6067 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1681 -207
- data/generated/google/apis/compute_v1/representations.rb +552 -0
- data/generated/google/apis/compute_v1/service.rb +2797 -1171
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +757 -1
- data/generated/google/apis/content_v2/representations.rb +337 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- 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 +27 -3
- data/generated/google/apis/drive_v2/representations.rb +4 -0
- data/generated/google/apis/drive_v2/service.rb +16 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +50 -16
- data/generated/google/apis/drive_v3/representations.rb +4 -0
- data/generated/google/apis/drive_v3/service.rb +12 -2
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +143 -34
- data/generated/google/apis/genomics_v1/representations.rb +48 -11
- data/generated/google/apis/genomics_v1/service.rb +35 -37
- data/generated/google/apis/gmail_v1.rb +10 -1
- data/generated/google/apis/gmail_v1/classes.rb +542 -4
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +599 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +152 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
- data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
- data/generated/google/apis/logging_v2beta1/service.rb +290 -209
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +910 -89
- data/generated/google/apis/sheets_v4/representations.rb +194 -10
- data/generated/google/apis/sheets_v4/service.rb +216 -49
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +271 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +43 -18
- data/generated/google/apis/storage_v1/representations.rb +4 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +12 -11
- 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 +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +183 -21
- data/generated/google/apis/youtube_v3/representations.rb +85 -4
- data/generated/google/apis/youtube_v3/service.rb +41 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +55 -13
@@ -22,37 +22,43 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudresourcemanagerV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Operation
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class Status
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class SearchOrganizationsRequest
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class SearchOrganizationsResponse
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class Organization
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class OrganizationOwner
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class SetIamPolicyRequest
|
56
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
63
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -70,7 +76,7 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
73
|
-
class
|
79
|
+
class GetIamPolicyRequest
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
76
82
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -89,51 +95,116 @@ module Google
|
|
89
95
|
end
|
90
96
|
|
91
97
|
class Project
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ResourceId
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class ListProjectsResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Empty
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class UndeleteProjectRequest
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ProjectCreationStatus
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class FolderOperation
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class FolderOperationError
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class Operation
|
92
146
|
# @private
|
93
147
|
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
-
property :project_number, as: 'projectNumber'
|
95
|
-
property :project_id, as: 'projectId'
|
96
|
-
property :lifecycle_state, as: 'lifecycleState'
|
97
148
|
property :name, as: 'name'
|
98
|
-
|
99
|
-
|
100
|
-
property :
|
149
|
+
hash :metadata, as: 'metadata'
|
150
|
+
property :done, as: 'done'
|
151
|
+
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
101
152
|
|
153
|
+
hash :response, as: 'response'
|
102
154
|
end
|
103
155
|
end
|
104
156
|
|
105
|
-
class
|
157
|
+
class Status
|
106
158
|
# @private
|
107
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
108
|
-
property :
|
109
|
-
property :
|
160
|
+
property :code, as: 'code'
|
161
|
+
property :message, as: 'message'
|
162
|
+
collection :details, as: 'details'
|
110
163
|
end
|
111
164
|
end
|
112
165
|
|
113
|
-
class
|
166
|
+
class SearchOrganizationsRequest
|
114
167
|
# @private
|
115
168
|
class Representation < Google::Apis::Core::JsonRepresentation
|
116
|
-
|
169
|
+
property :page_size, as: 'pageSize'
|
170
|
+
property :page_token, as: 'pageToken'
|
171
|
+
property :filter, as: 'filter'
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class SearchOrganizationsResponse
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
117
179
|
|
118
180
|
property :next_page_token, as: 'nextPageToken'
|
119
181
|
end
|
120
182
|
end
|
121
183
|
|
122
|
-
class
|
184
|
+
class Organization
|
123
185
|
# @private
|
124
186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
property :name, as: 'name'
|
188
|
+
property :display_name, as: 'displayName'
|
189
|
+
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
190
|
+
|
191
|
+
property :creation_time, as: 'creationTime'
|
192
|
+
property :lifecycle_state, as: 'lifecycleState'
|
125
193
|
end
|
126
194
|
end
|
127
195
|
|
128
|
-
class
|
196
|
+
class OrganizationOwner
|
129
197
|
# @private
|
130
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :directory_customer_id, as: 'directoryCustomerId'
|
131
200
|
end
|
132
201
|
end
|
133
202
|
|
134
|
-
class
|
203
|
+
class SetIamPolicyRequest
|
135
204
|
# @private
|
136
205
|
class Representation < Google::Apis::Core::JsonRepresentation
|
206
|
+
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
207
|
+
|
137
208
|
end
|
138
209
|
end
|
139
210
|
|
@@ -155,11 +226,9 @@ module Google
|
|
155
226
|
end
|
156
227
|
end
|
157
228
|
|
158
|
-
class
|
229
|
+
class GetIamPolicyRequest
|
159
230
|
# @private
|
160
231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
-
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
162
|
-
|
163
232
|
end
|
164
233
|
end
|
165
234
|
|
@@ -176,6 +245,75 @@ module Google
|
|
176
245
|
collection :permissions, as: 'permissions'
|
177
246
|
end
|
178
247
|
end
|
248
|
+
|
249
|
+
class Project
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
property :project_number, as: 'projectNumber'
|
253
|
+
property :project_id, as: 'projectId'
|
254
|
+
property :lifecycle_state, as: 'lifecycleState'
|
255
|
+
property :name, as: 'name'
|
256
|
+
property :create_time, as: 'createTime'
|
257
|
+
hash :labels, as: 'labels'
|
258
|
+
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
259
|
+
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
class ResourceId
|
264
|
+
# @private
|
265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
266
|
+
property :type, as: 'type'
|
267
|
+
property :id, as: 'id'
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
class ListProjectsResponse
|
272
|
+
# @private
|
273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
+
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
|
275
|
+
|
276
|
+
property :next_page_token, as: 'nextPageToken'
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class Empty
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
class UndeleteProjectRequest
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class ProjectCreationStatus
|
293
|
+
# @private
|
294
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
+
property :create_time, as: 'createTime'
|
296
|
+
property :gettable, as: 'gettable'
|
297
|
+
property :ready, as: 'ready'
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
class FolderOperation
|
302
|
+
# @private
|
303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
property :display_name, as: 'displayName'
|
305
|
+
property :operation_type, as: 'operationType'
|
306
|
+
property :source_parent, as: 'sourceParent'
|
307
|
+
property :destination_parent, as: 'destinationParent'
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
class FolderOperationError
|
312
|
+
# @private
|
313
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
+
property :error_message_id, as: 'errorMessageId'
|
315
|
+
end
|
316
|
+
end
|
179
317
|
end
|
180
318
|
end
|
181
319
|
end
|
@@ -47,6 +47,210 @@ module Google
|
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
48
48
|
end
|
49
49
|
|
50
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
51
|
+
# to poll the operation result at intervals as recommended by the API service.
|
52
|
+
# @param [String] name
|
53
|
+
# The name of the operation resource.
|
54
|
+
# @param [String] fields
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
60
|
+
# Request-specific options
|
61
|
+
#
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
63
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
65
|
+
#
|
66
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
67
|
+
#
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
73
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
74
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
75
|
+
command.params['name'] = name unless name.nil?
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
77
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
78
|
+
execute_or_queue_command(command, &block)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Searches Organization resources that are visible to the user and satisfy the
|
82
|
+
# specified filter. This method returns Organizations in an unspecified order.
|
83
|
+
# New Organizations do not necessarily appear at the end of the results.
|
84
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
|
85
|
+
# @param [String] fields
|
86
|
+
# Selector specifying which fields to include in a partial response.
|
87
|
+
# @param [String] quota_user
|
88
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
89
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
90
|
+
# @param [Google::Apis::RequestOptions] options
|
91
|
+
# Request-specific options
|
92
|
+
#
|
93
|
+
# @yield [result, err] Result & error if block supplied
|
94
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
|
95
|
+
# @yieldparam err [StandardError] error object if request failed
|
96
|
+
#
|
97
|
+
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
|
98
|
+
#
|
99
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
102
|
+
def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
103
|
+
command = make_simple_command(:post, 'v1/organizations:search', options)
|
104
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
|
105
|
+
command.request_object = search_organizations_request_object
|
106
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
|
107
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
|
108
|
+
command.query['fields'] = fields unless fields.nil?
|
109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
110
|
+
execute_or_queue_command(command, &block)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Fetches an Organization resource identified by the specified resource name.
|
114
|
+
# @param [String] name
|
115
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
116
|
+
# @param [String] fields
|
117
|
+
# Selector specifying which fields to include in a partial response.
|
118
|
+
# @param [String] quota_user
|
119
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
120
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
121
|
+
# @param [Google::Apis::RequestOptions] options
|
122
|
+
# Request-specific options
|
123
|
+
#
|
124
|
+
# @yield [result, err] Result & error if block supplied
|
125
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
|
126
|
+
# @yieldparam err [StandardError] error object if request failed
|
127
|
+
#
|
128
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Organization]
|
129
|
+
#
|
130
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
131
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
132
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
133
|
+
def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
|
134
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
135
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
136
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
|
137
|
+
command.params['name'] = name unless name.nil?
|
138
|
+
command.query['fields'] = fields unless fields.nil?
|
139
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
140
|
+
execute_or_queue_command(command, &block)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
144
|
+
# existing policy. The `resource` field should be the organization's resource
|
145
|
+
# name, e.g. "organizations/123".
|
146
|
+
# @param [String] resource
|
147
|
+
# REQUIRED: The resource for which the policy is being specified. `resource` is
|
148
|
+
# usually specified as a path. For example, a Project resource is specified as `
|
149
|
+
# projects/`project``.
|
150
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
151
|
+
# @param [String] fields
|
152
|
+
# Selector specifying which fields to include in a partial response.
|
153
|
+
# @param [String] quota_user
|
154
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
155
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
156
|
+
# @param [Google::Apis::RequestOptions] options
|
157
|
+
# Request-specific options
|
158
|
+
#
|
159
|
+
# @yield [result, err] Result & error if block supplied
|
160
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
161
|
+
# @yieldparam err [StandardError] error object if request failed
|
162
|
+
#
|
163
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
164
|
+
#
|
165
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
166
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
167
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
168
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
169
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
170
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
171
|
+
command.request_object = set_iam_policy_request_object
|
172
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
173
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
174
|
+
command.params['resource'] = resource unless resource.nil?
|
175
|
+
command.query['fields'] = fields unless fields.nil?
|
176
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
177
|
+
execute_or_queue_command(command, &block)
|
178
|
+
end
|
179
|
+
|
180
|
+
# Gets the access control policy for an Organization resource. May be empty if
|
181
|
+
# no such policy or resource exists. The `resource` field should be the
|
182
|
+
# organization's resource name, e.g. "organizations/123".
|
183
|
+
# @param [String] resource
|
184
|
+
# REQUIRED: The resource for which the policy is being requested. `resource` is
|
185
|
+
# usually specified as a path. For example, a Project resource is specified as `
|
186
|
+
# projects/`project``.
|
187
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
188
|
+
# @param [String] fields
|
189
|
+
# Selector specifying which fields to include in a partial response.
|
190
|
+
# @param [String] quota_user
|
191
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
192
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
193
|
+
# @param [Google::Apis::RequestOptions] options
|
194
|
+
# Request-specific options
|
195
|
+
#
|
196
|
+
# @yield [result, err] Result & error if block supplied
|
197
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
198
|
+
# @yieldparam err [StandardError] error object if request failed
|
199
|
+
#
|
200
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
201
|
+
#
|
202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
205
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
206
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
207
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
208
|
+
command.request_object = get_iam_policy_request_object
|
209
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
210
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
211
|
+
command.params['resource'] = resource unless resource.nil?
|
212
|
+
command.query['fields'] = fields unless fields.nil?
|
213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
214
|
+
execute_or_queue_command(command, &block)
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns permissions that a caller has on the specified Organization. The `
|
218
|
+
# resource` field should be the organization's resource name, e.g. "
|
219
|
+
# organizations/123".
|
220
|
+
# @param [String] resource
|
221
|
+
# REQUIRED: The resource for which the policy detail is being requested. `
|
222
|
+
# resource` is usually specified as a path. For example, a Project resource is
|
223
|
+
# specified as `projects/`project``.
|
224
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
225
|
+
# @param [String] fields
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
227
|
+
# @param [String] quota_user
|
228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
230
|
+
# @param [Google::Apis::RequestOptions] options
|
231
|
+
# Request-specific options
|
232
|
+
#
|
233
|
+
# @yield [result, err] Result & error if block supplied
|
234
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
235
|
+
# @yieldparam err [StandardError] error object if request failed
|
236
|
+
#
|
237
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
238
|
+
#
|
239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
242
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
243
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
244
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
245
|
+
command.request_object = test_iam_permissions_request_object
|
246
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
247
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
248
|
+
command.params['resource'] = resource unless resource.nil?
|
249
|
+
command.query['fields'] = fields unless fields.nil?
|
250
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
251
|
+
execute_or_queue_command(command, &block)
|
252
|
+
end
|
253
|
+
|
50
254
|
# Retrieves the Project identified by the specified `project_id` (for example, `
|
51
255
|
# my-project-123`). The caller must have read permissions for this Project.
|
52
256
|
# @param [String] project_id
|
@@ -127,6 +331,42 @@ module Google
|
|
127
331
|
execute_or_queue_command(command, &block)
|
128
332
|
end
|
129
333
|
|
334
|
+
# Request that a new Project be created. The result is an Operation which can be
|
335
|
+
# used to track the creation process. It is automatically deleted after a few
|
336
|
+
# hours, so there is no need to call DeleteOperation. Our SLO permits Project
|
337
|
+
# creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we
|
338
|
+
# are observing 6 seconds 50th percentile latency. 95th percentile latency is
|
339
|
+
# around 11 seconds. We recommend polling at the 5th second with an exponential
|
340
|
+
# backoff.
|
341
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
342
|
+
# @param [String] fields
|
343
|
+
# Selector specifying which fields to include in a partial response.
|
344
|
+
# @param [String] quota_user
|
345
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
346
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
347
|
+
# @param [Google::Apis::RequestOptions] options
|
348
|
+
# Request-specific options
|
349
|
+
#
|
350
|
+
# @yield [result, err] Result & error if block supplied
|
351
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
352
|
+
# @yieldparam err [StandardError] error object if request failed
|
353
|
+
#
|
354
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
355
|
+
#
|
356
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
357
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
|
+
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
360
|
+
command = make_simple_command(:post, 'v1/projects', options)
|
361
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
362
|
+
command.request_object = project_object
|
363
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
364
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
365
|
+
command.query['fields'] = fields unless fields.nil?
|
366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
367
|
+
execute_or_queue_command(command, &block)
|
368
|
+
end
|
369
|
+
|
130
370
|
# Updates the attributes of the Project identified by the specified `project_id`
|
131
371
|
# (for example, `my-project-123`). The caller must have modify permissions for
|
132
372
|
# this Project.
|
@@ -167,13 +407,12 @@ module Google
|
|
167
407
|
# following criteria are met: + The Project does not have a billing account
|
168
408
|
# associated with it. + The Project has a lifecycle state of ACTIVE. This method
|
169
409
|
# changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
|
170
|
-
# deletion starts at an unspecified time, at which point the
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# for this Project.
|
410
|
+
# deletion starts at an unspecified time, at which point the Project is no
|
411
|
+
# longer accessible. Until the deletion completes, you can check the lifecycle
|
412
|
+
# state checked by retrieving the Project with GetProject, and the Project
|
413
|
+
# remains visible to ListProjects. However, you cannot update the project. After
|
414
|
+
# the deletion completes, the Project is not retrievable by the GetProject and
|
415
|
+
# ListProjects methods. The caller must have modify permissions for this Project.
|
177
416
|
# @param [String] project_id
|
178
417
|
# The Project ID (for example, `foo-bar-123`). Required.
|
179
418
|
# @param [String] fields
|
@@ -205,9 +444,8 @@ module Google
|
|
205
444
|
|
206
445
|
# Restores the Project identified by the specified `project_id` (for example, `
|
207
446
|
# my-project-123`). You can only use this method for a Project that has a
|
208
|
-
# lifecycle state of DELETE_REQUESTED. After deletion starts,
|
209
|
-
#
|
210
|
-
# caller must have modify permissions for this Project.
|
447
|
+
# lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
|
448
|
+
# be restored. The caller must have modify permissions for this Project.
|
211
449
|
# @param [String] project_id
|
212
450
|
# The project ID (for example, `foo-bar-123`). Required.
|
213
451
|
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
@@ -244,9 +482,8 @@ module Google
|
|
244
482
|
# denied if the policy or the resource does not exist.
|
245
483
|
# @param [String] resource
|
246
484
|
# REQUIRED: The resource for which the policy is being requested. `resource` is
|
247
|
-
# usually specified as a path,
|
248
|
-
#
|
249
|
-
# and is specified in the `getIamPolicy` documentation.
|
485
|
+
# usually specified as a path. For example, a Project resource is specified as `
|
486
|
+
# projects/`project``.
|
250
487
|
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
251
488
|
# @param [String] fields
|
252
489
|
# Selector specifying which fields to include in a partial response.
|
@@ -279,22 +516,30 @@ module Google
|
|
279
516
|
|
280
517
|
# Sets the IAM access control policy for the specified Project. Replaces any
|
281
518
|
# existing policy. The following constraints apply when using `setIamPolicy()`: +
|
282
|
-
# Project
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
# be
|
287
|
-
# the
|
288
|
-
#
|
289
|
-
#
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
519
|
+
# Project does not support `allUsers` and `allAuthenticatedUsers` as `members`
|
520
|
+
# in a `Binding` of a `Policy`. + The owner role can be granted only to `user`
|
521
|
+
# and `serviceAccount`. + Service accounts can be made owners of a project
|
522
|
+
# directly without any restrictions. However, to be added as an owner, a user
|
523
|
+
# must be invited via Cloud Platform console and must accept the invitation. + A
|
524
|
+
# user cannot be granted the owner role using `setIamPolicy()`. The user must be
|
525
|
+
# granted the owner role using the Cloud Platform Console and must explicitly
|
526
|
+
# accept the invitation. + Invitations to grant the owner role cannot be sent
|
527
|
+
# using `setIamPolicy()`; they must be sent only using the Cloud Platform
|
528
|
+
# Console. + Membership changes that leave the project without any owners that
|
529
|
+
# have accepted the Terms of Service (ToS) will be rejected. + There must be at
|
530
|
+
# least one owner who has accepted the Terms of Service (ToS) agreement in the
|
531
|
+
# policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
|
532
|
+
# the policy will fail. This restriction also applies to legacy projects that no
|
533
|
+
# longer have owners who have accepted the ToS. Edits to IAM policies will be
|
534
|
+
# rejected until the lack of a ToS-accepting owner is rectified. + Calling this
|
535
|
+
# method requires enabling the App Engine Admin API. Note: Removing service
|
536
|
+
# accounts from policies or changing their roles can render services completely
|
537
|
+
# inoperable. It is important to understand how the service account is being
|
538
|
+
# used before removing or updating its roles.
|
293
539
|
# @param [String] resource
|
294
540
|
# REQUIRED: The resource for which the policy is being specified. `resource` is
|
295
|
-
# usually specified as a path,
|
296
|
-
#
|
297
|
-
# and is specified in the `setIamPolicy` documentation.
|
541
|
+
# usually specified as a path. For example, a Project resource is specified as `
|
542
|
+
# projects/`project``.
|
298
543
|
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
299
544
|
# @param [String] fields
|
300
545
|
# Selector specifying which fields to include in a partial response.
|
@@ -328,9 +573,8 @@ module Google
|
|
328
573
|
# Returns permissions that a caller has on the specified Project.
|
329
574
|
# @param [String] resource
|
330
575
|
# REQUIRED: The resource for which the policy detail is being requested. `
|
331
|
-
# resource` is usually specified as a path,
|
332
|
-
#
|
333
|
-
# resource specific and is specified in the `testIamPermissions` documentation.
|
576
|
+
# resource` is usually specified as a path. For example, a Project resource is
|
577
|
+
# specified as `projects/`project``.
|
334
578
|
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
335
579
|
# @param [String] fields
|
336
580
|
# Selector specifying which fields to include in a partial response.
|