google-api-client 0.9.25 → 0.9.26
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 +279 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.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 +419 -419
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
- data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
- data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
- data/generated/google/apis/genomics_v1/representations.rb +461 -526
- data/generated/google/apis/genomics_v1/service.rb +1203 -1105
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +230 -230
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +744 -744
- data/generated/google/apis/monitoring_v3/representations.rb +164 -164
- data/generated/google/apis/monitoring_v3/service.rb +335 -335
- 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 +325 -325
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +256 -256
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
- data/generated/google/apis/sheets_v4/representations.rb +833 -833
- data/generated/google/apis/sheets_v4/service.rb +184 -184
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
- data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
- data/generated/google/apis/speech_v1beta1/service.rb +71 -71
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +861 -859
- data/generated/google/apis/vision_v1/representations.rb +140 -140
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
- data/lib/google/apis/version.rb +1 -1
- metadata +9 -1
@@ -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 and manage your data across Google Cloud Platform services
|
32
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
29
|
+
REVISION = '20170125'
|
33
30
|
|
34
31
|
# View your data across Google Cloud Platform services
|
35
32
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
33
|
+
|
34
|
+
# View and manage your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -22,14 +22,17 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudresourcemanagerV1beta1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Identifying information for a single ancestor of a project.
|
26
|
+
class Ancestor
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
|
29
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
30
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
31
|
+
# interact with through one of our API's. Some examples are an AppEngine app,
|
32
|
+
# a Compute Engine instance, a Cloud SQL database, and so on.
|
33
|
+
# Corresponds to the JSON property `resourceId`
|
34
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
35
|
+
attr_accessor :resource_id
|
33
36
|
|
34
37
|
def initialize(**args)
|
35
38
|
update!(**args)
|
@@ -37,52 +40,43 @@ module Google
|
|
37
40
|
|
38
41
|
# Update properties of this object
|
39
42
|
def update!(**args)
|
40
|
-
@
|
43
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
41
44
|
end
|
42
45
|
end
|
43
46
|
|
44
|
-
#
|
45
|
-
|
46
|
-
# method.
|
47
|
-
# A paginated response where more pages are available has
|
48
|
-
# `next_page_token` set. This token can be used in a subsequent request to
|
49
|
-
# retrieve the next request page.
|
50
|
-
class ListProjectsResponse
|
47
|
+
# Request message for `SetIamPolicy` method.
|
48
|
+
class SetIamPolicyRequest
|
51
49
|
include Google::Apis::Core::Hashable
|
52
50
|
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
|
58
|
-
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
# @
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
#
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
# The request sent to the UndeleteProject
|
83
|
-
# method.
|
84
|
-
class UndeleteProjectRequest
|
85
|
-
include Google::Apis::Core::Hashable
|
51
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
52
|
+
# specify access control policies for Cloud Platform resources.
|
53
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
54
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
55
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
56
|
+
# defined by IAM.
|
57
|
+
# **Example**
|
58
|
+
# `
|
59
|
+
# "bindings": [
|
60
|
+
# `
|
61
|
+
# "role": "roles/owner",
|
62
|
+
# "members": [
|
63
|
+
# "user:mike@example.com",
|
64
|
+
# "group:admins@example.com",
|
65
|
+
# "domain:google.com",
|
66
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
67
|
+
# ]
|
68
|
+
# `,
|
69
|
+
# `
|
70
|
+
# "role": "roles/viewer",
|
71
|
+
# "members": ["user:sean@example.com"]
|
72
|
+
# `
|
73
|
+
# ]
|
74
|
+
# `
|
75
|
+
# For a description of IAM and its features, see the
|
76
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
77
|
+
# Corresponds to the JSON property `policy`
|
78
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
79
|
+
attr_accessor :policy
|
86
80
|
|
87
81
|
def initialize(**args)
|
88
82
|
update!(**args)
|
@@ -90,34 +84,27 @@ module Google
|
|
90
84
|
|
91
85
|
# Update properties of this object
|
92
86
|
def update!(**args)
|
87
|
+
@policy = args[:policy] if args.key?(:policy)
|
93
88
|
end
|
94
89
|
end
|
95
90
|
|
96
|
-
#
|
97
|
-
class
|
91
|
+
# The response returned from the `ListOrganizations` method.
|
92
|
+
class ListOrganizationsResponse
|
98
93
|
include Google::Apis::Core::Hashable
|
99
94
|
|
100
|
-
# The
|
101
|
-
# Corresponds to the JSON property `
|
102
|
-
# @return [
|
103
|
-
attr_accessor :
|
104
|
-
|
105
|
-
# The resource name of the folder's parent.
|
106
|
-
# Only applicable when the operation_type is MOVE.
|
107
|
-
# Corresponds to the JSON property `sourceParent`
|
108
|
-
# @return [String]
|
109
|
-
attr_accessor :source_parent
|
110
|
-
|
111
|
-
# The resource name of the folder or organization we are either creating
|
112
|
-
# the folder under or moving the folder to.
|
113
|
-
# Corresponds to the JSON property `destinationParent`
|
114
|
-
# @return [String]
|
115
|
-
attr_accessor :destination_parent
|
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
|
116
99
|
|
117
|
-
#
|
118
|
-
#
|
100
|
+
# A pagination token to be used to retrieve the next page of results. If the
|
101
|
+
# result is too large to fit within the page size specified in the request,
|
102
|
+
# this field will be set with a token that can be used to fetch the next page
|
103
|
+
# of results. If this field is empty, it indicates that this response
|
104
|
+
# contains the last page of results.
|
105
|
+
# Corresponds to the JSON property `nextPageToken`
|
119
106
|
# @return [String]
|
120
|
-
attr_accessor :
|
107
|
+
attr_accessor :next_page_token
|
121
108
|
|
122
109
|
def initialize(**args)
|
123
110
|
update!(**args)
|
@@ -125,87 +112,81 @@ module Google
|
|
125
112
|
|
126
113
|
# Update properties of this object
|
127
114
|
def update!(**args)
|
128
|
-
@
|
129
|
-
@
|
130
|
-
@destination_parent = args[:destination_parent] if args.key?(:destination_parent)
|
131
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
115
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
116
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
132
117
|
end
|
133
118
|
end
|
134
119
|
|
135
|
-
#
|
136
|
-
class
|
120
|
+
# Associates `members` with a `role`.
|
121
|
+
class Binding
|
137
122
|
include Google::Apis::Core::Hashable
|
138
123
|
|
124
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
125
|
+
# `members` can have the following values:
|
126
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
127
|
+
# on the internet; with or without a Google account.
|
128
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
129
|
+
# who is authenticated with a Google account or a service account.
|
130
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
131
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
132
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
133
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
134
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
135
|
+
# For example, `admins@example.com`.
|
136
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
137
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
138
|
+
# Corresponds to the JSON property `members`
|
139
|
+
# @return [Array<String>]
|
140
|
+
attr_accessor :members
|
141
|
+
|
142
|
+
# Role that is assigned to `members`.
|
143
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
144
|
+
# Required
|
145
|
+
# Corresponds to the JSON property `role`
|
146
|
+
# @return [String]
|
147
|
+
attr_accessor :role
|
148
|
+
|
139
149
|
def initialize(**args)
|
140
150
|
update!(**args)
|
141
151
|
end
|
142
152
|
|
143
153
|
# Update properties of this object
|
144
154
|
def update!(**args)
|
155
|
+
@members = args[:members] if args.key?(:members)
|
156
|
+
@role = args[:role] if args.key?(:role)
|
145
157
|
end
|
146
158
|
end
|
147
159
|
|
148
|
-
#
|
149
|
-
|
160
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
161
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
162
|
+
# or the response type of an API method. For instance:
|
163
|
+
# service Foo `
|
164
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
165
|
+
# `
|
166
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
167
|
+
class Empty
|
150
168
|
include Google::Apis::Core::Hashable
|
151
169
|
|
152
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
153
|
-
# specify access control policies for Cloud Platform resources.
|
154
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
155
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
156
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
157
|
-
# defined by IAM.
|
158
|
-
# **Example**
|
159
|
-
# `
|
160
|
-
# "bindings": [
|
161
|
-
# `
|
162
|
-
# "role": "roles/owner",
|
163
|
-
# "members": [
|
164
|
-
# "user:mike@example.com",
|
165
|
-
# "group:admins@example.com",
|
166
|
-
# "domain:google.com",
|
167
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
168
|
-
# ]
|
169
|
-
# `,
|
170
|
-
# `
|
171
|
-
# "role": "roles/viewer",
|
172
|
-
# "members": ["user:sean@example.com"]
|
173
|
-
# `
|
174
|
-
# ]
|
175
|
-
# `
|
176
|
-
# For a description of IAM and its features, see the
|
177
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
178
|
-
# Corresponds to the JSON property `policy`
|
179
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
180
|
-
attr_accessor :policy
|
181
|
-
|
182
170
|
def initialize(**args)
|
183
171
|
update!(**args)
|
184
172
|
end
|
185
173
|
|
186
174
|
# Update properties of this object
|
187
175
|
def update!(**args)
|
188
|
-
@policy = args[:policy] if args.key?(:policy)
|
189
176
|
end
|
190
177
|
end
|
191
178
|
|
192
|
-
#
|
193
|
-
|
179
|
+
# The request sent to the UndeleteProject
|
180
|
+
# method.
|
181
|
+
class UndeleteProjectRequest
|
194
182
|
include Google::Apis::Core::Hashable
|
195
183
|
|
196
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
197
|
-
# allowed.
|
198
|
-
# Corresponds to the JSON property `permissions`
|
199
|
-
# @return [Array<String>]
|
200
|
-
attr_accessor :permissions
|
201
|
-
|
202
184
|
def initialize(**args)
|
203
185
|
update!(**args)
|
204
186
|
end
|
205
187
|
|
206
188
|
# Update properties of this object
|
207
189
|
def update!(**args)
|
208
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
209
190
|
end
|
210
191
|
end
|
211
192
|
|
@@ -214,6 +195,29 @@ module Google
|
|
214
195
|
class Organization
|
215
196
|
include Google::Apis::Core::Hashable
|
216
197
|
|
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
|
+
# An immutable id for the Organization that is assigned on creation. This
|
214
|
+
# should be omitted when creating a new Organization.
|
215
|
+
# This field is read-only.
|
216
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
217
|
+
# Corresponds to the JSON property `organizationId`
|
218
|
+
# @return [String]
|
219
|
+
attr_accessor :organization_id
|
220
|
+
|
217
221
|
# The organization's current lifecycle state. Assigned by the server.
|
218
222
|
# @OutputOnly
|
219
223
|
# Corresponds to the JSON property `lifecycleState`
|
@@ -228,113 +232,24 @@ module Google
|
|
228
232
|
# @return [String]
|
229
233
|
attr_accessor :display_name
|
230
234
|
|
231
|
-
# An immutable id for the Organization that is assigned on creation. This
|
232
|
-
# should be omitted when creating a new Organization.
|
233
|
-
# This field is read-only.
|
234
|
-
# This field is deprecated and will be removed in v1. Use name instead.
|
235
|
-
# Corresponds to the JSON property `organizationId`
|
236
|
-
# @return [String]
|
237
|
-
attr_accessor :organization_id
|
238
|
-
|
239
|
-
# Output Only. The resource name of the organization. This is the
|
240
|
-
# organization's relative path in the API. Its format is
|
241
|
-
# "organizations/[organization_id]". For example, "organizations/1234".
|
242
|
-
# Corresponds to the JSON property `name`
|
243
|
-
# @return [String]
|
244
|
-
attr_accessor :name
|
245
|
-
|
246
235
|
# Timestamp when the Organization was created. Assigned by the server.
|
247
236
|
# @OutputOnly
|
248
237
|
# Corresponds to the JSON property `creationTime`
|
249
238
|
# @return [String]
|
250
239
|
attr_accessor :creation_time
|
251
240
|
|
252
|
-
# The entity that owns an Organization. The lifetime of the Organization and
|
253
|
-
# all of its descendants are bound to the `OrganizationOwner`. If the
|
254
|
-
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
255
|
-
# be deleted.
|
256
|
-
# Corresponds to the JSON property `owner`
|
257
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
258
|
-
attr_accessor :owner
|
259
|
-
|
260
241
|
def initialize(**args)
|
261
242
|
update!(**args)
|
262
243
|
end
|
263
244
|
|
264
245
|
# Update properties of this object
|
265
246
|
def update!(**args)
|
247
|
+
@owner = args[:owner] if args.key?(:owner)
|
248
|
+
@name = args[:name] if args.key?(:name)
|
249
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
266
250
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
267
251
|
@display_name = args[:display_name] if args.key?(:display_name)
|
268
|
-
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
269
|
-
@name = args[:name] if args.key?(:name)
|
270
252
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
271
|
-
@owner = args[:owner] if args.key?(:owner)
|
272
|
-
end
|
273
|
-
end
|
274
|
-
|
275
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
276
|
-
# specify access control policies for Cloud Platform resources.
|
277
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
278
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
279
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
280
|
-
# defined by IAM.
|
281
|
-
# **Example**
|
282
|
-
# `
|
283
|
-
# "bindings": [
|
284
|
-
# `
|
285
|
-
# "role": "roles/owner",
|
286
|
-
# "members": [
|
287
|
-
# "user:mike@example.com",
|
288
|
-
# "group:admins@example.com",
|
289
|
-
# "domain:google.com",
|
290
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
291
|
-
# ]
|
292
|
-
# `,
|
293
|
-
# `
|
294
|
-
# "role": "roles/viewer",
|
295
|
-
# "members": ["user:sean@example.com"]
|
296
|
-
# `
|
297
|
-
# ]
|
298
|
-
# `
|
299
|
-
# For a description of IAM and its features, see the
|
300
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
301
|
-
class Policy
|
302
|
-
include Google::Apis::Core::Hashable
|
303
|
-
|
304
|
-
# Associates a list of `members` to a `role`.
|
305
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
306
|
-
# `bindings` with no members will result in an error.
|
307
|
-
# Corresponds to the JSON property `bindings`
|
308
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
309
|
-
attr_accessor :bindings
|
310
|
-
|
311
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
312
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
313
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
314
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
315
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
316
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
317
|
-
# ensure that their change will be applied to the same version of the policy.
|
318
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
319
|
-
# policy is overwritten blindly.
|
320
|
-
# Corresponds to the JSON property `etag`
|
321
|
-
# @return [String]
|
322
|
-
attr_accessor :etag
|
323
|
-
|
324
|
-
# Version of the `Policy`. The default version is 0.
|
325
|
-
# Corresponds to the JSON property `version`
|
326
|
-
# @return [Fixnum]
|
327
|
-
attr_accessor :version
|
328
|
-
|
329
|
-
def initialize(**args)
|
330
|
-
update!(**args)
|
331
|
-
end
|
332
|
-
|
333
|
-
# Update properties of this object
|
334
|
-
def update!(**args)
|
335
|
-
@bindings = args[:bindings] if args.key?(:bindings)
|
336
|
-
@etag = args[:etag] if args.key?(:etag)
|
337
|
-
@version = args[:version] if args.key?(:version)
|
338
253
|
end
|
339
254
|
end
|
340
255
|
|
@@ -344,11 +259,10 @@ module Google
|
|
344
259
|
class ProjectCreationStatus
|
345
260
|
include Google::Apis::Core::Hashable
|
346
261
|
|
347
|
-
#
|
348
|
-
# Corresponds to the JSON property `
|
349
|
-
# @return [
|
350
|
-
attr_accessor :
|
351
|
-
alias_method :ready?, :ready
|
262
|
+
# Creation time of the project creation workflow.
|
263
|
+
# Corresponds to the JSON property `createTime`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :create_time
|
352
266
|
|
353
267
|
# True if the project can be retrieved using GetProject. No other operations
|
354
268
|
# on the project are guaranteed to work until the project creation is
|
@@ -358,10 +272,11 @@ module Google
|
|
358
272
|
attr_accessor :gettable
|
359
273
|
alias_method :gettable?, :gettable
|
360
274
|
|
361
|
-
#
|
362
|
-
# Corresponds to the JSON property `
|
363
|
-
# @return [
|
364
|
-
attr_accessor :
|
275
|
+
# True if the project creation process is complete.
|
276
|
+
# Corresponds to the JSON property `ready`
|
277
|
+
# @return [Boolean]
|
278
|
+
attr_accessor :ready
|
279
|
+
alias_method :ready?, :ready
|
365
280
|
|
366
281
|
def initialize(**args)
|
367
282
|
update!(**args)
|
@@ -369,20 +284,18 @@ module Google
|
|
369
284
|
|
370
285
|
# Update properties of this object
|
371
286
|
def update!(**args)
|
372
|
-
@ready = args[:ready] if args.key?(:ready)
|
373
|
-
@gettable = args[:gettable] if args.key?(:gettable)
|
374
287
|
@create_time = args[:create_time] if args.key?(:create_time)
|
288
|
+
@gettable = args[:gettable] if args.key?(:gettable)
|
289
|
+
@ready = args[:ready] if args.key?(:ready)
|
375
290
|
end
|
376
291
|
end
|
377
292
|
|
378
|
-
#
|
379
|
-
class
|
293
|
+
# Response message for `TestIamPermissions` method.
|
294
|
+
class TestIamPermissionsResponse
|
380
295
|
include Google::Apis::Core::Hashable
|
381
296
|
|
382
|
-
#
|
383
|
-
#
|
384
|
-
# information see
|
385
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
297
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
298
|
+
# allowed.
|
386
299
|
# Corresponds to the JSON property `permissions`
|
387
300
|
# @return [Array<String>]
|
388
301
|
attr_accessor :permissions
|
@@ -397,39 +310,8 @@ module Google
|
|
397
310
|
end
|
398
311
|
end
|
399
312
|
|
400
|
-
#
|
401
|
-
class
|
402
|
-
include Google::Apis::Core::Hashable
|
403
|
-
|
404
|
-
# The list of Organizations that matched the list query, possibly paginated.
|
405
|
-
# Corresponds to the JSON property `organizations`
|
406
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
407
|
-
attr_accessor :organizations
|
408
|
-
|
409
|
-
# A pagination token to be used to retrieve the next page of results. If the
|
410
|
-
# result is too large to fit within the page size specified in the request,
|
411
|
-
# this field will be set with a token that can be used to fetch the next page
|
412
|
-
# of results. If this field is empty, it indicates that this response
|
413
|
-
# contains the last page of results.
|
414
|
-
# Corresponds to the JSON property `nextPageToken`
|
415
|
-
# @return [String]
|
416
|
-
attr_accessor :next_page_token
|
417
|
-
|
418
|
-
def initialize(**args)
|
419
|
-
update!(**args)
|
420
|
-
end
|
421
|
-
|
422
|
-
# Update properties of this object
|
423
|
-
def update!(**args)
|
424
|
-
@organizations = args[:organizations] if args.key?(:organizations)
|
425
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
426
|
-
end
|
427
|
-
end
|
428
|
-
|
429
|
-
# The request sent to the
|
430
|
-
# GetAncestry
|
431
|
-
# method.
|
432
|
-
class GetAncestryRequest
|
313
|
+
# Request message for `GetIamPolicy` method.
|
314
|
+
class GetIamPolicyRequest
|
433
315
|
include Google::Apis::Core::Hashable
|
434
316
|
|
435
317
|
def initialize(**args)
|
@@ -462,36 +344,54 @@ module Google
|
|
462
344
|
end
|
463
345
|
end
|
464
346
|
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
|
470
|
-
# `
|
471
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
472
|
-
class Empty
|
347
|
+
# The entity that owns an Organization. The lifetime of the Organization and
|
348
|
+
# all of its descendants are bound to the `OrganizationOwner`. If the
|
349
|
+
# `OrganizationOwner` is deleted, the Organization and all its descendants will
|
350
|
+
# be deleted.
|
351
|
+
class OrganizationOwner
|
473
352
|
include Google::Apis::Core::Hashable
|
474
353
|
|
354
|
+
# The Google for Work customer id used in the Directory API.
|
355
|
+
# Corresponds to the JSON property `directoryCustomerId`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :directory_customer_id
|
358
|
+
|
475
359
|
def initialize(**args)
|
476
360
|
update!(**args)
|
477
361
|
end
|
478
362
|
|
479
363
|
# Update properties of this object
|
480
364
|
def update!(**args)
|
365
|
+
@directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
|
481
366
|
end
|
482
367
|
end
|
483
368
|
|
484
|
-
#
|
485
|
-
|
369
|
+
# A page of the response received from the
|
370
|
+
# ListProjects
|
371
|
+
# method.
|
372
|
+
# A paginated response where more pages are available has
|
373
|
+
# `next_page_token` set. This token can be used in a subsequent request to
|
374
|
+
# retrieve the next request page.
|
375
|
+
class ListProjectsResponse
|
486
376
|
include Google::Apis::Core::Hashable
|
487
377
|
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
|
493
|
-
|
494
|
-
|
378
|
+
# The list of Projects that matched the list filter. This list can
|
379
|
+
# be paginated.
|
380
|
+
# Corresponds to the JSON property `projects`
|
381
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
|
382
|
+
attr_accessor :projects
|
383
|
+
|
384
|
+
# Pagination token.
|
385
|
+
# If the result set is too large to fit in a single response, this token
|
386
|
+
# is returned. It encodes the position of the current result cursor.
|
387
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
388
|
+
# gives the next page of the results.
|
389
|
+
# When `next_page_token` is not filled in, there is no next page and
|
390
|
+
# the list returned is the last page in the result set.
|
391
|
+
# Pagination tokens have a limited lifetime.
|
392
|
+
# Corresponds to the JSON property `nextPageToken`
|
393
|
+
# @return [String]
|
394
|
+
attr_accessor :next_page_token
|
495
395
|
|
496
396
|
def initialize(**args)
|
497
397
|
update!(**args)
|
@@ -499,37 +399,23 @@ module Google
|
|
499
399
|
|
500
400
|
# Update properties of this object
|
501
401
|
def update!(**args)
|
502
|
-
@
|
402
|
+
@projects = args[:projects] if args.key?(:projects)
|
403
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
503
404
|
end
|
504
405
|
end
|
505
406
|
|
506
|
-
#
|
507
|
-
#
|
508
|
-
#
|
509
|
-
|
510
|
-
class ResourceId
|
407
|
+
# The request sent to the
|
408
|
+
# GetAncestry
|
409
|
+
# method.
|
410
|
+
class GetAncestryRequest
|
511
411
|
include Google::Apis::Core::Hashable
|
512
412
|
|
513
|
-
# Required field representing the resource type this id is for.
|
514
|
-
# At present, the valid types are "project" and "organization".
|
515
|
-
# Corresponds to the JSON property `type`
|
516
|
-
# @return [String]
|
517
|
-
attr_accessor :type
|
518
|
-
|
519
|
-
# Required field for the type-specific id. This should correspond to the id
|
520
|
-
# used in the type-specific API's.
|
521
|
-
# Corresponds to the JSON property `id`
|
522
|
-
# @return [String]
|
523
|
-
attr_accessor :id
|
524
|
-
|
525
413
|
def initialize(**args)
|
526
414
|
update!(**args)
|
527
415
|
end
|
528
416
|
|
529
417
|
# Update properties of this object
|
530
418
|
def update!(**args)
|
531
|
-
@type = args[:type] if args.key?(:type)
|
532
|
-
@id = args[:id] if args.key?(:id)
|
533
419
|
end
|
534
420
|
end
|
535
421
|
|
@@ -539,14 +425,6 @@ module Google
|
|
539
425
|
class Project
|
540
426
|
include Google::Apis::Core::Hashable
|
541
427
|
|
542
|
-
# A container to reference an id for any resource type. A `resource` in Google
|
543
|
-
# Cloud Platform is a generic term for something you (a developer) may want to
|
544
|
-
# interact with through one of our API's. Some examples are an AppEngine app,
|
545
|
-
# a Compute Engine instance, a Cloud SQL database, and so on.
|
546
|
-
# Corresponds to the JSON property `parent`
|
547
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
548
|
-
attr_accessor :parent
|
549
|
-
|
550
428
|
# The labels associated with this Project.
|
551
429
|
# Label keys must be between 1 and 63 characters long and must conform
|
552
430
|
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
|
@@ -561,12 +439,6 @@ module Google
|
|
561
439
|
# @return [Hash<String,String>]
|
562
440
|
attr_accessor :labels
|
563
441
|
|
564
|
-
# The Project lifecycle state.
|
565
|
-
# Read-only.
|
566
|
-
# Corresponds to the JSON property `lifecycleState`
|
567
|
-
# @return [String]
|
568
|
-
attr_accessor :lifecycle_state
|
569
|
-
|
570
442
|
# Creation time.
|
571
443
|
# Read-only.
|
572
444
|
# Corresponds to the JSON property `createTime`
|
@@ -583,13 +455,6 @@ module Google
|
|
583
455
|
# @return [String]
|
584
456
|
attr_accessor :name
|
585
457
|
|
586
|
-
# The number uniquely identifying the project.
|
587
|
-
# Example: <code>415104041262</code>
|
588
|
-
# Read-only.
|
589
|
-
# Corresponds to the JSON property `projectNumber`
|
590
|
-
# @return [String]
|
591
|
-
attr_accessor :project_number
|
592
|
-
|
593
458
|
# The unique, user-assigned ID of the Project.
|
594
459
|
# It must be 6 to 30 lowercase letters, digits, or hyphens.
|
595
460
|
# It must start with a letter.
|
@@ -600,50 +465,73 @@ module Google
|
|
600
465
|
# @return [String]
|
601
466
|
attr_accessor :project_id
|
602
467
|
|
468
|
+
# The Project lifecycle state.
|
469
|
+
# Read-only.
|
470
|
+
# Corresponds to the JSON property `lifecycleState`
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :lifecycle_state
|
473
|
+
|
474
|
+
# The number uniquely identifying the project.
|
475
|
+
# Example: <code>415104041262</code>
|
476
|
+
# Read-only.
|
477
|
+
# Corresponds to the JSON property `projectNumber`
|
478
|
+
# @return [String]
|
479
|
+
attr_accessor :project_number
|
480
|
+
|
481
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
482
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
483
|
+
# interact with through one of our API's. Some examples are an AppEngine app,
|
484
|
+
# a Compute Engine instance, a Cloud SQL database, and so on.
|
485
|
+
# Corresponds to the JSON property `parent`
|
486
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
487
|
+
attr_accessor :parent
|
488
|
+
|
603
489
|
def initialize(**args)
|
604
490
|
update!(**args)
|
605
491
|
end
|
606
492
|
|
607
493
|
# Update properties of this object
|
608
494
|
def update!(**args)
|
609
|
-
@parent = args[:parent] if args.key?(:parent)
|
610
495
|
@labels = args[:labels] if args.key?(:labels)
|
611
|
-
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
612
496
|
@create_time = args[:create_time] if args.key?(:create_time)
|
613
497
|
@name = args[:name] if args.key?(:name)
|
614
|
-
@project_number = args[:project_number] if args.key?(:project_number)
|
615
498
|
@project_id = args[:project_id] if args.key?(:project_id)
|
499
|
+
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
500
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
501
|
+
@parent = args[:parent] if args.key?(:parent)
|
616
502
|
end
|
617
503
|
end
|
618
504
|
|
619
|
-
#
|
620
|
-
class
|
505
|
+
# Request message for `TestIamPermissions` method.
|
506
|
+
class TestIamPermissionsRequest
|
621
507
|
include Google::Apis::Core::Hashable
|
622
508
|
|
623
|
-
#
|
624
|
-
#
|
625
|
-
#
|
626
|
-
#
|
627
|
-
#
|
628
|
-
# who is authenticated with a Google account or a service account.
|
629
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
630
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
631
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
632
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
633
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
634
|
-
# For example, `admins@example.com`.
|
635
|
-
# * `domain:`domain``: A Google Apps domain name that represents all the
|
636
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
637
|
-
# Corresponds to the JSON property `members`
|
509
|
+
# The set of permissions to check for the `resource`. Permissions with
|
510
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
511
|
+
# information see
|
512
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
513
|
+
# Corresponds to the JSON property `permissions`
|
638
514
|
# @return [Array<String>]
|
639
|
-
attr_accessor :
|
515
|
+
attr_accessor :permissions
|
640
516
|
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
517
|
+
def initialize(**args)
|
518
|
+
update!(**args)
|
519
|
+
end
|
520
|
+
|
521
|
+
# Update properties of this object
|
522
|
+
def update!(**args)
|
523
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
524
|
+
end
|
525
|
+
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`
|
645
533
|
# @return [String]
|
646
|
-
attr_accessor :
|
534
|
+
attr_accessor :error_message_id
|
647
535
|
|
648
536
|
def initialize(**args)
|
649
537
|
update!(**args)
|
@@ -651,22 +539,63 @@ module Google
|
|
651
539
|
|
652
540
|
# Update properties of this object
|
653
541
|
def update!(**args)
|
654
|
-
@
|
655
|
-
@role = args[:role] if args.key?(:role)
|
542
|
+
@error_message_id = args[:error_message_id] if args.key?(:error_message_id)
|
656
543
|
end
|
657
544
|
end
|
658
545
|
|
659
|
-
#
|
660
|
-
#
|
661
|
-
# `
|
662
|
-
# be
|
663
|
-
|
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
|
664
573
|
include Google::Apis::Core::Hashable
|
665
574
|
|
666
|
-
#
|
667
|
-
#
|
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`
|
668
585
|
# @return [String]
|
669
|
-
attr_accessor :
|
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
|
670
599
|
|
671
600
|
def initialize(**args)
|
672
601
|
update!(**args)
|
@@ -674,7 +603,78 @@ module Google
|
|
674
603
|
|
675
604
|
# Update properties of this object
|
676
605
|
def update!(**args)
|
677
|
-
@
|
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
678
|
end
|
679
679
|
end
|
680
680
|
end
|