google-api-client 0.9.26 → 0.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/api_names.yaml +36326 -36213
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
- data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
- data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
- data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
- data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
- 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 +583 -583
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +12 -0
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
- data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
- data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.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/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +26 -0
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +38 -2
- data/generated/google/apis/drive_v3.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 +4 -4
- data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
- data/generated/google/apis/genomics_v1/representations.rb +476 -476
- data/generated/google/apis/genomics_v1/service.rb +1038 -1038
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +82 -1
- data/generated/google/apis/gmail_v1/representations.rb +33 -0
- data/generated/google/apis/gmail_v1/service.rb +215 -5
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +446 -343
- data/generated/google/apis/iam_v1/representations.rb +112 -85
- data/generated/google/apis/iam_v1/service.rb +248 -192
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +15 -15
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +396 -396
- data/generated/google/apis/language_v1beta1/representations.rb +97 -97
- data/generated/google/apis/language_v1beta1/service.rb +42 -42
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
- data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
- data/generated/google/apis/logging_v2beta1/service.rb +214 -214
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +551 -551
- data/generated/google/apis/monitoring_v3/representations.rb +123 -123
- data/generated/google/apis/monitoring_v3/service.rb +80 -80
- 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 +3 -3
- data/generated/google/apis/pubsub_v1/classes.rb +391 -391
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +257 -257
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
- data/generated/google/apis/sheets_v4/representations.rb +861 -861
- data/generated/google/apis/sheets_v4/service.rb +191 -191
- data/generated/google/apis/slides_v1.rb +7 -7
- data/generated/google/apis/slides_v1/classes.rb +2726 -2555
- data/generated/google/apis/slides_v1/representations.rb +678 -607
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
- data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
- data/generated/google/apis/speech_v1beta1/service.rb +63 -63
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -3
- data/generated/google/apis/vision_v1/classes.rb +925 -925
- data/generated/google/apis/vision_v1/representations.rb +134 -134
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +234 -1
- data/generated/google/apis/youtube_v3/representations.rb +83 -0
- data/generated/google/apis/youtube_v3/service.rb +55 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
- data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
- data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
- data/lib/google/apis/core/api_command.rb +11 -5
- data/lib/google/apis/core/base_service.rb +7 -5
- data/lib/google/apis/errors.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +28 -28
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
|
27
27
|
module CloudresourcemanagerV1beta1
|
|
28
28
|
VERSION = 'V1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20170201'
|
|
30
30
|
|
|
31
31
|
# View your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
|
@@ -22,6 +22,160 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module CloudresourcemanagerV1beta1
|
|
24
24
|
|
|
25
|
+
# A classification of the Folder Operation error.
|
|
26
|
+
class FolderOperationError
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The type of operation error experienced.
|
|
30
|
+
# Corresponds to the JSON property `errorMessageId`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :error_message_id
|
|
33
|
+
|
|
34
|
+
def initialize(**args)
|
|
35
|
+
update!(**args)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Update properties of this object
|
|
39
|
+
def update!(**args)
|
|
40
|
+
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Metadata describing a long running folder operation
|
|
45
|
+
class FolderOperation
|
|
46
|
+
include Google::Apis::Core::Hashable
|
|
47
|
+
|
|
48
|
+
# The type of this operation.
|
|
49
|
+
# Corresponds to the JSON property `operationType`
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :operation_type
|
|
52
|
+
|
|
53
|
+
# The display name of the folder.
|
|
54
|
+
# Corresponds to the JSON property `displayName`
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :display_name
|
|
57
|
+
|
|
58
|
+
# The resource name of the folder's parent.
|
|
59
|
+
# Only applicable when the operation_type is MOVE.
|
|
60
|
+
# Corresponds to the JSON property `sourceParent`
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :source_parent
|
|
63
|
+
|
|
64
|
+
# The resource name of the folder or organization we are either creating
|
|
65
|
+
# the folder under or moving the folder to.
|
|
66
|
+
# Corresponds to the JSON property `destinationParent`
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :destination_parent
|
|
69
|
+
|
|
70
|
+
def initialize(**args)
|
|
71
|
+
update!(**args)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Update properties of this object
|
|
75
|
+
def update!(**args)
|
|
76
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
77
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
78
|
+
@source_parent = args[:source_parent] if args.key?(:source_parent)
|
|
79
|
+
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
|
84
|
+
# specify access control policies for Cloud Platform resources.
|
|
85
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
|
86
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
|
87
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
|
88
|
+
# defined by IAM.
|
|
89
|
+
# **Example**
|
|
90
|
+
# `
|
|
91
|
+
# "bindings": [
|
|
92
|
+
# `
|
|
93
|
+
# "role": "roles/owner",
|
|
94
|
+
# "members": [
|
|
95
|
+
# "user:mike@example.com",
|
|
96
|
+
# "group:admins@example.com",
|
|
97
|
+
# "domain:google.com",
|
|
98
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
|
99
|
+
# ]
|
|
100
|
+
# `,
|
|
101
|
+
# `
|
|
102
|
+
# "role": "roles/viewer",
|
|
103
|
+
# "members": ["user:sean@example.com"]
|
|
104
|
+
# `
|
|
105
|
+
# ]
|
|
106
|
+
# `
|
|
107
|
+
# For a description of IAM and its features, see the
|
|
108
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
109
|
+
class Policy
|
|
110
|
+
include Google::Apis::Core::Hashable
|
|
111
|
+
|
|
112
|
+
# Associates a list of `members` to a `role`.
|
|
113
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
|
114
|
+
# `bindings` with no members will result in an error.
|
|
115
|
+
# Corresponds to the JSON property `bindings`
|
|
116
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
|
117
|
+
attr_accessor :bindings
|
|
118
|
+
|
|
119
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
|
120
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
|
121
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
|
122
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
|
123
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
124
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
125
|
+
# ensure that their change will be applied to the same version of the policy.
|
|
126
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
127
|
+
# policy is overwritten blindly.
|
|
128
|
+
# Corresponds to the JSON property `etag`
|
|
129
|
+
# @return [String]
|
|
130
|
+
attr_accessor :etag
|
|
131
|
+
|
|
132
|
+
# Version of the `Policy`. The default version is 0.
|
|
133
|
+
# Corresponds to the JSON property `version`
|
|
134
|
+
# @return [Fixnum]
|
|
135
|
+
attr_accessor :version
|
|
136
|
+
|
|
137
|
+
def initialize(**args)
|
|
138
|
+
update!(**args)
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Update properties of this object
|
|
142
|
+
def update!(**args)
|
|
143
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
|
144
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
145
|
+
@version = args[:version] if args.key?(:version)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
|
150
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
|
151
|
+
# interact with through one of our API's. Some examples are an AppEngine app,
|
|
152
|
+
# a Compute Engine instance, a Cloud SQL database, and so on.
|
|
153
|
+
class ResourceId
|
|
154
|
+
include Google::Apis::Core::Hashable
|
|
155
|
+
|
|
156
|
+
# Required field representing the resource type this id is for.
|
|
157
|
+
# At present, the valid types are "project" and "organization".
|
|
158
|
+
# Corresponds to the JSON property `type`
|
|
159
|
+
# @return [String]
|
|
160
|
+
attr_accessor :type
|
|
161
|
+
|
|
162
|
+
# Required field for the type-specific id. This should correspond to the id
|
|
163
|
+
# used in the type-specific API's.
|
|
164
|
+
# Corresponds to the JSON property `id`
|
|
165
|
+
# @return [String]
|
|
166
|
+
attr_accessor :id
|
|
167
|
+
|
|
168
|
+
def initialize(**args)
|
|
169
|
+
update!(**args)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Update properties of this object
|
|
173
|
+
def update!(**args)
|
|
174
|
+
@type = args[:type] if args.key?(:type)
|
|
175
|
+
@id = args[:id] if args.key?(:id)
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
25
179
|
# Identifying information for a single ancestor of a project.
|
|
26
180
|
class Ancestor
|
|
27
181
|
include Google::Apis::Core::Hashable
|
|
@@ -92,11 +246,6 @@ module Google
|
|
|
92
246
|
class ListOrganizationsResponse
|
|
93
247
|
include Google::Apis::Core::Hashable
|
|
94
248
|
|
|
95
|
-
# The list of Organizations that matched the list query, possibly paginated.
|
|
96
|
-
# Corresponds to the JSON property `organizations`
|
|
97
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
|
98
|
-
attr_accessor :organizations
|
|
99
|
-
|
|
100
249
|
# A pagination token to be used to retrieve the next page of results. If the
|
|
101
250
|
# result is too large to fit within the page size specified in the request,
|
|
102
251
|
# this field will be set with a token that can be used to fetch the next page
|
|
@@ -106,14 +255,19 @@ module Google
|
|
|
106
255
|
# @return [String]
|
|
107
256
|
attr_accessor :next_page_token
|
|
108
257
|
|
|
258
|
+
# The list of Organizations that matched the list query, possibly paginated.
|
|
259
|
+
# Corresponds to the JSON property `organizations`
|
|
260
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
|
261
|
+
attr_accessor :organizations
|
|
262
|
+
|
|
109
263
|
def initialize(**args)
|
|
110
264
|
update!(**args)
|
|
111
265
|
end
|
|
112
266
|
|
|
113
267
|
# Update properties of this object
|
|
114
268
|
def update!(**args)
|
|
115
|
-
@organizations = args[:organizations] if args.key?(:organizations)
|
|
116
269
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
270
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
|
117
271
|
end
|
|
118
272
|
end
|
|
119
273
|
|
|
@@ -195,21 +349,6 @@ module Google
|
|
|
195
349
|
class Organization
|
|
196
350
|
include Google::Apis::Core::Hashable
|
|
197
351
|
|
|
198
|
-
# The entity that owns an Organization. The lifetime of the Organization and
|
|
199
|
-
# all of its descendants are bound to the `OrganizationOwner`. If the
|
|
200
|
-
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
|
201
|
-
# be deleted.
|
|
202
|
-
# Corresponds to the JSON property `owner`
|
|
203
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
|
204
|
-
attr_accessor :owner
|
|
205
|
-
|
|
206
|
-
# Output Only. The resource name of the organization. This is the
|
|
207
|
-
# organization's relative path in the API. Its format is
|
|
208
|
-
# "organizations/[organization_id]". For example, "organizations/1234".
|
|
209
|
-
# Corresponds to the JSON property `name`
|
|
210
|
-
# @return [String]
|
|
211
|
-
attr_accessor :name
|
|
212
|
-
|
|
213
352
|
# An immutable id for the Organization that is assigned on creation. This
|
|
214
353
|
# should be omitted when creating a new Organization.
|
|
215
354
|
# This field is read-only.
|
|
@@ -238,18 +377,33 @@ module Google
|
|
|
238
377
|
# @return [String]
|
|
239
378
|
attr_accessor :creation_time
|
|
240
379
|
|
|
380
|
+
# The entity that owns an Organization. The lifetime of the Organization and
|
|
381
|
+
# all of its descendants are bound to the `OrganizationOwner`. If the
|
|
382
|
+
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
|
383
|
+
# be deleted.
|
|
384
|
+
# Corresponds to the JSON property `owner`
|
|
385
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
|
386
|
+
attr_accessor :owner
|
|
387
|
+
|
|
388
|
+
# Output Only. The resource name of the organization. This is the
|
|
389
|
+
# organization's relative path in the API. Its format is
|
|
390
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
|
391
|
+
# Corresponds to the JSON property `name`
|
|
392
|
+
# @return [String]
|
|
393
|
+
attr_accessor :name
|
|
394
|
+
|
|
241
395
|
def initialize(**args)
|
|
242
396
|
update!(**args)
|
|
243
397
|
end
|
|
244
398
|
|
|
245
399
|
# Update properties of this object
|
|
246
400
|
def update!(**args)
|
|
247
|
-
@owner = args[:owner] if args.key?(:owner)
|
|
248
|
-
@name = args[:name] if args.key?(:name)
|
|
249
401
|
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
|
250
402
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
|
251
403
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
252
404
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
|
405
|
+
@owner = args[:owner] if args.key?(:owner)
|
|
406
|
+
@name = args[:name] if args.key?(:name)
|
|
253
407
|
end
|
|
254
408
|
end
|
|
255
409
|
|
|
@@ -290,36 +444,36 @@ module Google
|
|
|
290
444
|
end
|
|
291
445
|
end
|
|
292
446
|
|
|
293
|
-
#
|
|
294
|
-
class
|
|
447
|
+
# Request message for `GetIamPolicy` method.
|
|
448
|
+
class GetIamPolicyRequest
|
|
295
449
|
include Google::Apis::Core::Hashable
|
|
296
450
|
|
|
297
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
298
|
-
# allowed.
|
|
299
|
-
# Corresponds to the JSON property `permissions`
|
|
300
|
-
# @return [Array<String>]
|
|
301
|
-
attr_accessor :permissions
|
|
302
|
-
|
|
303
451
|
def initialize(**args)
|
|
304
452
|
update!(**args)
|
|
305
453
|
end
|
|
306
454
|
|
|
307
455
|
# Update properties of this object
|
|
308
456
|
def update!(**args)
|
|
309
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
|
310
457
|
end
|
|
311
458
|
end
|
|
312
459
|
|
|
313
|
-
#
|
|
314
|
-
class
|
|
460
|
+
# Response message for `TestIamPermissions` method.
|
|
461
|
+
class TestIamPermissionsResponse
|
|
315
462
|
include Google::Apis::Core::Hashable
|
|
316
463
|
|
|
464
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
465
|
+
# allowed.
|
|
466
|
+
# Corresponds to the JSON property `permissions`
|
|
467
|
+
# @return [Array<String>]
|
|
468
|
+
attr_accessor :permissions
|
|
469
|
+
|
|
317
470
|
def initialize(**args)
|
|
318
471
|
update!(**args)
|
|
319
472
|
end
|
|
320
473
|
|
|
321
474
|
# Update properties of this object
|
|
322
475
|
def update!(**args)
|
|
476
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
323
477
|
end
|
|
324
478
|
end
|
|
325
479
|
|
|
@@ -425,6 +579,12 @@ module Google
|
|
|
425
579
|
class Project
|
|
426
580
|
include Google::Apis::Core::Hashable
|
|
427
581
|
|
|
582
|
+
# Creation time.
|
|
583
|
+
# Read-only.
|
|
584
|
+
# Corresponds to the JSON property `createTime`
|
|
585
|
+
# @return [String]
|
|
586
|
+
attr_accessor :create_time
|
|
587
|
+
|
|
428
588
|
# The labels associated with this Project.
|
|
429
589
|
# Label keys must be between 1 and 63 characters long and must conform
|
|
430
590
|
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
|
|
@@ -439,12 +599,6 @@ module Google
|
|
|
439
599
|
# @return [Hash<String,String>]
|
|
440
600
|
attr_accessor :labels
|
|
441
601
|
|
|
442
|
-
# Creation time.
|
|
443
|
-
# Read-only.
|
|
444
|
-
# Corresponds to the JSON property `createTime`
|
|
445
|
-
# @return [String]
|
|
446
|
-
attr_accessor :create_time
|
|
447
|
-
|
|
448
602
|
# The user-assigned display name of the Project.
|
|
449
603
|
# It must be 4 to 30 characters.
|
|
450
604
|
# Allowed characters are: lowercase and uppercase letters, numbers,
|
|
@@ -492,8 +646,8 @@ module Google
|
|
|
492
646
|
|
|
493
647
|
# Update properties of this object
|
|
494
648
|
def update!(**args)
|
|
495
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
496
649
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
650
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
497
651
|
@name = args[:name] if args.key?(:name)
|
|
498
652
|
@project_id = args[:project_id] if args.key?(:project_id)
|
|
499
653
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
|
@@ -523,160 +677,6 @@ module Google
|
|
|
523
677
|
@permissions = args[:permissions] if args.key?(:permissions)
|
|
524
678
|
end
|
|
525
679
|
end
|
|
526
|
-
|
|
527
|
-
# A classification of the Folder Operation error.
|
|
528
|
-
class FolderOperationError
|
|
529
|
-
include Google::Apis::Core::Hashable
|
|
530
|
-
|
|
531
|
-
# The type of operation error experienced.
|
|
532
|
-
# Corresponds to the JSON property `errorMessageId`
|
|
533
|
-
# @return [String]
|
|
534
|
-
attr_accessor :error_message_id
|
|
535
|
-
|
|
536
|
-
def initialize(**args)
|
|
537
|
-
update!(**args)
|
|
538
|
-
end
|
|
539
|
-
|
|
540
|
-
# Update properties of this object
|
|
541
|
-
def update!(**args)
|
|
542
|
-
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
|
543
|
-
end
|
|
544
|
-
end
|
|
545
|
-
|
|
546
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
|
547
|
-
# specify access control policies for Cloud Platform resources.
|
|
548
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
|
549
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
|
550
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
|
551
|
-
# defined by IAM.
|
|
552
|
-
# **Example**
|
|
553
|
-
# `
|
|
554
|
-
# "bindings": [
|
|
555
|
-
# `
|
|
556
|
-
# "role": "roles/owner",
|
|
557
|
-
# "members": [
|
|
558
|
-
# "user:mike@example.com",
|
|
559
|
-
# "group:admins@example.com",
|
|
560
|
-
# "domain:google.com",
|
|
561
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
|
562
|
-
# ]
|
|
563
|
-
# `,
|
|
564
|
-
# `
|
|
565
|
-
# "role": "roles/viewer",
|
|
566
|
-
# "members": ["user:sean@example.com"]
|
|
567
|
-
# `
|
|
568
|
-
# ]
|
|
569
|
-
# `
|
|
570
|
-
# For a description of IAM and its features, see the
|
|
571
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
572
|
-
class Policy
|
|
573
|
-
include Google::Apis::Core::Hashable
|
|
574
|
-
|
|
575
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
|
576
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
|
577
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
|
578
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
|
579
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
580
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
581
|
-
# ensure that their change will be applied to the same version of the policy.
|
|
582
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
583
|
-
# policy is overwritten blindly.
|
|
584
|
-
# Corresponds to the JSON property `etag`
|
|
585
|
-
# @return [String]
|
|
586
|
-
attr_accessor :etag
|
|
587
|
-
|
|
588
|
-
# Version of the `Policy`. The default version is 0.
|
|
589
|
-
# Corresponds to the JSON property `version`
|
|
590
|
-
# @return [Fixnum]
|
|
591
|
-
attr_accessor :version
|
|
592
|
-
|
|
593
|
-
# Associates a list of `members` to a `role`.
|
|
594
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
|
595
|
-
# `bindings` with no members will result in an error.
|
|
596
|
-
# Corresponds to the JSON property `bindings`
|
|
597
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
|
598
|
-
attr_accessor :bindings
|
|
599
|
-
|
|
600
|
-
def initialize(**args)
|
|
601
|
-
update!(**args)
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
# Update properties of this object
|
|
605
|
-
def update!(**args)
|
|
606
|
-
@etag = args[:etag] if args.key?(:etag)
|
|
607
|
-
@version = args[:version] if args.key?(:version)
|
|
608
|
-
@bindings = args[:bindings] if args.key?(:bindings)
|
|
609
|
-
end
|
|
610
|
-
end
|
|
611
|
-
|
|
612
|
-
# Metadata describing a long running folder operation
|
|
613
|
-
class FolderOperation
|
|
614
|
-
include Google::Apis::Core::Hashable
|
|
615
|
-
|
|
616
|
-
# The display name of the folder.
|
|
617
|
-
# Corresponds to the JSON property `displayName`
|
|
618
|
-
# @return [String]
|
|
619
|
-
attr_accessor :display_name
|
|
620
|
-
|
|
621
|
-
# The resource name of the folder's parent.
|
|
622
|
-
# Only applicable when the operation_type is MOVE.
|
|
623
|
-
# Corresponds to the JSON property `sourceParent`
|
|
624
|
-
# @return [String]
|
|
625
|
-
attr_accessor :source_parent
|
|
626
|
-
|
|
627
|
-
# The resource name of the folder or organization we are either creating
|
|
628
|
-
# the folder under or moving the folder to.
|
|
629
|
-
# Corresponds to the JSON property `destinationParent`
|
|
630
|
-
# @return [String]
|
|
631
|
-
attr_accessor :destination_parent
|
|
632
|
-
|
|
633
|
-
# The type of this operation.
|
|
634
|
-
# Corresponds to the JSON property `operationType`
|
|
635
|
-
# @return [String]
|
|
636
|
-
attr_accessor :operation_type
|
|
637
|
-
|
|
638
|
-
def initialize(**args)
|
|
639
|
-
update!(**args)
|
|
640
|
-
end
|
|
641
|
-
|
|
642
|
-
# Update properties of this object
|
|
643
|
-
def update!(**args)
|
|
644
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
645
|
-
@source_parent = args[:source_parent] if args.key?(:source_parent)
|
|
646
|
-
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
|
647
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
648
|
-
end
|
|
649
|
-
end
|
|
650
|
-
|
|
651
|
-
# A container to reference an id for any resource type. A `resource` in Google
|
|
652
|
-
# Cloud Platform is a generic term for something you (a developer) may want to
|
|
653
|
-
# interact with through one of our API's. Some examples are an AppEngine app,
|
|
654
|
-
# a Compute Engine instance, a Cloud SQL database, and so on.
|
|
655
|
-
class ResourceId
|
|
656
|
-
include Google::Apis::Core::Hashable
|
|
657
|
-
|
|
658
|
-
# Required field representing the resource type this id is for.
|
|
659
|
-
# At present, the valid types are "project" and "organization".
|
|
660
|
-
# Corresponds to the JSON property `type`
|
|
661
|
-
# @return [String]
|
|
662
|
-
attr_accessor :type
|
|
663
|
-
|
|
664
|
-
# Required field for the type-specific id. This should correspond to the id
|
|
665
|
-
# used in the type-specific API's.
|
|
666
|
-
# Corresponds to the JSON property `id`
|
|
667
|
-
# @return [String]
|
|
668
|
-
attr_accessor :id
|
|
669
|
-
|
|
670
|
-
def initialize(**args)
|
|
671
|
-
update!(**args)
|
|
672
|
-
end
|
|
673
|
-
|
|
674
|
-
# Update properties of this object
|
|
675
|
-
def update!(**args)
|
|
676
|
-
@type = args[:type] if args.key?(:type)
|
|
677
|
-
@id = args[:id] if args.key?(:id)
|
|
678
|
-
end
|
|
679
|
-
end
|
|
680
680
|
end
|
|
681
681
|
end
|
|
682
682
|
end
|