google-api-client 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +28 -3
- data/api_names.yaml +1 -0
- data/api_names_out.yaml +418 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +2 -3
- data/generated/google/apis/adsense_v1_4/service.rb +1 -2
- data/generated/google/apis/adsensehost_v4_1.rb +3 -3
- data/generated/google/apis/adsensehost_v4_1/service.rb +2 -2
- data/generated/google/apis/analytics_v3.rb +2 -2
- data/generated/google/apis/analytics_v3/classes.rb +42 -0
- data/generated/google/apis/analytics_v3/representations.rb +6 -0
- data/generated/google/apis/analytics_v3/service.rb +3 -3
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +16 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +2 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +200 -13
- data/generated/google/apis/bigquery_v2/representations.rb +54 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +6 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +2 -3
- data/generated/google/apis/cloudbuild_v1/classes.rb +7 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +1 -2
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -1
- data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +26 -6
- data/generated/google/apis/cloudlatencytest_v2.rb +2 -2
- data/generated/google/apis/cloudlatencytest_v2/service.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +2 -2
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +355 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +181 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +373 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/clouduseraccounts_beta.rb +3 -2
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +52 -30
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +1 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +110 -57
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +324 -101
- data/generated/google/apis/compute_beta/representations.rb +78 -0
- data/generated/google/apis/compute_beta/service.rb +1599 -208
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +96 -79
- data/generated/google/apis/compute_v1/service.rb +199 -169
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +6 -0
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/content_v2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +10 -10
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2/service.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/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/games_v1/classes.rb +9 -2
- data/generated/google/apis/games_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1.rb +4 -5
- data/generated/google/apis/genomics_v1/classes.rb +51 -0
- data/generated/google/apis/genomics_v1/representations.rb +17 -0
- data/generated/google/apis/genomics_v1/service.rb +44 -8
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/classes.rb +19 -0
- data/generated/google/apis/gmail_v1/representations.rb +13 -0
- data/generated/google/apis/gmail_v1/service.rb +43 -2
- data/generated/google/apis/iam_v1.rb +36 -0
- data/generated/google/apis/iam_v1/classes.rb +665 -0
- data/generated/google/apis/iam_v1/representations.rb +325 -0
- data/generated/google/apis/iam_v1/service.rb +520 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +306 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +85 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +42 -1
- data/generated/google/apis/pagespeedonline_v2.rb +2 -2
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
- data/generated/google/apis/qpx_express_v1.rb +2 -2
- data/generated/google/apis/qpx_express_v1/service.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +2 -3
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -2
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/site_verification_v1.rb +2 -2
- data/generated/google/apis/site_verification_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +2 -2
- data/generated/google/apis/tagmanager_v1/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -0
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +3 -3
- data/generated/google/apis/youtubereporting_v1/classes.rb +1 -2
- data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
- data/lib/google/apis/core/base_service.rb +84 -6
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +2 -0
- data/spec/google/apis/core/service_spec.rb +66 -0
- metadata +10 -2
@@ -0,0 +1,355 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module CloudresourcemanagerV1
|
24
|
+
|
25
|
+
# A Project is a high-level Google Cloud Platform entity. It is a container for
|
26
|
+
# ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources.
|
27
|
+
class Project
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# The number uniquely identifying the project. Example: 415104041262 Read-only.
|
31
|
+
# Corresponds to the JSON property `projectNumber`
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :project_number
|
34
|
+
|
35
|
+
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
36
|
+
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
37
|
+
# prohibited. Example: tokyo-rain-123 Read-only after creation.
|
38
|
+
# Corresponds to the JSON property `projectId`
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :project_id
|
41
|
+
|
42
|
+
# The Project lifecycle state. Read-only.
|
43
|
+
# Corresponds to the JSON property `lifecycleState`
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :lifecycle_state
|
46
|
+
|
47
|
+
# The user-assigned name of the Project. It must be 4 to 30 characters. Allowed
|
48
|
+
# characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
|
49
|
+
# double-quote, space, and exclamation point. Example: My Project Read-write.
|
50
|
+
# Corresponds to the JSON property `name`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :name
|
53
|
+
|
54
|
+
# Creation time. Read-only.
|
55
|
+
# Corresponds to the JSON property `createTime`
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :create_time
|
58
|
+
|
59
|
+
# The labels associated with this Project. Label keys must be between 1 and 63
|
60
|
+
# characters long and must conform to the following regular expression: \[a-z\](\
|
61
|
+
# [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
|
62
|
+
# and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
63
|
+
# No more than 256 labels can be associated with a given resource. Clients
|
64
|
+
# should store labels in a representation such as JSON that does not depend on
|
65
|
+
# specific characters being disallowed. Example: "environment" : "dev" Read-
|
66
|
+
# write.
|
67
|
+
# Corresponds to the JSON property `labels`
|
68
|
+
# @return [Hash<String,String>]
|
69
|
+
attr_accessor :labels
|
70
|
+
|
71
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
72
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
73
|
+
# interact with through one of our API's. Some examples are an AppEngine app, a
|
74
|
+
# Compute Engine instance, a Cloud SQL database, and so on.
|
75
|
+
# Corresponds to the JSON property `parent`
|
76
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
|
77
|
+
attr_accessor :parent
|
78
|
+
|
79
|
+
def initialize(**args)
|
80
|
+
update!(**args)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Update properties of this object
|
84
|
+
def update!(**args)
|
85
|
+
@project_number = args[:project_number] if args.key?(:project_number)
|
86
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
87
|
+
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
88
|
+
@name = args[:name] if args.key?(:name)
|
89
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
90
|
+
@labels = args[:labels] if args.key?(:labels)
|
91
|
+
@parent = args[:parent] if args.key?(:parent)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
96
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
97
|
+
# interact with through one of our API's. Some examples are an AppEngine app, a
|
98
|
+
# Compute Engine instance, a Cloud SQL database, and so on.
|
99
|
+
class ResourceId
|
100
|
+
include Google::Apis::Core::Hashable
|
101
|
+
|
102
|
+
# Required field representing the resource type this id is for. At present, the
|
103
|
+
# only valid type is "organization".
|
104
|
+
# Corresponds to the JSON property `type`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :type
|
107
|
+
|
108
|
+
# Required field for the type-specific id. This should correspond to the id used
|
109
|
+
# in the type-specific API's.
|
110
|
+
# Corresponds to the JSON property `id`
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :id
|
113
|
+
|
114
|
+
def initialize(**args)
|
115
|
+
update!(**args)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Update properties of this object
|
119
|
+
def update!(**args)
|
120
|
+
@type = args[:type] if args.key?(:type)
|
121
|
+
@id = args[:id] if args.key?(:id)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# A page of the response received from the ListProjects method. A paginated
|
126
|
+
# response where more pages are available has `next_page_token` set. This token
|
127
|
+
# can be used in a subsequent request to retrieve the next request page.
|
128
|
+
class ListProjectsResponse
|
129
|
+
include Google::Apis::Core::Hashable
|
130
|
+
|
131
|
+
# The list of Projects that matched the list filter. This list can be paginated.
|
132
|
+
# Corresponds to the JSON property `projects`
|
133
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
|
134
|
+
attr_accessor :projects
|
135
|
+
|
136
|
+
# Pagination token. If the result set is too large to fit in a single response,
|
137
|
+
# this token is returned. It encodes the position of the current result cursor.
|
138
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
139
|
+
# gives the next page of the results. When `next_page_token` is not filled in,
|
140
|
+
# there is no next page and the list returned is the last page in the result set.
|
141
|
+
# Pagination tokens have a limited lifetime.
|
142
|
+
# Corresponds to the JSON property `nextPageToken`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :next_page_token
|
145
|
+
|
146
|
+
def initialize(**args)
|
147
|
+
update!(**args)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Update properties of this object
|
151
|
+
def update!(**args)
|
152
|
+
@projects = args[:projects] if args.key?(:projects)
|
153
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
158
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
159
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
160
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
161
|
+
# `Empty` is empty JSON object ````.
|
162
|
+
class Empty
|
163
|
+
include Google::Apis::Core::Hashable
|
164
|
+
|
165
|
+
def initialize(**args)
|
166
|
+
update!(**args)
|
167
|
+
end
|
168
|
+
|
169
|
+
# Update properties of this object
|
170
|
+
def update!(**args)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# The request sent to the UndeleteProject method.
|
175
|
+
class UndeleteProjectRequest
|
176
|
+
include Google::Apis::Core::Hashable
|
177
|
+
|
178
|
+
def initialize(**args)
|
179
|
+
update!(**args)
|
180
|
+
end
|
181
|
+
|
182
|
+
# Update properties of this object
|
183
|
+
def update!(**args)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Request message for `GetIamPolicy` method.
|
188
|
+
class GetIamPolicyRequest
|
189
|
+
include Google::Apis::Core::Hashable
|
190
|
+
|
191
|
+
def initialize(**args)
|
192
|
+
update!(**args)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Update properties of this object
|
196
|
+
def update!(**args)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
201
|
+
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
202
|
+
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
203
|
+
# the members can be user accounts, Google groups, Google domains, and service
|
204
|
+
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
205
|
+
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
206
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
207
|
+
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
|
208
|
+
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
209
|
+
# IAM developer's guide](https://cloud.google.com/iam).
|
210
|
+
class Policy
|
211
|
+
include Google::Apis::Core::Hashable
|
212
|
+
|
213
|
+
# Version of the `Policy`. The default version is 0.
|
214
|
+
# Corresponds to the JSON property `version`
|
215
|
+
# @return [Fixnum]
|
216
|
+
attr_accessor :version
|
217
|
+
|
218
|
+
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
|
219
|
+
# specified for the same `role`. `bindings` with no members will result in an
|
220
|
+
# error.
|
221
|
+
# Corresponds to the JSON property `bindings`
|
222
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
|
223
|
+
attr_accessor :bindings
|
224
|
+
|
225
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
226
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
227
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
228
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
229
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
230
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
231
|
+
# applied to the same version of the policy. If no `etag` is provided in the
|
232
|
+
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
|
233
|
+
# Corresponds to the JSON property `etag`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :etag
|
236
|
+
|
237
|
+
def initialize(**args)
|
238
|
+
update!(**args)
|
239
|
+
end
|
240
|
+
|
241
|
+
# Update properties of this object
|
242
|
+
def update!(**args)
|
243
|
+
@version = args[:version] if args.key?(:version)
|
244
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
245
|
+
@etag = args[:etag] if args.key?(:etag)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# Associates `members` with a `role`.
|
250
|
+
class Binding
|
251
|
+
include Google::Apis::Core::Hashable
|
252
|
+
|
253
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
254
|
+
# , or `roles/owner`. Required
|
255
|
+
# Corresponds to the JSON property `role`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :role
|
258
|
+
|
259
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
260
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
261
|
+
# that represents anyone who is on the internet; with or without a Google
|
262
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
263
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
264
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
265
|
+
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
|
266
|
+
# emailid``: An email address that represents a service account. For example, `
|
267
|
+
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
|
268
|
+
# address that represents a Google group. For example, `admins@example.com`. * `
|
269
|
+
# domain:`domain``: A Google Apps domain name that represents all the users of
|
270
|
+
# that domain. For example, `google.com` or `example.com`.
|
271
|
+
# Corresponds to the JSON property `members`
|
272
|
+
# @return [Array<String>]
|
273
|
+
attr_accessor :members
|
274
|
+
|
275
|
+
def initialize(**args)
|
276
|
+
update!(**args)
|
277
|
+
end
|
278
|
+
|
279
|
+
# Update properties of this object
|
280
|
+
def update!(**args)
|
281
|
+
@role = args[:role] if args.key?(:role)
|
282
|
+
@members = args[:members] if args.key?(:members)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# Request message for `SetIamPolicy` method.
|
287
|
+
class SetIamPolicyRequest
|
288
|
+
include Google::Apis::Core::Hashable
|
289
|
+
|
290
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
291
|
+
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
292
|
+
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
293
|
+
# the members can be user accounts, Google groups, Google domains, and service
|
294
|
+
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
295
|
+
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
296
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
297
|
+
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
|
298
|
+
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
299
|
+
# IAM developer's guide](https://cloud.google.com/iam).
|
300
|
+
# Corresponds to the JSON property `policy`
|
301
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
302
|
+
attr_accessor :policy
|
303
|
+
|
304
|
+
def initialize(**args)
|
305
|
+
update!(**args)
|
306
|
+
end
|
307
|
+
|
308
|
+
# Update properties of this object
|
309
|
+
def update!(**args)
|
310
|
+
@policy = args[:policy] if args.key?(:policy)
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# Request message for `TestIamPermissions` method.
|
315
|
+
class TestIamPermissionsRequest
|
316
|
+
include Google::Apis::Core::Hashable
|
317
|
+
|
318
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
319
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see IAM
|
320
|
+
# Overview.
|
321
|
+
# Corresponds to the JSON property `permissions`
|
322
|
+
# @return [Array<String>]
|
323
|
+
attr_accessor :permissions
|
324
|
+
|
325
|
+
def initialize(**args)
|
326
|
+
update!(**args)
|
327
|
+
end
|
328
|
+
|
329
|
+
# Update properties of this object
|
330
|
+
def update!(**args)
|
331
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
# Response message for `TestIamPermissions` method.
|
336
|
+
class TestIamPermissionsResponse
|
337
|
+
include Google::Apis::Core::Hashable
|
338
|
+
|
339
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
340
|
+
# Corresponds to the JSON property `permissions`
|
341
|
+
# @return [Array<String>]
|
342
|
+
attr_accessor :permissions
|
343
|
+
|
344
|
+
def initialize(**args)
|
345
|
+
update!(**args)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Update properties of this object
|
349
|
+
def update!(**args)
|
350
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
351
|
+
end
|
352
|
+
end
|
353
|
+
end
|
354
|
+
end
|
355
|
+
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module CloudresourcemanagerV1
|
24
|
+
|
25
|
+
class Project
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ResourceId
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ListProjectsResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Empty
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class UndeleteProjectRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GetIamPolicyRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Policy
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Binding
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class SetIamPolicyRequest
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class TestIamPermissionsRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class TestIamPermissionsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Project
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :project_number, as: 'projectNumber'
|
95
|
+
property :project_id, as: 'projectId'
|
96
|
+
property :lifecycle_state, as: 'lifecycleState'
|
97
|
+
property :name, as: 'name'
|
98
|
+
property :create_time, as: 'createTime'
|
99
|
+
hash :labels, as: 'labels'
|
100
|
+
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
101
|
+
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class ResourceId
|
106
|
+
# @private
|
107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
108
|
+
property :type, as: 'type'
|
109
|
+
property :id, as: 'id'
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class ListProjectsResponse
|
114
|
+
# @private
|
115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
116
|
+
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
|
117
|
+
|
118
|
+
property :next_page_token, as: 'nextPageToken'
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
class Empty
|
123
|
+
# @private
|
124
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
class UndeleteProjectRequest
|
129
|
+
# @private
|
130
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class GetIamPolicyRequest
|
135
|
+
# @private
|
136
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class Policy
|
141
|
+
# @private
|
142
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
143
|
+
property :version, as: 'version'
|
144
|
+
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
|
145
|
+
|
146
|
+
property :etag, :base64 => true, as: 'etag'
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
class Binding
|
151
|
+
# @private
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
153
|
+
property :role, as: 'role'
|
154
|
+
collection :members, as: 'members'
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
class SetIamPolicyRequest
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
162
|
+
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class TestIamPermissionsRequest
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
collection :permissions, as: 'permissions'
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class TestIamPermissionsResponse
|
174
|
+
# @private
|
175
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
+
collection :permissions, as: 'permissions'
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|