google-api-client 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -26,13 +26,13 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
30
|
-
|
31
|
-
# View your data across Google Cloud Platform services
|
32
|
-
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
29
|
+
REVISION = '20170324'
|
33
30
|
|
34
31
|
# View and manage your data across Google Cloud Platform services
|
35
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
|
+
|
34
|
+
# View your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -22,15 +22,654 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudresourcemanagerV1beta1
|
24
24
|
|
25
|
+
# The request sent to the UndeleteProject
|
26
|
+
# method.
|
27
|
+
class UndeleteProjectRequest
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
def initialize(**args)
|
31
|
+
update!(**args)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Update properties of this object
|
35
|
+
def update!(**args)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# The request sent to the ClearOrgPolicy method.
|
40
|
+
class ClearOrgPolicyRequest
|
41
|
+
include Google::Apis::Core::Hashable
|
42
|
+
|
43
|
+
# The current version, for concurrency control. Not sending an `etag`
|
44
|
+
# will cause the `Policy` to be cleared blindly.
|
45
|
+
# Corresponds to the JSON property `etag`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :etag
|
48
|
+
|
49
|
+
# Name of the `Constraint` of the `Policy` to clear.
|
50
|
+
# Corresponds to the JSON property `constraint`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :constraint
|
53
|
+
|
54
|
+
def initialize(**args)
|
55
|
+
update!(**args)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Update properties of this object
|
59
|
+
def update!(**args)
|
60
|
+
@etag = args[:etag] if args.key?(:etag)
|
61
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# A status object which is used as the `metadata` field for the Operation
|
66
|
+
# returned by CreateProject. It provides insight for when significant phases of
|
67
|
+
# Project creation have completed.
|
68
|
+
class ProjectCreationStatus
|
69
|
+
include Google::Apis::Core::Hashable
|
70
|
+
|
71
|
+
# True if the project creation process is complete.
|
72
|
+
# Corresponds to the JSON property `ready`
|
73
|
+
# @return [Boolean]
|
74
|
+
attr_accessor :ready
|
75
|
+
alias_method :ready?, :ready
|
76
|
+
|
77
|
+
# Creation time of the project creation workflow.
|
78
|
+
# Corresponds to the JSON property `createTime`
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :create_time
|
81
|
+
|
82
|
+
# True if the project can be retrieved using GetProject. No other operations
|
83
|
+
# on the project are guaranteed to work until the project creation is
|
84
|
+
# complete.
|
85
|
+
# Corresponds to the JSON property `gettable`
|
86
|
+
# @return [Boolean]
|
87
|
+
attr_accessor :gettable
|
88
|
+
alias_method :gettable?, :gettable
|
89
|
+
|
90
|
+
def initialize(**args)
|
91
|
+
update!(**args)
|
92
|
+
end
|
93
|
+
|
94
|
+
# Update properties of this object
|
95
|
+
def update!(**args)
|
96
|
+
@ready = args[:ready] if args.key?(:ready)
|
97
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
98
|
+
@gettable = args[:gettable] if args.key?(:gettable)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# A `Constraint` that is either enforced or not.
|
103
|
+
# For example a constraint `constraints/compute.disableSerialPortAccess`.
|
104
|
+
# If it is enforced on a VM instance, serial port connections will not be
|
105
|
+
# opened to that instance.
|
106
|
+
class BooleanConstraint
|
107
|
+
include Google::Apis::Core::Hashable
|
108
|
+
|
109
|
+
def initialize(**args)
|
110
|
+
update!(**args)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Update properties of this object
|
114
|
+
def update!(**args)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
25
118
|
# Response message for `TestIamPermissions` method.
|
26
119
|
class TestIamPermissionsResponse
|
27
120
|
include Google::Apis::Core::Hashable
|
28
121
|
|
29
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
30
|
-
# allowed.
|
31
|
-
# Corresponds to the JSON property `permissions`
|
32
|
-
# @return [Array<String>]
|
33
|
-
attr_accessor :permissions
|
122
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
123
|
+
# allowed.
|
124
|
+
# Corresponds to the JSON property `permissions`
|
125
|
+
# @return [Array<String>]
|
126
|
+
attr_accessor :permissions
|
127
|
+
|
128
|
+
def initialize(**args)
|
129
|
+
update!(**args)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Update properties of this object
|
133
|
+
def update!(**args)
|
134
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# Request message for `GetIamPolicy` method.
|
139
|
+
class GetIamPolicyRequest
|
140
|
+
include Google::Apis::Core::Hashable
|
141
|
+
|
142
|
+
def initialize(**args)
|
143
|
+
update!(**args)
|
144
|
+
end
|
145
|
+
|
146
|
+
# Update properties of this object
|
147
|
+
def update!(**args)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# The entity that owns an Organization. The lifetime of the Organization and
|
152
|
+
# all of its descendants are bound to the `OrganizationOwner`. If the
|
153
|
+
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
154
|
+
# be deleted.
|
155
|
+
class OrganizationOwner
|
156
|
+
include Google::Apis::Core::Hashable
|
157
|
+
|
158
|
+
# The Google for Work customer id used in the Directory API.
|
159
|
+
# Corresponds to the JSON property `directoryCustomerId`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :directory_customer_id
|
162
|
+
|
163
|
+
def initialize(**args)
|
164
|
+
update!(**args)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Update properties of this object
|
168
|
+
def update!(**args)
|
169
|
+
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# A page of the response received from the
|
174
|
+
# ListProjects
|
175
|
+
# method.
|
176
|
+
# A paginated response where more pages are available has
|
177
|
+
# `next_page_token` set. This token can be used in a subsequent request to
|
178
|
+
# retrieve the next request page.
|
179
|
+
class ListProjectsResponse
|
180
|
+
include Google::Apis::Core::Hashable
|
181
|
+
|
182
|
+
# Pagination token.
|
183
|
+
# If the result set is too large to fit in a single response, this token
|
184
|
+
# is returned. It encodes the position of the current result cursor.
|
185
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
186
|
+
# gives the next page of the results.
|
187
|
+
# When `next_page_token` is not filled in, there is no next page and
|
188
|
+
# the list returned is the last page in the result set.
|
189
|
+
# Pagination tokens have a limited lifetime.
|
190
|
+
# Corresponds to the JSON property `nextPageToken`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :next_page_token
|
193
|
+
|
194
|
+
# The list of Projects that matched the list filter. This list can
|
195
|
+
# be paginated.
|
196
|
+
# Corresponds to the JSON property `projects`
|
197
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
|
198
|
+
attr_accessor :projects
|
199
|
+
|
200
|
+
def initialize(**args)
|
201
|
+
update!(**args)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Update properties of this object
|
205
|
+
def update!(**args)
|
206
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
207
|
+
@projects = args[:projects] if args.key?(:projects)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# A Project is a high-level Google Cloud Platform entity. It is a
|
212
|
+
# container for ACLs, APIs, App Engine Apps, VMs, and other
|
213
|
+
# Google Cloud Platform resources.
|
214
|
+
class Project
|
215
|
+
include Google::Apis::Core::Hashable
|
216
|
+
|
217
|
+
# The number uniquely identifying the project.
|
218
|
+
# Example: <code>415104041262</code>
|
219
|
+
# Read-only.
|
220
|
+
# Corresponds to the JSON property `projectNumber`
|
221
|
+
# @return [String]
|
222
|
+
attr_accessor :project_number
|
223
|
+
|
224
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
225
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
226
|
+
# interact with through one of our API's. Some examples are an App Engine app,
|
227
|
+
# a Compute Engine instance, a Cloud SQL database, and so on.
|
228
|
+
# Corresponds to the JSON property `parent`
|
229
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
230
|
+
attr_accessor :parent
|
231
|
+
|
232
|
+
# Creation time.
|
233
|
+
# Read-only.
|
234
|
+
# Corresponds to the JSON property `createTime`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :create_time
|
237
|
+
|
238
|
+
# The labels associated with this Project.
|
239
|
+
# Label keys must be between 1 and 63 characters long and must conform
|
240
|
+
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
|
241
|
+
# Label values must be between 0 and 63 characters long and must conform
|
242
|
+
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
243
|
+
# No more than 256 labels can be associated with a given resource.
|
244
|
+
# Clients should store labels in a representation such as JSON that does not
|
245
|
+
# depend on specific characters being disallowed.
|
246
|
+
# Example: <code>"environment" : "dev"</code>
|
247
|
+
# Read-write.
|
248
|
+
# Corresponds to the JSON property `labels`
|
249
|
+
# @return [Hash<String,String>]
|
250
|
+
attr_accessor :labels
|
251
|
+
|
252
|
+
# The user-assigned display name of the Project.
|
253
|
+
# It must be 4 to 30 characters.
|
254
|
+
# Allowed characters are: lowercase and uppercase letters, numbers,
|
255
|
+
# hyphen, single-quote, double-quote, space, and exclamation point.
|
256
|
+
# Example: <code>My Project</code>
|
257
|
+
# Read-write.
|
258
|
+
# Corresponds to the JSON property `name`
|
259
|
+
# @return [String]
|
260
|
+
attr_accessor :name
|
261
|
+
|
262
|
+
# The unique, user-assigned ID of the Project.
|
263
|
+
# It must be 6 to 30 lowercase letters, digits, or hyphens.
|
264
|
+
# It must start with a letter.
|
265
|
+
# Trailing hyphens are prohibited.
|
266
|
+
# Example: <code>tokyo-rain-123</code>
|
267
|
+
# Read-only after creation.
|
268
|
+
# Corresponds to the JSON property `projectId`
|
269
|
+
# @return [String]
|
270
|
+
attr_accessor :project_id
|
271
|
+
|
272
|
+
# The Project lifecycle state.
|
273
|
+
# Read-only.
|
274
|
+
# Corresponds to the JSON property `lifecycleState`
|
275
|
+
# @return [String]
|
276
|
+
attr_accessor :lifecycle_state
|
277
|
+
|
278
|
+
def initialize(**args)
|
279
|
+
update!(**args)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Update properties of this object
|
283
|
+
def update!(**args)
|
284
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
285
|
+
@parent = args[:parent] if args.key?(:parent)
|
286
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
287
|
+
@labels = args[:labels] if args.key?(:labels)
|
288
|
+
@name = args[:name] if args.key?(:name)
|
289
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
290
|
+
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# The response returned from the ListOrgPolicies method. It will be empty
|
295
|
+
# if no `Policies` are set on the resource.
|
296
|
+
class ListOrgPoliciesResponse
|
297
|
+
include Google::Apis::Core::Hashable
|
298
|
+
|
299
|
+
# The `Policies` that are set on the resource. It will be empty if no
|
300
|
+
# `Policies` are set.
|
301
|
+
# Corresponds to the JSON property `policies`
|
302
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy>]
|
303
|
+
attr_accessor :policies
|
304
|
+
|
305
|
+
# Page token used to retrieve the next page. This is currently not used, but
|
306
|
+
# the server may at any point start supplying a valid token.
|
307
|
+
# Corresponds to the JSON property `nextPageToken`
|
308
|
+
# @return [String]
|
309
|
+
attr_accessor :next_page_token
|
310
|
+
|
311
|
+
def initialize(**args)
|
312
|
+
update!(**args)
|
313
|
+
end
|
314
|
+
|
315
|
+
# Update properties of this object
|
316
|
+
def update!(**args)
|
317
|
+
@policies = args[:policies] if args.key?(:policies)
|
318
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
# A classification of the Folder Operation error.
|
323
|
+
class FolderOperationError
|
324
|
+
include Google::Apis::Core::Hashable
|
325
|
+
|
326
|
+
# The type of operation error experienced.
|
327
|
+
# Corresponds to the JSON property `errorMessageId`
|
328
|
+
# @return [String]
|
329
|
+
attr_accessor :error_message_id
|
330
|
+
|
331
|
+
def initialize(**args)
|
332
|
+
update!(**args)
|
333
|
+
end
|
334
|
+
|
335
|
+
# Update properties of this object
|
336
|
+
def update!(**args)
|
337
|
+
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
342
|
+
# for configurations of Cloud Platform resources.
|
343
|
+
class OrgPolicy
|
344
|
+
include Google::Apis::Core::Hashable
|
345
|
+
|
346
|
+
# Version of the `Policy`. Default version is 0;
|
347
|
+
# Corresponds to the JSON property `version`
|
348
|
+
# @return [Fixnum]
|
349
|
+
attr_accessor :version
|
350
|
+
|
351
|
+
# Ignores policies set above this resource and restores the
|
352
|
+
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
353
|
+
# this resource.
|
354
|
+
# Suppose that `constraint_default` is set to `ALLOW` for the
|
355
|
+
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
|
356
|
+
# foo.com sets a `Policy` at their Organization resource node that restricts
|
357
|
+
# the allowed service activations to deny all service activations. They
|
358
|
+
# could then set a `Policy` with the `policy_type` `restore_default` on
|
359
|
+
# several experimental projects, restoring the `constraint_default`
|
360
|
+
# enforcement of the `Constraint` for only those projects, allowing those
|
361
|
+
# projects to have all services activated.
|
362
|
+
# Corresponds to the JSON property `restoreDefault`
|
363
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::RestoreDefault]
|
364
|
+
attr_accessor :restore_default
|
365
|
+
|
366
|
+
# Used in `policy_type` to specify how `list_policy` behaves at this
|
367
|
+
# resource.
|
368
|
+
# A `ListPolicy` can define specific values that are allowed or denied by
|
369
|
+
# setting either the `allowed_values` or `denied_values` fields. It can also
|
370
|
+
# be used to allow or deny all values, by setting the `all_values` field. If
|
371
|
+
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
|
372
|
+
# or `denied_values` must be set (attempting to set both or neither will
|
373
|
+
# result in a failed request). If `all_values` is set to either `ALLOW` or
|
374
|
+
# `DENY`, `allowed_values` and `denied_values` must be unset.
|
375
|
+
# Corresponds to the JSON property `listPolicy`
|
376
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListPolicy]
|
377
|
+
attr_accessor :list_policy
|
378
|
+
|
379
|
+
# An opaque tag indicating the current version of the `Policy`, used for
|
380
|
+
# concurrency control.
|
381
|
+
# When the `Policy` is returned from either a `GetPolicy` or a
|
382
|
+
# `ListOrgPolicy` request, this `etag` indicates the version of the current
|
383
|
+
# `Policy` to use when executing a read-modify-write loop.
|
384
|
+
# When the `Policy` is returned from a `GetEffectivePolicy` request, the
|
385
|
+
# `etag` will be unset.
|
386
|
+
# When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
|
387
|
+
# that was returned from a `GetOrgPolicy` request as part of a
|
388
|
+
# read-modify-write loop for concurrency control. Not setting the `etag`in a
|
389
|
+
# `SetOrgPolicy` request will result in an unconditional write of the
|
390
|
+
# `Policy`.
|
391
|
+
# Corresponds to the JSON property `etag`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :etag
|
394
|
+
|
395
|
+
# The name of the `Constraint` the `Policy` is configuring, for example,
|
396
|
+
# `constraints/serviceuser.services`.
|
397
|
+
# Immutable after creation.
|
398
|
+
# Corresponds to the JSON property `constraint`
|
399
|
+
# @return [String]
|
400
|
+
attr_accessor :constraint
|
401
|
+
|
402
|
+
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
403
|
+
# resource.
|
404
|
+
# Corresponds to the JSON property `booleanPolicy`
|
405
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::BooleanPolicy]
|
406
|
+
attr_accessor :boolean_policy
|
407
|
+
|
408
|
+
# The time stamp the `Policy` was previously updated. This is set by the
|
409
|
+
# server, not specified by the caller, and represents the last time a call to
|
410
|
+
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
|
411
|
+
# be ignored.
|
412
|
+
# Corresponds to the JSON property `updateTime`
|
413
|
+
# @return [String]
|
414
|
+
attr_accessor :update_time
|
415
|
+
|
416
|
+
def initialize(**args)
|
417
|
+
update!(**args)
|
418
|
+
end
|
419
|
+
|
420
|
+
# Update properties of this object
|
421
|
+
def update!(**args)
|
422
|
+
@version = args[:version] if args.key?(:version)
|
423
|
+
@restore_default = args[:restore_default] if args.key?(:restore_default)
|
424
|
+
@list_policy = args[:list_policy] if args.key?(:list_policy)
|
425
|
+
@etag = args[:etag] if args.key?(:etag)
|
426
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
427
|
+
@boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
|
428
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
433
|
+
# resource.
|
434
|
+
class BooleanPolicy
|
435
|
+
include Google::Apis::Core::Hashable
|
436
|
+
|
437
|
+
# If `true`, then the `Policy` is enforced. If `false`, then any
|
438
|
+
# configuration is acceptable.
|
439
|
+
# Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess`
|
440
|
+
# with `constraint_default` set to `ALLOW`. A `Policy` for that
|
441
|
+
# `Constraint` exhibits the following behavior:
|
442
|
+
# - If the `Policy` at this resource has enforced set to `false`, serial
|
443
|
+
# port connection attempts will be allowed.
|
444
|
+
# - If the `Policy` at this resource has enforced set to `true`, serial
|
445
|
+
# port connection attempts will be refused.
|
446
|
+
# - If the `Policy` at this resource is `RestoreDefault`, serial port
|
447
|
+
# connection attempts will be allowed.
|
448
|
+
# - If no `Policy` is set at this resource or anywhere higher in the
|
449
|
+
# resource hierarchy, serial port connection attempts will be allowed.
|
450
|
+
# - If no `Policy` is set at this resource, but one exists higher in the
|
451
|
+
# resource hierarchy, the behavior is as if the`Policy` were set at
|
452
|
+
# this resource.
|
453
|
+
# The following examples demonstrate the different possible layerings:
|
454
|
+
# Example 1 (nearest `Constraint` wins):
|
455
|
+
# `organizations/foo` has a `Policy` with:
|
456
|
+
# `enforced: false`
|
457
|
+
# `projects/bar` has no `Policy` set.
|
458
|
+
# The constraint at `projects/bar` and `organizations/foo` will not be
|
459
|
+
# enforced.
|
460
|
+
# Example 2 (enforcement gets replaced):
|
461
|
+
# `organizations/foo` has a `Policy` with:
|
462
|
+
# `enforced: false`
|
463
|
+
# `projects/bar` has a `Policy` with:
|
464
|
+
# `enforced: true`
|
465
|
+
# The constraint at `organizations/foo` is not enforced.
|
466
|
+
# The constraint at `projects/bar` is enforced.
|
467
|
+
# Example 3 (RestoreDefault):
|
468
|
+
# `organizations/foo` has a `Policy` with:
|
469
|
+
# `enforced: true`
|
470
|
+
# `projects/bar` has a `Policy` with:
|
471
|
+
# `RestoreDefault: ```
|
472
|
+
# The constraint at `organizations/foo` is enforced.
|
473
|
+
# The constraint at `projects/bar` is not enforced, because
|
474
|
+
# `constraint_default` for the `Constraint` is `ALLOW`.
|
475
|
+
# Corresponds to the JSON property `enforced`
|
476
|
+
# @return [Boolean]
|
477
|
+
attr_accessor :enforced
|
478
|
+
alias_method :enforced?, :enforced
|
479
|
+
|
480
|
+
def initialize(**args)
|
481
|
+
update!(**args)
|
482
|
+
end
|
483
|
+
|
484
|
+
# Update properties of this object
|
485
|
+
def update!(**args)
|
486
|
+
@enforced = args[:enforced] if args.key?(:enforced)
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
# Identifying information for a single ancestor of a project.
|
491
|
+
class Ancestor
|
492
|
+
include Google::Apis::Core::Hashable
|
493
|
+
|
494
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
495
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
496
|
+
# interact with through one of our API's. Some examples are an App Engine app,
|
497
|
+
# a Compute Engine instance, a Cloud SQL database, and so on.
|
498
|
+
# Corresponds to the JSON property `resourceId`
|
499
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
500
|
+
attr_accessor :resource_id
|
501
|
+
|
502
|
+
def initialize(**args)
|
503
|
+
update!(**args)
|
504
|
+
end
|
505
|
+
|
506
|
+
# Update properties of this object
|
507
|
+
def update!(**args)
|
508
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
509
|
+
end
|
510
|
+
end
|
511
|
+
|
512
|
+
# A `Constraint` that allows or disallows a list of string values, which are
|
513
|
+
# configured by an Organization's policy administrator with a `Policy`.
|
514
|
+
class ListConstraint
|
515
|
+
include Google::Apis::Core::Hashable
|
516
|
+
|
517
|
+
# Optional. The Google Cloud Console will try to default to a configuration
|
518
|
+
# that matches the value specified in this `Constraint`.
|
519
|
+
# Corresponds to the JSON property `suggestedValue`
|
520
|
+
# @return [String]
|
521
|
+
attr_accessor :suggested_value
|
522
|
+
|
523
|
+
def initialize(**args)
|
524
|
+
update!(**args)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Update properties of this object
|
528
|
+
def update!(**args)
|
529
|
+
@suggested_value = args[:suggested_value] if args.key?(:suggested_value)
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
533
|
+
# The request sent to the SetOrgPolicyRequest method.
|
534
|
+
class SetOrgPolicyRequest
|
535
|
+
include Google::Apis::Core::Hashable
|
536
|
+
|
537
|
+
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
538
|
+
# for configurations of Cloud Platform resources.
|
539
|
+
# Corresponds to the JSON property `policy`
|
540
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
541
|
+
attr_accessor :policy
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@policy = args[:policy] if args.key?(:policy)
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
# Request message for `SetIamPolicy` method.
|
554
|
+
class SetIamPolicyRequest
|
555
|
+
include Google::Apis::Core::Hashable
|
556
|
+
|
557
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
558
|
+
# specify access control policies for Cloud Platform resources.
|
559
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
560
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
561
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
562
|
+
# defined by IAM.
|
563
|
+
# **Example**
|
564
|
+
# `
|
565
|
+
# "bindings": [
|
566
|
+
# `
|
567
|
+
# "role": "roles/owner",
|
568
|
+
# "members": [
|
569
|
+
# "user:mike@example.com",
|
570
|
+
# "group:admins@example.com",
|
571
|
+
# "domain:google.com",
|
572
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
573
|
+
# ]
|
574
|
+
# `,
|
575
|
+
# `
|
576
|
+
# "role": "roles/viewer",
|
577
|
+
# "members": ["user:sean@example.com"]
|
578
|
+
# `
|
579
|
+
# ]
|
580
|
+
# `
|
581
|
+
# For a description of IAM and its features, see the
|
582
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
583
|
+
# Corresponds to the JSON property `policy`
|
584
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
585
|
+
attr_accessor :policy
|
586
|
+
|
587
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
588
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
589
|
+
# following default mask is used:
|
590
|
+
# paths: "bindings, etag"
|
591
|
+
# This field is only used by Cloud IAM.
|
592
|
+
# Corresponds to the JSON property `updateMask`
|
593
|
+
# @return [String]
|
594
|
+
attr_accessor :update_mask
|
595
|
+
|
596
|
+
def initialize(**args)
|
597
|
+
update!(**args)
|
598
|
+
end
|
599
|
+
|
600
|
+
# Update properties of this object
|
601
|
+
def update!(**args)
|
602
|
+
@policy = args[:policy] if args.key?(:policy)
|
603
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
608
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
609
|
+
# or the response type of an API method. For instance:
|
610
|
+
# service Foo `
|
611
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
612
|
+
# `
|
613
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
614
|
+
class Empty
|
615
|
+
include Google::Apis::Core::Hashable
|
616
|
+
|
617
|
+
def initialize(**args)
|
618
|
+
update!(**args)
|
619
|
+
end
|
620
|
+
|
621
|
+
# Update properties of this object
|
622
|
+
def update!(**args)
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
# The root node in the resource hierarchy to which a particular entity's
|
627
|
+
# (e.g., company) resources belong.
|
628
|
+
class Organization
|
629
|
+
include Google::Apis::Core::Hashable
|
630
|
+
|
631
|
+
# The organization's current lifecycle state. Assigned by the server.
|
632
|
+
# @OutputOnly
|
633
|
+
# Corresponds to the JSON property `lifecycleState`
|
634
|
+
# @return [String]
|
635
|
+
attr_accessor :lifecycle_state
|
636
|
+
|
637
|
+
# A friendly string to be used to refer to the Organization in the UI.
|
638
|
+
# Assigned by the server, set to the primary domain of the G Suite
|
639
|
+
# customer that owns the organization.
|
640
|
+
# @OutputOnly
|
641
|
+
# Corresponds to the JSON property `displayName`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :display_name
|
644
|
+
|
645
|
+
# Timestamp when the Organization was created. Assigned by the server.
|
646
|
+
# @OutputOnly
|
647
|
+
# Corresponds to the JSON property `creationTime`
|
648
|
+
# @return [String]
|
649
|
+
attr_accessor :creation_time
|
650
|
+
|
651
|
+
# The entity that owns an Organization. The lifetime of the Organization and
|
652
|
+
# all of its descendants are bound to the `OrganizationOwner`. If the
|
653
|
+
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
654
|
+
# be deleted.
|
655
|
+
# Corresponds to the JSON property `owner`
|
656
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
657
|
+
attr_accessor :owner
|
658
|
+
|
659
|
+
# Output Only. The resource name of the organization. This is the
|
660
|
+
# organization's relative path in the API. Its format is
|
661
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
662
|
+
# Corresponds to the JSON property `name`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :name
|
665
|
+
|
666
|
+
# An immutable id for the Organization that is assigned on creation. This
|
667
|
+
# should be omitted when creating a new Organization.
|
668
|
+
# This field is read-only.
|
669
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
670
|
+
# Corresponds to the JSON property `organizationId`
|
671
|
+
# @return [String]
|
672
|
+
attr_accessor :organization_id
|
34
673
|
|
35
674
|
def initialize(**args)
|
36
675
|
update!(**args)
|
@@ -38,34 +677,157 @@ module Google
|
|
38
677
|
|
39
678
|
# Update properties of this object
|
40
679
|
def update!(**args)
|
41
|
-
@
|
680
|
+
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
681
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
682
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
683
|
+
@owner = args[:owner] if args.key?(:owner)
|
684
|
+
@name = args[:name] if args.key?(:name)
|
685
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
42
686
|
end
|
43
687
|
end
|
44
688
|
|
45
|
-
#
|
46
|
-
|
689
|
+
# The response returned from the ListAvailableOrgPolicyConstraints method.
|
690
|
+
# Returns all `Constraints` that could be set at this level of the hierarchy
|
691
|
+
# (contrast with the response from `ListPolicies`, which returns all policies
|
692
|
+
# which are set).
|
693
|
+
class ListAvailableOrgPolicyConstraintsResponse
|
47
694
|
include Google::Apis::Core::Hashable
|
48
695
|
|
696
|
+
# Page token used to retrieve the next page. This is currently not used.
|
697
|
+
# Corresponds to the JSON property `nextPageToken`
|
698
|
+
# @return [String]
|
699
|
+
attr_accessor :next_page_token
|
700
|
+
|
701
|
+
# The collection of constraints that are settable on the request resource.
|
702
|
+
# Corresponds to the JSON property `constraints`
|
703
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Constraint>]
|
704
|
+
attr_accessor :constraints
|
705
|
+
|
49
706
|
def initialize(**args)
|
50
707
|
update!(**args)
|
51
708
|
end
|
52
709
|
|
53
710
|
# Update properties of this object
|
54
711
|
def update!(**args)
|
712
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
713
|
+
@constraints = args[:constraints] if args.key?(:constraints)
|
55
714
|
end
|
56
715
|
end
|
57
716
|
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# `
|
61
|
-
#
|
62
|
-
|
717
|
+
# Used in `policy_type` to specify how `list_policy` behaves at this
|
718
|
+
# resource.
|
719
|
+
# A `ListPolicy` can define specific values that are allowed or denied by
|
720
|
+
# setting either the `allowed_values` or `denied_values` fields. It can also
|
721
|
+
# be used to allow or deny all values, by setting the `all_values` field. If
|
722
|
+
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
|
723
|
+
# or `denied_values` must be set (attempting to set both or neither will
|
724
|
+
# result in a failed request). If `all_values` is set to either `ALLOW` or
|
725
|
+
# `DENY`, `allowed_values` and `denied_values` must be unset.
|
726
|
+
class ListPolicy
|
63
727
|
include Google::Apis::Core::Hashable
|
64
728
|
|
65
|
-
# The
|
66
|
-
# Corresponds to the JSON property `
|
729
|
+
# The policy all_values state.
|
730
|
+
# Corresponds to the JSON property `allValues`
|
67
731
|
# @return [String]
|
68
|
-
attr_accessor :
|
732
|
+
attr_accessor :all_values
|
733
|
+
|
734
|
+
# List of values allowed at this resource. an only be set if no values are
|
735
|
+
# set for `denied_values` and `all_values` is set to
|
736
|
+
# `ALL_VALUES_UNSPECIFIED`.
|
737
|
+
# Corresponds to the JSON property `allowedValues`
|
738
|
+
# @return [Array<String>]
|
739
|
+
attr_accessor :allowed_values
|
740
|
+
|
741
|
+
# Optional. The Google Cloud Console will try to default to a configuration
|
742
|
+
# that matches the value specified in this `Policy`. If `suggested_value`
|
743
|
+
# is not set, it will inherit the value specified higher in the hierarchy,
|
744
|
+
# unless `inherit_from_parent` is `false`.
|
745
|
+
# Corresponds to the JSON property `suggestedValue`
|
746
|
+
# @return [String]
|
747
|
+
attr_accessor :suggested_value
|
748
|
+
|
749
|
+
# Determines the inheritance behavior for this `Policy`.
|
750
|
+
# By default, a `ListPolicy` set at a resource supercedes any `Policy` set
|
751
|
+
# anywhere up the resource hierarchy. However, if `inherit_from_parent` is
|
752
|
+
# set to `true`, then the values from the effective `Policy` of the parent
|
753
|
+
# resource are inherited, meaning the values set in this `Policy` are
|
754
|
+
# added to the values inherited up the hierarchy.
|
755
|
+
# Setting `Policy` hierarchies that inherit both allowed values and denied
|
756
|
+
# values isn't recommended in most circumstances to keep the configuration
|
757
|
+
# simple and understandable. However, it is possible to set a `Policy` with
|
758
|
+
# `allowed_values` set that inherits a `Policy` with `denied_values` set.
|
759
|
+
# In this case, the values that are allowed must be in `allowed_values` and
|
760
|
+
# not present in `denied_values`.
|
761
|
+
# For example, suppose you have a `Constraint`
|
762
|
+
# `constraints/serviceuser.services`, which has a `constraint_type` of
|
763
|
+
# `list_constraint`, and with `constraint_default` set to `ALLOW`.
|
764
|
+
# Suppose that at the Organization level, a `Policy` is applied that
|
765
|
+
# restricts the allowed API activations to ``E1`, `E2``. Then, if a
|
766
|
+
# `Policy` is applied to a project below the Organization that has
|
767
|
+
# `inherit_from_parent` set to `false` and field all_values set to DENY,
|
768
|
+
# then an attempt to activate any API will be denied.
|
769
|
+
# The following examples demonstrate different possible layerings:
|
770
|
+
# Example 1 (no inherited values):
|
771
|
+
# `organizations/foo` has a `Policy` with values:
|
772
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
773
|
+
# ``projects/bar`` has `inherit_from_parent` `false` and values:
|
774
|
+
# `allowed_values: "E3" allowed_values: "E4"`
|
775
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
776
|
+
# The accepted values at `projects/bar` are `E3`, and `E4`.
|
777
|
+
# Example 2 (inherited values):
|
778
|
+
# `organizations/foo` has a `Policy` with values:
|
779
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
780
|
+
# `projects/bar` has a `Policy` with values:
|
781
|
+
# `value: “E3” value: ”E4” inherit_from_parent: true`
|
782
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
783
|
+
# The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
|
784
|
+
# Example 3 (inheriting both allowed and denied values):
|
785
|
+
# `organizations/foo` has a `Policy` with values:
|
786
|
+
# `allowed_values: "E1" allowed_values: "E2"`
|
787
|
+
# `projects/bar` has a `Policy` with:
|
788
|
+
# `denied_values: "E1"`
|
789
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
790
|
+
# The value accepted at `projects/bar` is `E2`.
|
791
|
+
# Example 4 (RestoreDefault):
|
792
|
+
# `organizations/foo` has a `Policy` with values:
|
793
|
+
# `allowed_values: “E1” allowed_values:”E2”`
|
794
|
+
# `projects/bar` has a `Policy` with values:
|
795
|
+
# `RestoreDefault: ```
|
796
|
+
# The accepted values at `organizations/foo` are `E1`, `E2`.
|
797
|
+
# The accepted values at `projects/bar` are either all or none depending on
|
798
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
799
|
+
# `DENY`, none).
|
800
|
+
# Example 5 (no policy inherits parent policy):
|
801
|
+
# `organizations/foo` has no `Policy` set.
|
802
|
+
# `projects/bar` has no `Policy` set.
|
803
|
+
# The accepted values at both levels are either all or none depending on
|
804
|
+
# the value of `constraint_default` (if `ALLOW`, all; if
|
805
|
+
# `DENY`, none).
|
806
|
+
# Example 6 (ListConstraint allowing all):
|
807
|
+
# `organizations/foo` has a `Policy` with values:
|
808
|
+
# `allowed_values: “E1” allowed_values: ”E2”`
|
809
|
+
# `projects/bar` has a `Policy` with:
|
810
|
+
# `all: ALLOW`
|
811
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
812
|
+
# Any value is accepted at `projects/bar`.
|
813
|
+
# Example 7 (ListConstraint allowing none):
|
814
|
+
# `organizations/foo` has a `Policy` with values:
|
815
|
+
# `allowed_values: “E1” allowed_values: ”E2”`
|
816
|
+
# `projects/bar` has a `Policy` with:
|
817
|
+
# `all: DENY`
|
818
|
+
# The accepted values at `organizations/foo` are `E1`, E2`.
|
819
|
+
# No value is accepted at `projects/bar`.
|
820
|
+
# Corresponds to the JSON property `inheritFromParent`
|
821
|
+
# @return [Boolean]
|
822
|
+
attr_accessor :inherit_from_parent
|
823
|
+
alias_method :inherit_from_parent?, :inherit_from_parent
|
824
|
+
|
825
|
+
# List of values denied at this resource. Can only be set if no values are
|
826
|
+
# set for `allowed_values` and `all_values` is set to
|
827
|
+
# `ALL_VALUES_UNSPECIFIED`.
|
828
|
+
# Corresponds to the JSON property `deniedValues`
|
829
|
+
# @return [Array<String>]
|
830
|
+
attr_accessor :denied_values
|
69
831
|
|
70
832
|
def initialize(**args)
|
71
833
|
update!(**args)
|
@@ -73,7 +835,11 @@ module Google
|
|
73
835
|
|
74
836
|
# Update properties of this object
|
75
837
|
def update!(**args)
|
76
|
-
@
|
838
|
+
@all_values = args[:all_values] if args.key?(:all_values)
|
839
|
+
@allowed_values = args[:allowed_values] if args.key?(:allowed_values)
|
840
|
+
@suggested_value = args[:suggested_value] if args.key?(:suggested_value)
|
841
|
+
@inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
|
842
|
+
@denied_values = args[:denied_values] if args.key?(:denied_values)
|
77
843
|
end
|
78
844
|
end
|
79
845
|
|
@@ -98,44 +864,6 @@ module Google
|
|
98
864
|
end
|
99
865
|
end
|
100
866
|
|
101
|
-
# A page of the response received from the
|
102
|
-
# ListProjects
|
103
|
-
# method.
|
104
|
-
# A paginated response where more pages are available has
|
105
|
-
# `next_page_token` set. This token can be used in a subsequent request to
|
106
|
-
# retrieve the next request page.
|
107
|
-
class ListProjectsResponse
|
108
|
-
include Google::Apis::Core::Hashable
|
109
|
-
|
110
|
-
# The list of Projects that matched the list filter. This list can
|
111
|
-
# be paginated.
|
112
|
-
# Corresponds to the JSON property `projects`
|
113
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
|
114
|
-
attr_accessor :projects
|
115
|
-
|
116
|
-
# Pagination token.
|
117
|
-
# If the result set is too large to fit in a single response, this token
|
118
|
-
# is returned. It encodes the position of the current result cursor.
|
119
|
-
# Feeding this value into a new list request with the `page_token` parameter
|
120
|
-
# gives the next page of the results.
|
121
|
-
# When `next_page_token` is not filled in, there is no next page and
|
122
|
-
# the list returned is the last page in the result set.
|
123
|
-
# Pagination tokens have a limited lifetime.
|
124
|
-
# Corresponds to the JSON property `nextPageToken`
|
125
|
-
# @return [String]
|
126
|
-
attr_accessor :next_page_token
|
127
|
-
|
128
|
-
def initialize(**args)
|
129
|
-
update!(**args)
|
130
|
-
end
|
131
|
-
|
132
|
-
# Update properties of this object
|
133
|
-
def update!(**args)
|
134
|
-
@projects = args[:projects] if args.key?(:projects)
|
135
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
867
|
# Provides the configuration for logging a type of permissions.
|
140
868
|
# Example:
|
141
869
|
# `
|
@@ -194,72 +922,17 @@ module Google
|
|
194
922
|
end
|
195
923
|
end
|
196
924
|
|
197
|
-
#
|
198
|
-
|
199
|
-
# Google Cloud Platform resources.
|
200
|
-
class Project
|
925
|
+
# Request message for `TestIamPermissions` method.
|
926
|
+
class TestIamPermissionsRequest
|
201
927
|
include Google::Apis::Core::Hashable
|
202
928
|
|
203
|
-
# The
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
|
210
|
-
# @return [String]
|
211
|
-
attr_accessor :project_id
|
212
|
-
|
213
|
-
# The Project lifecycle state.
|
214
|
-
# Read-only.
|
215
|
-
# Corresponds to the JSON property `lifecycleState`
|
216
|
-
# @return [String]
|
217
|
-
attr_accessor :lifecycle_state
|
218
|
-
|
219
|
-
# The number uniquely identifying the project.
|
220
|
-
# Example: <code>415104041262</code>
|
221
|
-
# Read-only.
|
222
|
-
# Corresponds to the JSON property `projectNumber`
|
223
|
-
# @return [String]
|
224
|
-
attr_accessor :project_number
|
225
|
-
|
226
|
-
# A container to reference an id for any resource type. A `resource` in Google
|
227
|
-
# Cloud Platform is a generic term for something you (a developer) may want to
|
228
|
-
# interact with through one of our API's. Some examples are an App Engine app,
|
229
|
-
# a Compute Engine instance, a Cloud SQL database, and so on.
|
230
|
-
# Corresponds to the JSON property `parent`
|
231
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
232
|
-
attr_accessor :parent
|
233
|
-
|
234
|
-
# Creation time.
|
235
|
-
# Read-only.
|
236
|
-
# Corresponds to the JSON property `createTime`
|
237
|
-
# @return [String]
|
238
|
-
attr_accessor :create_time
|
239
|
-
|
240
|
-
# The labels associated with this Project.
|
241
|
-
# Label keys must be between 1 and 63 characters long and must conform
|
242
|
-
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
|
243
|
-
# Label values must be between 0 and 63 characters long and must conform
|
244
|
-
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
245
|
-
# No more than 256 labels can be associated with a given resource.
|
246
|
-
# Clients should store labels in a representation such as JSON that does not
|
247
|
-
# depend on specific characters being disallowed.
|
248
|
-
# Example: <code>"environment" : "dev"</code>
|
249
|
-
# Read-write.
|
250
|
-
# Corresponds to the JSON property `labels`
|
251
|
-
# @return [Hash<String,String>]
|
252
|
-
attr_accessor :labels
|
253
|
-
|
254
|
-
# The user-assigned display name of the Project.
|
255
|
-
# It must be 4 to 30 characters.
|
256
|
-
# Allowed characters are: lowercase and uppercase letters, numbers,
|
257
|
-
# hyphen, single-quote, double-quote, space, and exclamation point.
|
258
|
-
# Example: <code>My Project</code>
|
259
|
-
# Read-write.
|
260
|
-
# Corresponds to the JSON property `name`
|
261
|
-
# @return [String]
|
262
|
-
attr_accessor :name
|
929
|
+
# The set of permissions to check for the `resource`. Permissions with
|
930
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
931
|
+
# information see
|
932
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
933
|
+
# Corresponds to the JSON property `permissions`
|
934
|
+
# @return [Array<String>]
|
935
|
+
attr_accessor :permissions
|
263
936
|
|
264
937
|
def initialize(**args)
|
265
938
|
update!(**args)
|
@@ -267,27 +940,27 @@ module Google
|
|
267
940
|
|
268
941
|
# Update properties of this object
|
269
942
|
def update!(**args)
|
270
|
-
@
|
271
|
-
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
272
|
-
@project_number = args[:project_number] if args.key?(:project_number)
|
273
|
-
@parent = args[:parent] if args.key?(:parent)
|
274
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
275
|
-
@labels = args[:labels] if args.key?(:labels)
|
276
|
-
@name = args[:name] if args.key?(:name)
|
943
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
277
944
|
end
|
278
945
|
end
|
279
946
|
|
280
|
-
#
|
281
|
-
|
947
|
+
# The request sent to the [ListAvailableOrgPolicyConstraints]
|
948
|
+
# google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
|
949
|
+
class ListAvailableOrgPolicyConstraintsRequest
|
282
950
|
include Google::Apis::Core::Hashable
|
283
951
|
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
# [
|
288
|
-
|
289
|
-
|
290
|
-
|
952
|
+
# Page token used to retrieve the next page. This is currently unsupported
|
953
|
+
# and will be ignored. The server may at any point start using this field.
|
954
|
+
# Corresponds to the JSON property `pageToken`
|
955
|
+
# @return [String]
|
956
|
+
attr_accessor :page_token
|
957
|
+
|
958
|
+
# Size of the pages to be returned. This is currently unsupported and will
|
959
|
+
# be ignored. The server may at any point start using this field to limit
|
960
|
+
# page size.
|
961
|
+
# Corresponds to the JSON property `pageSize`
|
962
|
+
# @return [Fixnum]
|
963
|
+
attr_accessor :page_size
|
291
964
|
|
292
965
|
def initialize(**args)
|
293
966
|
update!(**args)
|
@@ -295,7 +968,8 @@ module Google
|
|
295
968
|
|
296
969
|
# Update properties of this object
|
297
970
|
def update!(**args)
|
298
|
-
@
|
971
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
972
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
299
973
|
end
|
300
974
|
end
|
301
975
|
|
@@ -328,18 +1002,6 @@ module Google
|
|
328
1002
|
class Policy
|
329
1003
|
include Google::Apis::Core::Hashable
|
330
1004
|
|
331
|
-
# Specifies cloud audit logging configuration for this policy.
|
332
|
-
# Corresponds to the JSON property `auditConfigs`
|
333
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
|
334
|
-
attr_accessor :audit_configs
|
335
|
-
|
336
|
-
# Associates a list of `members` to a `role`.
|
337
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
338
|
-
# `bindings` with no members will result in an error.
|
339
|
-
# Corresponds to the JSON property `bindings`
|
340
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
341
|
-
attr_accessor :bindings
|
342
|
-
|
343
1005
|
# `etag` is used for optimistic concurrency control as a way to help
|
344
1006
|
# prevent simultaneous updates of a policy from overwriting each other.
|
345
1007
|
# It is strongly suggested that systems make use of the `etag` in the
|
@@ -358,16 +1020,28 @@ module Google
|
|
358
1020
|
# @return [Fixnum]
|
359
1021
|
attr_accessor :version
|
360
1022
|
|
1023
|
+
# Specifies cloud audit logging configuration for this policy.
|
1024
|
+
# Corresponds to the JSON property `auditConfigs`
|
1025
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::AuditConfig>]
|
1026
|
+
attr_accessor :audit_configs
|
1027
|
+
|
1028
|
+
# Associates a list of `members` to a `role`.
|
1029
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
1030
|
+
# `bindings` with no members will result in an error.
|
1031
|
+
# Corresponds to the JSON property `bindings`
|
1032
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
1033
|
+
attr_accessor :bindings
|
1034
|
+
|
361
1035
|
def initialize(**args)
|
362
1036
|
update!(**args)
|
363
1037
|
end
|
364
1038
|
|
365
1039
|
# Update properties of this object
|
366
1040
|
def update!(**args)
|
367
|
-
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
368
|
-
@bindings = args[:bindings] if args.key?(:bindings)
|
369
1041
|
@etag = args[:etag] if args.key?(:etag)
|
370
1042
|
@version = args[:version] if args.key?(:version)
|
1043
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
1044
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
371
1045
|
end
|
372
1046
|
end
|
373
1047
|
|
@@ -375,49 +1049,27 @@ module Google
|
|
375
1049
|
class FolderOperation
|
376
1050
|
include Google::Apis::Core::Hashable
|
377
1051
|
|
378
|
-
# The display name of the folder.
|
379
|
-
# Corresponds to the JSON property `displayName`
|
380
|
-
# @return [String]
|
381
|
-
attr_accessor :display_name
|
382
|
-
|
383
|
-
# The resource name of the folder's parent.
|
384
|
-
# Only applicable when the operation_type is MOVE.
|
385
|
-
# Corresponds to the JSON property `sourceParent`
|
386
|
-
# @return [String]
|
387
|
-
attr_accessor :source_parent
|
388
|
-
|
389
|
-
# The resource name of the folder or organization we are either creating
|
390
|
-
# the folder under or moving the folder to.
|
391
|
-
# Corresponds to the JSON property `destinationParent`
|
392
|
-
# @return [String]
|
393
|
-
attr_accessor :destination_parent
|
394
|
-
|
395
1052
|
# The type of this operation.
|
396
1053
|
# Corresponds to the JSON property `operationType`
|
397
1054
|
# @return [String]
|
398
1055
|
attr_accessor :operation_type
|
399
1056
|
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
# Update properties of this object
|
405
|
-
def update!(**args)
|
406
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
407
|
-
@source_parent = args[:source_parent] if args.key?(:source_parent)
|
408
|
-
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
409
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
410
|
-
end
|
411
|
-
end
|
1057
|
+
# The display name of the folder.
|
1058
|
+
# Corresponds to the JSON property `displayName`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :display_name
|
412
1061
|
|
413
|
-
|
414
|
-
|
415
|
-
|
1062
|
+
# The resource name of the folder's parent.
|
1063
|
+
# Only applicable when the operation_type is MOVE.
|
1064
|
+
# Corresponds to the JSON property `sourceParent`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :source_parent
|
416
1067
|
|
417
|
-
# The
|
418
|
-
#
|
1068
|
+
# The resource name of the folder or organization we are either creating
|
1069
|
+
# the folder under or moving the folder to.
|
1070
|
+
# Corresponds to the JSON property `destinationParent`
|
419
1071
|
# @return [String]
|
420
|
-
attr_accessor :
|
1072
|
+
attr_accessor :destination_parent
|
421
1073
|
|
422
1074
|
def initialize(**args)
|
423
1075
|
update!(**args)
|
@@ -425,7 +1077,10 @@ module Google
|
|
425
1077
|
|
426
1078
|
# Update properties of this object
|
427
1079
|
def update!(**args)
|
428
|
-
@
|
1080
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
1081
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1082
|
+
@source_parent = args[:source_parent] if args.key?(:source_parent)
|
1083
|
+
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
429
1084
|
end
|
430
1085
|
end
|
431
1086
|
|
@@ -459,9 +1114,56 @@ module Google
|
|
459
1114
|
end
|
460
1115
|
end
|
461
1116
|
|
1117
|
+
# The request sent to the GetEffectiveOrgPolicy method.
|
1118
|
+
class GetEffectiveOrgPolicyRequest
|
1119
|
+
include Google::Apis::Core::Hashable
|
1120
|
+
|
1121
|
+
# The name of the `Constraint` to compute the effective `Policy`.
|
1122
|
+
# Corresponds to the JSON property `constraint`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :constraint
|
1125
|
+
|
1126
|
+
def initialize(**args)
|
1127
|
+
update!(**args)
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# Update properties of this object
|
1131
|
+
def update!(**args)
|
1132
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# The request sent to the ListOrgPolicies method.
|
1137
|
+
class ListOrgPoliciesRequest
|
1138
|
+
include Google::Apis::Core::Hashable
|
1139
|
+
|
1140
|
+
# Page token used to retrieve the next page. This is currently unsupported
|
1141
|
+
# and will be ignored. The server may at any point start using this field.
|
1142
|
+
# Corresponds to the JSON property `pageToken`
|
1143
|
+
# @return [String]
|
1144
|
+
attr_accessor :page_token
|
1145
|
+
|
1146
|
+
# Size of the pages to be returned. This is currently unsupported and will
|
1147
|
+
# be ignored. The server may at any point start using this field to limit
|
1148
|
+
# page size.
|
1149
|
+
# Corresponds to the JSON property `pageSize`
|
1150
|
+
# @return [Fixnum]
|
1151
|
+
attr_accessor :page_size
|
1152
|
+
|
1153
|
+
def initialize(**args)
|
1154
|
+
update!(**args)
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# Update properties of this object
|
1158
|
+
def update!(**args)
|
1159
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1160
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
1161
|
+
end
|
1162
|
+
end
|
1163
|
+
|
462
1164
|
# Specifies the audit configuration for a service.
|
463
|
-
#
|
464
|
-
# any, are exempted from logging.
|
1165
|
+
# The configuration determines which permission types are logged, and what
|
1166
|
+
# identities, if any, are exempted from logging.
|
465
1167
|
# An AuditConifg must have one or more AuditLogConfigs.
|
466
1168
|
# If there are AuditConfigs for both `allServices` and a specific service,
|
467
1169
|
# the union of the two AuditConfigs is used for that service: the log_types
|
@@ -510,7 +1212,7 @@ module Google
|
|
510
1212
|
include Google::Apis::Core::Hashable
|
511
1213
|
|
512
1214
|
# Specifies a service that will be enabled for audit logging.
|
513
|
-
# For example, `
|
1215
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
514
1216
|
# `allServices` is a special value that covers all services.
|
515
1217
|
# Corresponds to the JSON property `service`
|
516
1218
|
# @return [String]
|
@@ -533,17 +1235,23 @@ module Google
|
|
533
1235
|
end
|
534
1236
|
end
|
535
1237
|
|
536
|
-
#
|
537
|
-
class
|
1238
|
+
# The response returned from the `ListOrganizations` method.
|
1239
|
+
class ListOrganizationsResponse
|
538
1240
|
include Google::Apis::Core::Hashable
|
539
1241
|
|
540
|
-
# A
|
541
|
-
#
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
|
1242
|
+
# A pagination token to be used to retrieve the next page of results. If the
|
1243
|
+
# result is too large to fit within the page size specified in the request,
|
1244
|
+
# this field will be set with a token that can be used to fetch the next page
|
1245
|
+
# of results. If this field is empty, it indicates that this response
|
1246
|
+
# contains the last page of results.
|
1247
|
+
# Corresponds to the JSON property `nextPageToken`
|
1248
|
+
# @return [String]
|
1249
|
+
attr_accessor :next_page_token
|
1250
|
+
|
1251
|
+
# The list of Organizations that matched the list query, possibly paginated.
|
1252
|
+
# Corresponds to the JSON property `organizations`
|
1253
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
1254
|
+
attr_accessor :organizations
|
547
1255
|
|
548
1256
|
def initialize(**args)
|
549
1257
|
update!(**args)
|
@@ -551,81 +1259,69 @@ module Google
|
|
551
1259
|
|
552
1260
|
# Update properties of this object
|
553
1261
|
def update!(**args)
|
554
|
-
@
|
1262
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1263
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
555
1264
|
end
|
556
1265
|
end
|
557
1266
|
|
558
|
-
#
|
559
|
-
|
1267
|
+
# A `Constraint` describes a way in which a resource's configuration can be
|
1268
|
+
# restricted. For example, it controls which cloud services can be activated
|
1269
|
+
# across an organization, or whether a Compute Engine instance can have
|
1270
|
+
# serial port connections established. `Constraints` can be configured by the
|
1271
|
+
# organization's policy adminstrator to fit the needs of the organzation by
|
1272
|
+
# setting Policies for `Constraints` at different locations in the
|
1273
|
+
# organization's resource hierarchy. Policies are inherited down the resource
|
1274
|
+
# hierarchy from higher levels, but can also be overridden. For details about
|
1275
|
+
# the inheritance rules please read about
|
1276
|
+
# Policies.
|
1277
|
+
# `Constraints` have a default behavior determined by the `constraint_default`
|
1278
|
+
# field, which is the enforcement behavior that is used in the absence of a
|
1279
|
+
# `Policy` being defined or inherited for the resource in question.
|
1280
|
+
class Constraint
|
560
1281
|
include Google::Apis::Core::Hashable
|
561
1282
|
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
567
|
-
# defined by IAM.
|
568
|
-
# **Example**
|
569
|
-
# `
|
570
|
-
# "bindings": [
|
571
|
-
# `
|
572
|
-
# "role": "roles/owner",
|
573
|
-
# "members": [
|
574
|
-
# "user:mike@example.com",
|
575
|
-
# "group:admins@example.com",
|
576
|
-
# "domain:google.com",
|
577
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
578
|
-
# ]
|
579
|
-
# `,
|
580
|
-
# `
|
581
|
-
# "role": "roles/viewer",
|
582
|
-
# "members": ["user:sean@example.com"]
|
583
|
-
# `
|
584
|
-
# ]
|
585
|
-
# `
|
586
|
-
# For a description of IAM and its features, see the
|
587
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
588
|
-
# Corresponds to the JSON property `policy`
|
589
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
590
|
-
attr_accessor :policy
|
591
|
-
|
592
|
-
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
593
|
-
# the fields in the mask will be modified. If no mask is provided, a default
|
594
|
-
# mask is used:
|
595
|
-
# paths: "bindings, etag"
|
596
|
-
# This field is only used by Cloud IAM.
|
597
|
-
# Corresponds to the JSON property `updateMask`
|
1283
|
+
# Detailed description of what this `Constraint` controls as well as how and
|
1284
|
+
# where it is enforced.
|
1285
|
+
# Mutable.
|
1286
|
+
# Corresponds to the JSON property `description`
|
598
1287
|
# @return [String]
|
599
|
-
attr_accessor :
|
1288
|
+
attr_accessor :description
|
600
1289
|
|
601
|
-
|
602
|
-
|
603
|
-
|
1290
|
+
# The human readable name.
|
1291
|
+
# Mutable.
|
1292
|
+
# Corresponds to the JSON property `displayName`
|
1293
|
+
# @return [String]
|
1294
|
+
attr_accessor :display_name
|
604
1295
|
|
605
|
-
#
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
1296
|
+
# A `Constraint` that is either enforced or not.
|
1297
|
+
# For example a constraint `constraints/compute.disableSerialPortAccess`.
|
1298
|
+
# If it is enforced on a VM instance, serial port connections will not be
|
1299
|
+
# opened to that instance.
|
1300
|
+
# Corresponds to the JSON property `booleanConstraint`
|
1301
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::BooleanConstraint]
|
1302
|
+
attr_accessor :boolean_constraint
|
611
1303
|
|
612
|
-
|
613
|
-
|
614
|
-
|
1304
|
+
# The evaluation behavior of this constraint in the absense of 'Policy'.
|
1305
|
+
# Corresponds to the JSON property `constraintDefault`
|
1306
|
+
# @return [String]
|
1307
|
+
attr_accessor :constraint_default
|
615
1308
|
|
616
|
-
#
|
617
|
-
#
|
618
|
-
#
|
619
|
-
# of results. If this field is empty, it indicates that this response
|
620
|
-
# contains the last page of results.
|
621
|
-
# Corresponds to the JSON property `nextPageToken`
|
1309
|
+
# Immutable value, required to globally be unique. For example,
|
1310
|
+
# `constraints/serviceuser.services`
|
1311
|
+
# Corresponds to the JSON property `name`
|
622
1312
|
# @return [String]
|
623
|
-
attr_accessor :
|
1313
|
+
attr_accessor :name
|
624
1314
|
|
625
|
-
#
|
626
|
-
#
|
627
|
-
#
|
628
|
-
|
1315
|
+
# A `Constraint` that allows or disallows a list of string values, which are
|
1316
|
+
# configured by an Organization's policy administrator with a `Policy`.
|
1317
|
+
# Corresponds to the JSON property `listConstraint`
|
1318
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListConstraint]
|
1319
|
+
attr_accessor :list_constraint
|
1320
|
+
|
1321
|
+
# Version of the `Constraint`. Default version is 0;
|
1322
|
+
# Corresponds to the JSON property `version`
|
1323
|
+
# @return [Fixnum]
|
1324
|
+
attr_accessor :version
|
629
1325
|
|
630
1326
|
def initialize(**args)
|
631
1327
|
update!(**args)
|
@@ -633,8 +1329,13 @@ module Google
|
|
633
1329
|
|
634
1330
|
# Update properties of this object
|
635
1331
|
def update!(**args)
|
636
|
-
@
|
637
|
-
@
|
1332
|
+
@description = args[:description] if args.key?(:description)
|
1333
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1334
|
+
@boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
|
1335
|
+
@constraint_default = args[:constraint_default] if args.key?(:constraint_default)
|
1336
|
+
@name = args[:name] if args.key?(:name)
|
1337
|
+
@list_constraint = args[:list_constraint] if args.key?(:list_constraint)
|
1338
|
+
@version = args[:version] if args.key?(:version)
|
638
1339
|
end
|
639
1340
|
end
|
640
1341
|
|
@@ -678,91 +1379,18 @@ module Google
|
|
678
1379
|
end
|
679
1380
|
end
|
680
1381
|
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
# `
|
687
|
-
#
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
end
|
694
|
-
|
695
|
-
# Update properties of this object
|
696
|
-
def update!(**args)
|
697
|
-
end
|
698
|
-
end
|
699
|
-
|
700
|
-
# The root node in the resource hierarchy to which a particular entity's
|
701
|
-
# (e.g., company) resources belong.
|
702
|
-
class Organization
|
703
|
-
include Google::Apis::Core::Hashable
|
704
|
-
|
705
|
-
# The entity that owns an Organization. The lifetime of the Organization and
|
706
|
-
# all of its descendants are bound to the `OrganizationOwner`. If the
|
707
|
-
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
708
|
-
# be deleted.
|
709
|
-
# Corresponds to the JSON property `owner`
|
710
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
711
|
-
attr_accessor :owner
|
712
|
-
|
713
|
-
# Output Only. The resource name of the organization. This is the
|
714
|
-
# organization's relative path in the API. Its format is
|
715
|
-
# "organizations/[organization_id]". For example, "organizations/1234".
|
716
|
-
# Corresponds to the JSON property `name`
|
717
|
-
# @return [String]
|
718
|
-
attr_accessor :name
|
719
|
-
|
720
|
-
# An immutable id for the Organization that is assigned on creation. This
|
721
|
-
# should be omitted when creating a new Organization.
|
722
|
-
# This field is read-only.
|
723
|
-
# This field is deprecated and will be removed in v1. Use name instead.
|
724
|
-
# Corresponds to the JSON property `organizationId`
|
725
|
-
# @return [String]
|
726
|
-
attr_accessor :organization_id
|
727
|
-
|
728
|
-
# The organization's current lifecycle state. Assigned by the server.
|
729
|
-
# @OutputOnly
|
730
|
-
# Corresponds to the JSON property `lifecycleState`
|
731
|
-
# @return [String]
|
732
|
-
attr_accessor :lifecycle_state
|
733
|
-
|
734
|
-
# A friendly string to be used to refer to the Organization in the UI.
|
735
|
-
# Assigned by the server, set to the primary domain of the G Suite
|
736
|
-
# customer that owns the organization.
|
737
|
-
# @OutputOnly
|
738
|
-
# Corresponds to the JSON property `displayName`
|
739
|
-
# @return [String]
|
740
|
-
attr_accessor :display_name
|
741
|
-
|
742
|
-
# Timestamp when the Organization was created. Assigned by the server.
|
743
|
-
# @OutputOnly
|
744
|
-
# Corresponds to the JSON property `creationTime`
|
745
|
-
# @return [String]
|
746
|
-
attr_accessor :creation_time
|
747
|
-
|
748
|
-
def initialize(**args)
|
749
|
-
update!(**args)
|
750
|
-
end
|
751
|
-
|
752
|
-
# Update properties of this object
|
753
|
-
def update!(**args)
|
754
|
-
@owner = args[:owner] if args.key?(:owner)
|
755
|
-
@name = args[:name] if args.key?(:name)
|
756
|
-
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
757
|
-
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
758
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
759
|
-
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
760
|
-
end
|
761
|
-
end
|
762
|
-
|
763
|
-
# The request sent to the UndeleteProject
|
764
|
-
# method.
|
765
|
-
class UndeleteProjectRequest
|
1382
|
+
# Ignores policies set above this resource and restores the
|
1383
|
+
# `constraint_default` enforcement behavior of the specific `Constraint` at
|
1384
|
+
# this resource.
|
1385
|
+
# Suppose that `constraint_default` is set to `ALLOW` for the
|
1386
|
+
# `Constraint` `constraints/serviceuser.services`. Suppose that organization
|
1387
|
+
# foo.com sets a `Policy` at their Organization resource node that restricts
|
1388
|
+
# the allowed service activations to deny all service activations. They
|
1389
|
+
# could then set a `Policy` with the `policy_type` `restore_default` on
|
1390
|
+
# several experimental projects, restoring the `constraint_default`
|
1391
|
+
# enforcement of the `Constraint` for only those projects, allowing those
|
1392
|
+
# projects to have all services activated.
|
1393
|
+
class RestoreDefault
|
766
1394
|
include Google::Apis::Core::Hashable
|
767
1395
|
|
768
1396
|
def initialize(**args)
|
@@ -774,30 +1402,14 @@ module Google
|
|
774
1402
|
end
|
775
1403
|
end
|
776
1404
|
|
777
|
-
#
|
778
|
-
|
779
|
-
# Project creation have completed.
|
780
|
-
class ProjectCreationStatus
|
1405
|
+
# The request sent to the GetOrgPolicy method.
|
1406
|
+
class GetOrgPolicyRequest
|
781
1407
|
include Google::Apis::Core::Hashable
|
782
1408
|
|
783
|
-
#
|
784
|
-
# Corresponds to the JSON property `
|
1409
|
+
# Name of the `Constraint` to get the `Policy`.
|
1410
|
+
# Corresponds to the JSON property `constraint`
|
785
1411
|
# @return [String]
|
786
|
-
attr_accessor :
|
787
|
-
|
788
|
-
# True if the project can be retrieved using GetProject. No other operations
|
789
|
-
# on the project are guaranteed to work until the project creation is
|
790
|
-
# complete.
|
791
|
-
# Corresponds to the JSON property `gettable`
|
792
|
-
# @return [Boolean]
|
793
|
-
attr_accessor :gettable
|
794
|
-
alias_method :gettable?, :gettable
|
795
|
-
|
796
|
-
# True if the project creation process is complete.
|
797
|
-
# Corresponds to the JSON property `ready`
|
798
|
-
# @return [Boolean]
|
799
|
-
attr_accessor :ready
|
800
|
-
alias_method :ready?, :ready
|
1412
|
+
attr_accessor :constraint
|
801
1413
|
|
802
1414
|
def initialize(**args)
|
803
1415
|
update!(**args)
|
@@ -805,9 +1417,7 @@ module Google
|
|
805
1417
|
|
806
1418
|
# Update properties of this object
|
807
1419
|
def update!(**args)
|
808
|
-
@
|
809
|
-
@gettable = args[:gettable] if args.key?(:gettable)
|
810
|
-
@ready = args[:ready] if args.key?(:ready)
|
1420
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
811
1421
|
end
|
812
1422
|
end
|
813
1423
|
end
|