google-api-client 0.9.25 → 0.9.26

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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -26,13 +26,13 @@ module Google
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170122'
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,84 +22,87 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- # A classification of the Folder Operation error.
26
- class FolderOperationError
25
+ # The request sent to the
26
+ # GetAncestry
27
+ # method.
28
+ class GetAncestryRequest
27
29
  include Google::Apis::Core::Hashable
28
30
 
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
31
  def initialize(**args)
35
32
  update!(**args)
36
33
  end
37
34
 
38
35
  # Update properties of this object
39
36
  def update!(**args)
40
- @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
41
37
  end
42
38
  end
43
39
 
44
- # The `Status` type defines a logical error model that is suitable for different
45
- # programming environments, including REST APIs and RPC APIs. It is used by
46
- # [gRPC](https://github.com/grpc). The error model is designed to be:
47
- # - Simple to use and understand for most users
48
- # - Flexible enough to meet unexpected needs
49
- # # Overview
50
- # The `Status` message contains three pieces of data: error code, error message,
51
- # and error details. The error code should be an enum value of
52
- # google.rpc.Code, but it may accept additional error codes if needed. The
53
- # error message should be a developer-facing English message that helps
54
- # developers *understand* and *resolve* the error. If a localized user-facing
55
- # error message is needed, put the localized message in the error details or
56
- # localize it in the client. The optional error details may contain arbitrary
57
- # information about the error. There is a predefined set of error detail types
58
- # in the package `google.rpc` which can be used for common error conditions.
59
- # # Language mapping
60
- # The `Status` message is the logical representation of the error model, but it
61
- # is not necessarily the actual wire format. When the `Status` message is
62
- # exposed in different client libraries and different wire protocols, it can be
63
- # mapped differently. For example, it will likely be mapped to some exceptions
64
- # in Java, but more likely mapped to some error codes in C.
65
- # # Other uses
66
- # The error model and the `Status` message can be used in a variety of
67
- # environments, either with or without APIs, to provide a
68
- # consistent developer experience across different environments.
69
- # Example uses of this error model include:
70
- # - Partial errors. If a service needs to return partial errors to the client,
71
- # it may embed the `Status` in the normal response to indicate the partial
72
- # errors.
73
- # - Workflow errors. A typical workflow has multiple steps. Each step may
74
- # have a `Status` message for error reporting purpose.
75
- # - Batch operations. If a client uses batch request and batch response, the
76
- # `Status` message should be used directly inside batch response, one for
77
- # each error sub-response.
78
- # - Asynchronous operations. If an API call embeds asynchronous operation
79
- # results in its response, the status of those operations should be
80
- # represented directly using the `Status` message.
81
- # - Logging. If some API errors are stored in logs, the message `Status` could
82
- # be used directly after any stripping needed for security/privacy reasons.
83
- class Status
40
+ # A Project is a high-level Google Cloud Platform entity. It is a
41
+ # container for ACLs, APIs, AppEngine Apps, VMs, and other
42
+ # Google Cloud Platform resources.
43
+ class Project
84
44
  include Google::Apis::Core::Hashable
85
45
 
86
- # The status code, which should be an enum value of google.rpc.Code.
87
- # Corresponds to the JSON property `code`
88
- # @return [Fixnum]
89
- attr_accessor :code
46
+ # The Project lifecycle state.
47
+ # Read-only.
48
+ # Corresponds to the JSON property `lifecycleState`
49
+ # @return [String]
50
+ attr_accessor :lifecycle_state
90
51
 
91
- # A list of messages that carry the error details. There will be a
92
- # common set of message types for APIs to use.
93
- # Corresponds to the JSON property `details`
94
- # @return [Array<Hash<String,Object>>]
95
- attr_accessor :details
52
+ # The number uniquely identifying the project.
53
+ # Example: <code>415104041262</code>
54
+ # Read-only.
55
+ # Corresponds to the JSON property `projectNumber`
56
+ # @return [String]
57
+ attr_accessor :project_number
96
58
 
97
- # A developer-facing error message, which should be in English. Any
98
- # user-facing error message should be localized and sent in the
99
- # google.rpc.Status.details field, or localized by the client.
100
- # Corresponds to the JSON property `message`
59
+ # A container to reference an id for any resource type. A `resource` in Google
60
+ # Cloud Platform is a generic term for something you (a developer) may want to
61
+ # interact with through one of our API's. Some examples are an AppEngine app,
62
+ # a Compute Engine instance, a Cloud SQL database, and so on.
63
+ # Corresponds to the JSON property `parent`
64
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
65
+ attr_accessor :parent
66
+
67
+ # Creation time.
68
+ # Read-only.
69
+ # Corresponds to the JSON property `createTime`
101
70
  # @return [String]
102
- attr_accessor :message
71
+ attr_accessor :create_time
72
+
73
+ # The labels associated with this Project.
74
+ # Label keys must be between 1 and 63 characters long and must conform
75
+ # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
76
+ # Label values must be between 0 and 63 characters long and must conform
77
+ # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
78
+ # No more than 256 labels can be associated with a given resource.
79
+ # Clients should store labels in a representation such as JSON that does not
80
+ # depend on specific characters being disallowed.
81
+ # Example: <code>"environment" : "dev"</code>
82
+ # Read-write.
83
+ # Corresponds to the JSON property `labels`
84
+ # @return [Hash<String,String>]
85
+ attr_accessor :labels
86
+
87
+ # The user-assigned display name of the Project.
88
+ # It must be 4 to 30 characters.
89
+ # Allowed characters are: lowercase and uppercase letters, numbers,
90
+ # hyphen, single-quote, double-quote, space, and exclamation point.
91
+ # Example: <code>My Project</code>
92
+ # Read-write.
93
+ # Corresponds to the JSON property `name`
94
+ # @return [String]
95
+ attr_accessor :name
96
+
97
+ # The unique, user-assigned ID of the Project.
98
+ # It must be 6 to 30 lowercase letters, digits, or hyphens.
99
+ # It must start with a letter.
100
+ # Trailing hyphens are prohibited.
101
+ # Example: <code>tokyo-rain-123</code>
102
+ # Read-only after creation.
103
+ # Corresponds to the JSON property `projectId`
104
+ # @return [String]
105
+ attr_accessor :project_id
103
106
 
104
107
  def initialize(**args)
105
108
  update!(**args)
@@ -107,35 +110,31 @@ module Google
107
110
 
108
111
  # Update properties of this object
109
112
  def update!(**args)
110
- @code = args[:code] if args.key?(:code)
111
- @details = args[:details] if args.key?(:details)
112
- @message = args[:message] if args.key?(:message)
113
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
114
+ @project_number = args[:project_number] if args.key?(:project_number)
115
+ @parent = args[:parent] if args.key?(:parent)
116
+ @create_time = args[:create_time] if args.key?(:create_time)
117
+ @labels = args[:labels] if args.key?(:labels)
118
+ @name = args[:name] if args.key?(:name)
119
+ @project_id = args[:project_id] if args.key?(:project_id)
113
120
  end
114
121
  end
115
122
 
116
- # A page of the response received from the
117
- # ListProjects
118
- # method.
119
- # A paginated response where more pages are available has
120
- # `next_page_token` set. This token can be used in a subsequent request to
121
- # retrieve the next request page.
122
- class ListProjectsResponse
123
+ # The response returned from the `SearchOrganizations` method.
124
+ class SearchOrganizationsResponse
123
125
  include Google::Apis::Core::Hashable
124
126
 
125
- # The list of Projects that matched the list filter. This list can
126
- # be paginated.
127
- # Corresponds to the JSON property `projects`
128
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
129
- attr_accessor :projects
127
+ # The list of Organizations that matched the search query, possibly
128
+ # paginated.
129
+ # Corresponds to the JSON property `organizations`
130
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
131
+ attr_accessor :organizations
130
132
 
131
- # Pagination token.
132
- # If the result set is too large to fit in a single response, this token
133
- # is returned. It encodes the position of the current result cursor.
134
- # Feeding this value into a new list request with the `page_token` parameter
135
- # gives the next page of the results.
136
- # When `next_page_token` is not filled in, there is no next page and
137
- # the list returned is the last page in the result set.
138
- # Pagination tokens have a limited lifetime.
133
+ # A pagination token to be used to retrieve the next page of results. If the
134
+ # result is too large to fit within the page size specified in the request,
135
+ # this field will be set with a token that can be used to fetch the next page
136
+ # of results. If this field is empty, it indicates that this response
137
+ # contains the last page of results.
139
138
  # Corresponds to the JSON property `nextPageToken`
140
139
  # @return [String]
141
140
  attr_accessor :next_page_token
@@ -146,22 +145,96 @@ module Google
146
145
 
147
146
  # Update properties of this object
148
147
  def update!(**args)
149
- @projects = args[:projects] if args.key?(:projects)
148
+ @organizations = args[:organizations] if args.key?(:organizations)
150
149
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
151
150
  end
152
151
  end
153
152
 
154
- # The request sent to the UndeleteProject
155
- # method.
156
- class UndeleteProjectRequest
153
+ # Request message for `TestIamPermissions` method.
154
+ class TestIamPermissionsRequest
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # The set of permissions to check for the `resource`. Permissions with
158
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
159
+ # information see
160
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
161
+ # Corresponds to the JSON property `permissions`
162
+ # @return [Array<String>]
163
+ attr_accessor :permissions
164
+
165
+ def initialize(**args)
166
+ update!(**args)
167
+ end
168
+
169
+ # Update properties of this object
170
+ def update!(**args)
171
+ @permissions = args[:permissions] if args.key?(:permissions)
172
+ end
173
+ end
174
+
175
+ # Defines an Identity and Access Management (IAM) policy. It is used to
176
+ # specify access control policies for Cloud Platform resources.
177
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
178
+ # `members` to a `role`, where the members can be user accounts, Google groups,
179
+ # Google domains, and service accounts. A `role` is a named list of permissions
180
+ # defined by IAM.
181
+ # **Example**
182
+ # `
183
+ # "bindings": [
184
+ # `
185
+ # "role": "roles/owner",
186
+ # "members": [
187
+ # "user:mike@example.com",
188
+ # "group:admins@example.com",
189
+ # "domain:google.com",
190
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
191
+ # ]
192
+ # `,
193
+ # `
194
+ # "role": "roles/viewer",
195
+ # "members": ["user:sean@example.com"]
196
+ # `
197
+ # ]
198
+ # `
199
+ # For a description of IAM and its features, see the
200
+ # [IAM developer's guide](https://cloud.google.com/iam).
201
+ class Policy
157
202
  include Google::Apis::Core::Hashable
158
203
 
204
+ # Associates a list of `members` to a `role`.
205
+ # Multiple `bindings` must not be specified for the same `role`.
206
+ # `bindings` with no members will result in an error.
207
+ # Corresponds to the JSON property `bindings`
208
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
209
+ attr_accessor :bindings
210
+
211
+ # `etag` is used for optimistic concurrency control as a way to help
212
+ # prevent simultaneous updates of a policy from overwriting each other.
213
+ # It is strongly suggested that systems make use of the `etag` in the
214
+ # read-modify-write cycle to perform policy updates in order to avoid race
215
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
216
+ # systems are expected to put that etag in the request to `setIamPolicy` to
217
+ # ensure that their change will be applied to the same version of the policy.
218
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
219
+ # policy is overwritten blindly.
220
+ # Corresponds to the JSON property `etag`
221
+ # @return [String]
222
+ attr_accessor :etag
223
+
224
+ # Version of the `Policy`. The default version is 0.
225
+ # Corresponds to the JSON property `version`
226
+ # @return [Fixnum]
227
+ attr_accessor :version
228
+
159
229
  def initialize(**args)
160
230
  update!(**args)
161
231
  end
162
232
 
163
233
  # Update properties of this object
164
234
  def update!(**args)
235
+ @bindings = args[:bindings] if args.key?(:bindings)
236
+ @etag = args[:etag] if args.key?(:etag)
237
+ @version = args[:version] if args.key?(:version)
165
238
  end
166
239
  end
167
240
 
@@ -204,11 +277,87 @@ module Google
204
277
  end
205
278
  end
206
279
 
207
- # This resource represents a long-running operation that is the result of a
208
- # network API call.
209
- class Operation
280
+ # A classification of the Folder Operation error.
281
+ class FolderOperationError
210
282
  include Google::Apis::Core::Hashable
211
283
 
284
+ # The type of operation error experienced.
285
+ # Corresponds to the JSON property `errorMessageId`
286
+ # @return [String]
287
+ attr_accessor :error_message_id
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
296
+ end
297
+ end
298
+
299
+ # A container to reference an id for any resource type. A `resource` in Google
300
+ # Cloud Platform is a generic term for something you (a developer) may want to
301
+ # interact with through one of our API's. Some examples are an AppEngine app,
302
+ # a Compute Engine instance, a Cloud SQL database, and so on.
303
+ class ResourceId
304
+ include Google::Apis::Core::Hashable
305
+
306
+ # Required field representing the resource type this id is for.
307
+ # At present, the only valid type is "organization".
308
+ # Corresponds to the JSON property `type`
309
+ # @return [String]
310
+ attr_accessor :type
311
+
312
+ # Required field for the type-specific id. This should correspond to the id
313
+ # used in the type-specific API's.
314
+ # Corresponds to the JSON property `id`
315
+ # @return [String]
316
+ attr_accessor :id
317
+
318
+ def initialize(**args)
319
+ update!(**args)
320
+ end
321
+
322
+ # Update properties of this object
323
+ def update!(**args)
324
+ @type = args[:type] if args.key?(:type)
325
+ @id = args[:id] if args.key?(:id)
326
+ end
327
+ end
328
+
329
+ # This resource represents a long-running operation that is the result of a
330
+ # network API call.
331
+ class Operation
332
+ include Google::Apis::Core::Hashable
333
+
334
+ # If the value is `false`, it means the operation is still in progress.
335
+ # If true, the operation is completed, and either `error` or `response` is
336
+ # available.
337
+ # Corresponds to the JSON property `done`
338
+ # @return [Boolean]
339
+ attr_accessor :done
340
+ alias_method :done?, :done
341
+
342
+ # The normal response of the operation in case of success. If the original
343
+ # method returns no data on success, such as `Delete`, the response is
344
+ # `google.protobuf.Empty`. If the original method is standard
345
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
346
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
347
+ # is the original method name. For example, if the original method name
348
+ # is `TakeSnapshot()`, the inferred response type is
349
+ # `TakeSnapshotResponse`.
350
+ # Corresponds to the JSON property `response`
351
+ # @return [Hash<String,Object>]
352
+ attr_accessor :response
353
+
354
+ # The server-assigned name, which is only unique within the same service that
355
+ # originally returns it. If you use the default HTTP mapping, the
356
+ # `name` should have the format of `operations/some/unique/name`.
357
+ # Corresponds to the JSON property `name`
358
+ # @return [String]
359
+ attr_accessor :name
360
+
212
361
  # The `Status` type defines a logical error model that is suitable for different
213
362
  # programming environments, including REST APIs and RPC APIs. It is used by
214
363
  # [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -252,14 +401,6 @@ module Google
252
401
  # @return [Google::Apis::CloudresourcemanagerV1::Status]
253
402
  attr_accessor :error
254
403
 
255
- # If the value is `false`, it means the operation is still in progress.
256
- # If true, the operation is completed, and either `error` or `response` is
257
- # available.
258
- # Corresponds to the JSON property `done`
259
- # @return [Boolean]
260
- attr_accessor :done
261
- alias_method :done?, :done
262
-
263
404
  # Service-specific metadata associated with the operation. It typically
264
405
  # contains progress information and common metadata such as create time.
265
406
  # Some services might not provide such metadata. Any method that returns a
@@ -268,49 +409,39 @@ module Google
268
409
  # @return [Hash<String,Object>]
269
410
  attr_accessor :metadata
270
411
 
271
- # The normal response of the operation in case of success. If the original
272
- # method returns no data on success, such as `Delete`, the response is
273
- # `google.protobuf.Empty`. If the original method is standard
274
- # `Get`/`Create`/`Update`, the response should be the resource. For other
275
- # methods, the response should have the type `XxxResponse`, where `Xxx`
276
- # is the original method name. For example, if the original method name
277
- # is `TakeSnapshot()`, the inferred response type is
278
- # `TakeSnapshotResponse`.
279
- # Corresponds to the JSON property `response`
280
- # @return [Hash<String,Object>]
281
- attr_accessor :response
282
-
283
- # The server-assigned name, which is only unique within the same service that
284
- # originally returns it. If you use the default HTTP mapping, the
285
- # `name` should have the format of `operations/some/unique/name`.
286
- # Corresponds to the JSON property `name`
287
- # @return [String]
288
- attr_accessor :name
289
-
290
412
  def initialize(**args)
291
413
  update!(**args)
292
414
  end
293
415
 
294
416
  # Update properties of this object
295
417
  def update!(**args)
296
- @error = args[:error] if args.key?(:error)
297
418
  @done = args[:done] if args.key?(:done)
298
- @metadata = args[:metadata] if args.key?(:metadata)
299
419
  @response = args[:response] if args.key?(:response)
300
420
  @name = args[:name] if args.key?(:name)
421
+ @error = args[:error] if args.key?(:error)
422
+ @metadata = args[:metadata] if args.key?(:metadata)
301
423
  end
302
424
  end
303
425
 
304
- # Request message for `GetIamPolicy` method.
305
- class GetIamPolicyRequest
426
+ # Identifying information for a single ancestor of a project.
427
+ class Ancestor
306
428
  include Google::Apis::Core::Hashable
307
429
 
430
+ # A container to reference an id for any resource type. A `resource` in Google
431
+ # Cloud Platform is a generic term for something you (a developer) may want to
432
+ # interact with through one of our API's. Some examples are an AppEngine app,
433
+ # a Compute Engine instance, a Cloud SQL database, and so on.
434
+ # Corresponds to the JSON property `resourceId`
435
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
436
+ attr_accessor :resource_id
437
+
308
438
  def initialize(**args)
309
439
  update!(**args)
310
440
  end
311
441
 
312
442
  # Update properties of this object
313
443
  def update!(**args)
444
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
314
445
  end
315
446
  end
316
447
 
@@ -358,15 +489,65 @@ module Google
358
489
  end
359
490
  end
360
491
 
361
- # Response message for `TestIamPermissions` method.
362
- class TestIamPermissionsResponse
492
+ # The `Status` type defines a logical error model that is suitable for different
493
+ # programming environments, including REST APIs and RPC APIs. It is used by
494
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
495
+ # - Simple to use and understand for most users
496
+ # - Flexible enough to meet unexpected needs
497
+ # # Overview
498
+ # The `Status` message contains three pieces of data: error code, error message,
499
+ # and error details. The error code should be an enum value of
500
+ # google.rpc.Code, but it may accept additional error codes if needed. The
501
+ # error message should be a developer-facing English message that helps
502
+ # developers *understand* and *resolve* the error. If a localized user-facing
503
+ # error message is needed, put the localized message in the error details or
504
+ # localize it in the client. The optional error details may contain arbitrary
505
+ # information about the error. There is a predefined set of error detail types
506
+ # in the package `google.rpc` which can be used for common error conditions.
507
+ # # Language mapping
508
+ # The `Status` message is the logical representation of the error model, but it
509
+ # is not necessarily the actual wire format. When the `Status` message is
510
+ # exposed in different client libraries and different wire protocols, it can be
511
+ # mapped differently. For example, it will likely be mapped to some exceptions
512
+ # in Java, but more likely mapped to some error codes in C.
513
+ # # Other uses
514
+ # The error model and the `Status` message can be used in a variety of
515
+ # environments, either with or without APIs, to provide a
516
+ # consistent developer experience across different environments.
517
+ # Example uses of this error model include:
518
+ # - Partial errors. If a service needs to return partial errors to the client,
519
+ # it may embed the `Status` in the normal response to indicate the partial
520
+ # errors.
521
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
522
+ # have a `Status` message for error reporting purpose.
523
+ # - Batch operations. If a client uses batch request and batch response, the
524
+ # `Status` message should be used directly inside batch response, one for
525
+ # each error sub-response.
526
+ # - Asynchronous operations. If an API call embeds asynchronous operation
527
+ # results in its response, the status of those operations should be
528
+ # represented directly using the `Status` message.
529
+ # - Logging. If some API errors are stored in logs, the message `Status` could
530
+ # be used directly after any stripping needed for security/privacy reasons.
531
+ class Status
363
532
  include Google::Apis::Core::Hashable
364
533
 
365
- # A subset of `TestPermissionsRequest.permissions` that the caller is
366
- # allowed.
367
- # Corresponds to the JSON property `permissions`
368
- # @return [Array<String>]
369
- attr_accessor :permissions
534
+ # The status code, which should be an enum value of google.rpc.Code.
535
+ # Corresponds to the JSON property `code`
536
+ # @return [Fixnum]
537
+ attr_accessor :code
538
+
539
+ # A developer-facing error message, which should be in English. Any
540
+ # user-facing error message should be localized and sent in the
541
+ # google.rpc.Status.details field, or localized by the client.
542
+ # Corresponds to the JSON property `message`
543
+ # @return [String]
544
+ attr_accessor :message
545
+
546
+ # A list of messages that carry the error details. There will be a
547
+ # common set of message types for APIs to use.
548
+ # Corresponds to the JSON property `details`
549
+ # @return [Array<Hash<String,Object>>]
550
+ attr_accessor :details
370
551
 
371
552
  def initialize(**args)
372
553
  update!(**args)
@@ -374,49 +555,40 @@ module Google
374
555
 
375
556
  # Update properties of this object
376
557
  def update!(**args)
377
- @permissions = args[:permissions] if args.key?(:permissions)
558
+ @code = args[:code] if args.key?(:code)
559
+ @message = args[:message] if args.key?(:message)
560
+ @details = args[:details] if args.key?(:details)
378
561
  end
379
562
  end
380
563
 
381
- # The root node in the resource hierarchy to which a particular entity's
382
- # (e.g., company) resources belong.
383
- class Organization
564
+ # Associates `members` with a `role`.
565
+ class Binding
384
566
  include Google::Apis::Core::Hashable
385
567
 
386
- # A friendly string to be used to refer to the Organization in the UI.
387
- # Assigned by the server, set to the firm name of the Google For Work
388
- # customer that owns this organization.
389
- # @OutputOnly
390
- # Corresponds to the JSON property `displayName`
391
- # @return [String]
392
- attr_accessor :display_name
393
-
394
- # Timestamp when the Organization was created. Assigned by the server.
395
- # @OutputOnly
396
- # Corresponds to the JSON property `creationTime`
397
- # @return [String]
398
- attr_accessor :creation_time
399
-
400
- # The entity that owns an Organization. The lifetime of the Organization and
401
- # all of its descendants are bound to the `OrganizationOwner`. If the
402
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
403
- # be deleted.
404
- # Corresponds to the JSON property `owner`
405
- # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
406
- attr_accessor :owner
407
-
408
- # The organization's current lifecycle state. Assigned by the server.
409
- # @OutputOnly
410
- # Corresponds to the JSON property `lifecycleState`
411
- # @return [String]
412
- attr_accessor :lifecycle_state
568
+ # Specifies the identities requesting access for a Cloud Platform resource.
569
+ # `members` can have the following values:
570
+ # * `allUsers`: A special identifier that represents anyone who is
571
+ # on the internet; with or without a Google account.
572
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
573
+ # who is authenticated with a Google account or a service account.
574
+ # * `user:`emailid``: An email address that represents a specific Google
575
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
576
+ # * `serviceAccount:`emailid``: An email address that represents a service
577
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
578
+ # * `group:`emailid``: An email address that represents a Google group.
579
+ # For example, `admins@example.com`.
580
+ # * `domain:`domain``: A Google Apps domain name that represents all the
581
+ # users of that domain. For example, `google.com` or `example.com`.
582
+ # Corresponds to the JSON property `members`
583
+ # @return [Array<String>]
584
+ attr_accessor :members
413
585
 
414
- # Output Only. The resource name of the organization. This is the
415
- # organization's relative path in the API. Its format is
416
- # "organizations/[organization_id]". For example, "organizations/1234".
417
- # Corresponds to the JSON property `name`
586
+ # Role that is assigned to `members`.
587
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
588
+ # Required
589
+ # Corresponds to the JSON property `role`
418
590
  # @return [String]
419
- attr_accessor :name
591
+ attr_accessor :role
420
592
 
421
593
  def initialize(**args)
422
594
  update!(**args)
@@ -424,67 +596,83 @@ module Google
424
596
 
425
597
  # Update properties of this object
426
598
  def update!(**args)
427
- @display_name = args[:display_name] if args.key?(:display_name)
428
- @creation_time = args[:creation_time] if args.key?(:creation_time)
429
- @owner = args[:owner] if args.key?(:owner)
430
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
431
- @name = args[:name] if args.key?(:name)
599
+ @members = args[:members] if args.key?(:members)
600
+ @role = args[:role] if args.key?(:role)
432
601
  end
433
602
  end
434
603
 
435
- # Defines an Identity and Access Management (IAM) policy. It is used to
436
- # specify access control policies for Cloud Platform resources.
437
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
438
- # `members` to a `role`, where the members can be user accounts, Google groups,
439
- # Google domains, and service accounts. A `role` is a named list of permissions
440
- # defined by IAM.
441
- # **Example**
442
- # `
443
- # "bindings": [
444
- # `
445
- # "role": "roles/owner",
446
- # "members": [
447
- # "user:mike@example.com",
448
- # "group:admins@example.com",
449
- # "domain:google.com",
450
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
451
- # ]
452
- # `,
453
- # `
454
- # "role": "roles/viewer",
455
- # "members": ["user:sean@example.com"]
456
- # `
457
- # ]
604
+ # A generic empty message that you can re-use to avoid defining duplicated
605
+ # empty messages in your APIs. A typical example is to use it as the request
606
+ # or the response type of an API method. For instance:
607
+ # service Foo `
608
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
458
609
  # `
459
- # For a description of IAM and its features, see the
460
- # [IAM developer's guide](https://cloud.google.com/iam).
461
- class Policy
610
+ # The JSON representation for `Empty` is empty JSON object ````.
611
+ class Empty
462
612
  include Google::Apis::Core::Hashable
463
613
 
464
- # Associates a list of `members` to a `role`.
465
- # Multiple `bindings` must not be specified for the same `role`.
466
- # `bindings` with no members will result in an error.
467
- # Corresponds to the JSON property `bindings`
468
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
469
- attr_accessor :bindings
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
470
617
 
471
- # `etag` is used for optimistic concurrency control as a way to help
472
- # prevent simultaneous updates of a policy from overwriting each other.
473
- # It is strongly suggested that systems make use of the `etag` in the
474
- # read-modify-write cycle to perform policy updates in order to avoid race
475
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
476
- # systems are expected to put that etag in the request to `setIamPolicy` to
477
- # ensure that their change will be applied to the same version of the policy.
478
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
479
- # policy is overwritten blindly.
480
- # Corresponds to the JSON property `etag`
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ end
621
+ end
622
+
623
+ # The request sent to the UndeleteProject
624
+ # method.
625
+ class UndeleteProjectRequest
626
+ include Google::Apis::Core::Hashable
627
+
628
+ def initialize(**args)
629
+ update!(**args)
630
+ end
631
+
632
+ # Update properties of this object
633
+ def update!(**args)
634
+ end
635
+ end
636
+
637
+ # The root node in the resource hierarchy to which a particular entity's
638
+ # (e.g., company) resources belong.
639
+ class Organization
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # A friendly string to be used to refer to the Organization in the UI.
643
+ # Assigned by the server, set to the firm name of the Google For Work
644
+ # customer that owns this organization.
645
+ # @OutputOnly
646
+ # Corresponds to the JSON property `displayName`
481
647
  # @return [String]
482
- attr_accessor :etag
648
+ attr_accessor :display_name
483
649
 
484
- # Version of the `Policy`. The default version is 0.
485
- # Corresponds to the JSON property `version`
486
- # @return [Fixnum]
487
- attr_accessor :version
650
+ # Timestamp when the Organization was created. Assigned by the server.
651
+ # @OutputOnly
652
+ # Corresponds to the JSON property `creationTime`
653
+ # @return [String]
654
+ attr_accessor :creation_time
655
+
656
+ # The entity that owns an Organization. The lifetime of the Organization and
657
+ # all of its descendants are bound to the `OrganizationOwner`. If the
658
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
659
+ # be deleted.
660
+ # Corresponds to the JSON property `owner`
661
+ # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
662
+ attr_accessor :owner
663
+
664
+ # The organization's current lifecycle state. Assigned by the server.
665
+ # @OutputOnly
666
+ # Corresponds to the JSON property `lifecycleState`
667
+ # @return [String]
668
+ attr_accessor :lifecycle_state
669
+
670
+ # Output Only. The resource name of the organization. This is the
671
+ # organization's relative path in the API. Its format is
672
+ # "organizations/[organization_id]". For example, "organizations/1234".
673
+ # Corresponds to the JSON property `name`
674
+ # @return [String]
675
+ attr_accessor :name
488
676
 
489
677
  def initialize(**args)
490
678
  update!(**args)
@@ -492,9 +680,11 @@ module Google
492
680
 
493
681
  # Update properties of this object
494
682
  def update!(**args)
495
- @bindings = args[:bindings] if args.key?(:bindings)
496
- @etag = args[:etag] if args.key?(:etag)
497
- @version = args[:version] if args.key?(:version)
683
+ @display_name = args[:display_name] if args.key?(:display_name)
684
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
685
+ @owner = args[:owner] if args.key?(:owner)
686
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
687
+ @name = args[:name] if args.key?(:name)
498
688
  end
499
689
  end
500
690
 
@@ -510,6 +700,11 @@ module Google
510
700
  attr_accessor :ready
511
701
  alias_method :ready?, :ready
512
702
 
703
+ # Creation time of the project creation workflow.
704
+ # Corresponds to the JSON property `createTime`
705
+ # @return [String]
706
+ attr_accessor :create_time
707
+
513
708
  # True if the project can be retrieved using GetProject. No other operations
514
709
  # on the project are guaranteed to work until the project creation is
515
710
  # complete.
@@ -518,11 +713,6 @@ module Google
518
713
  attr_accessor :gettable
519
714
  alias_method :gettable?, :gettable
520
715
 
521
- # Creation time of the project creation workflow.
522
- # Corresponds to the JSON property `createTime`
523
- # @return [String]
524
- attr_accessor :create_time
525
-
526
716
  def initialize(**args)
527
717
  update!(**args)
528
718
  end
@@ -530,45 +720,41 @@ module Google
530
720
  # Update properties of this object
531
721
  def update!(**args)
532
722
  @ready = args[:ready] if args.key?(:ready)
533
- @gettable = args[:gettable] if args.key?(:gettable)
534
723
  @create_time = args[:create_time] if args.key?(:create_time)
724
+ @gettable = args[:gettable] if args.key?(:gettable)
535
725
  end
536
726
  end
537
727
 
538
- # Request message for `TestIamPermissions` method.
539
- class TestIamPermissionsRequest
728
+ # Request message for `GetIamPolicy` method.
729
+ class GetIamPolicyRequest
540
730
  include Google::Apis::Core::Hashable
541
731
 
542
- # The set of permissions to check for the `resource`. Permissions with
543
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
544
- # information see
545
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
546
- # Corresponds to the JSON property `permissions`
547
- # @return [Array<String>]
548
- attr_accessor :permissions
549
-
550
732
  def initialize(**args)
551
733
  update!(**args)
552
734
  end
553
735
 
554
736
  # Update properties of this object
555
737
  def update!(**args)
556
- @permissions = args[:permissions] if args.key?(:permissions)
557
738
  end
558
739
  end
559
740
 
560
- # The request sent to the
561
- # GetAncestry
562
- # method.
563
- class GetAncestryRequest
741
+ # Response message for `TestIamPermissions` method.
742
+ class TestIamPermissionsResponse
564
743
  include Google::Apis::Core::Hashable
565
744
 
745
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
746
+ # allowed.
747
+ # Corresponds to the JSON property `permissions`
748
+ # @return [Array<String>]
749
+ attr_accessor :permissions
750
+
566
751
  def initialize(**args)
567
752
  update!(**args)
568
753
  end
569
754
 
570
755
  # Update properties of this object
571
756
  def update!(**args)
757
+ @permissions = args[:permissions] if args.key?(:permissions)
572
758
  end
573
759
  end
574
760
 
@@ -593,21 +779,51 @@ module Google
593
779
  end
594
780
  end
595
781
 
596
- # The response returned from the `SearchOrganizations` method.
597
- class SearchOrganizationsResponse
782
+ # The entity that owns an Organization. The lifetime of the Organization and
783
+ # all of its descendants are bound to the `OrganizationOwner`. If the
784
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
785
+ # be deleted.
786
+ class OrganizationOwner
598
787
  include Google::Apis::Core::Hashable
599
788
 
600
- # The list of Organizations that matched the search query, possibly
601
- # paginated.
602
- # Corresponds to the JSON property `organizations`
603
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
604
- attr_accessor :organizations
789
+ # The Google for Work customer id used in the Directory API.
790
+ # Corresponds to the JSON property `directoryCustomerId`
791
+ # @return [String]
792
+ attr_accessor :directory_customer_id
605
793
 
606
- # A pagination token to be used to retrieve the next page of results. If the
607
- # result is too large to fit within the page size specified in the request,
608
- # this field will be set with a token that can be used to fetch the next page
609
- # of results. If this field is empty, it indicates that this response
610
- # contains the last page of results.
794
+ def initialize(**args)
795
+ update!(**args)
796
+ end
797
+
798
+ # Update properties of this object
799
+ def update!(**args)
800
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
801
+ end
802
+ end
803
+
804
+ # A page of the response received from the
805
+ # ListProjects
806
+ # method.
807
+ # A paginated response where more pages are available has
808
+ # `next_page_token` set. This token can be used in a subsequent request to
809
+ # retrieve the next request page.
810
+ class ListProjectsResponse
811
+ include Google::Apis::Core::Hashable
812
+
813
+ # The list of Projects that matched the list filter. This list can
814
+ # be paginated.
815
+ # Corresponds to the JSON property `projects`
816
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
817
+ attr_accessor :projects
818
+
819
+ # Pagination token.
820
+ # If the result set is too large to fit in a single response, this token
821
+ # is returned. It encodes the position of the current result cursor.
822
+ # Feeding this value into a new list request with the `page_token` parameter
823
+ # gives the next page of the results.
824
+ # When `next_page_token` is not filled in, there is no next page and
825
+ # the list returned is the last page in the result set.
826
+ # Pagination tokens have a limited lifetime.
611
827
  # Corresponds to the JSON property `nextPageToken`
612
828
  # @return [String]
613
829
  attr_accessor :next_page_token
@@ -618,7 +834,7 @@ module Google
618
834
 
619
835
  # Update properties of this object
620
836
  def update!(**args)
621
- @organizations = args[:organizations] if args.key?(:organizations)
837
+ @projects = args[:projects] if args.key?(:projects)
622
838
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
623
839
  end
624
840
  end
@@ -627,12 +843,6 @@ module Google
627
843
  class SearchOrganizationsRequest
628
844
  include Google::Apis::Core::Hashable
629
845
 
630
- # The maximum number of Organizations to return in the response.
631
- # This field is optional.
632
- # Corresponds to the JSON property `pageSize`
633
- # @return [Fixnum]
634
- attr_accessor :page_size
635
-
636
846
  # An optional query string used to filter the Organizations to return in
637
847
  # the response. Filter rules are case-insensitive.
638
848
  # Organizations may be filtered by `owner.directoryCustomerId` or by
@@ -654,231 +864,21 @@ module Google
654
864
  # @return [String]
655
865
  attr_accessor :page_token
656
866
 
867
+ # The maximum number of Organizations to return in the response.
868
+ # This field is optional.
869
+ # Corresponds to the JSON property `pageSize`
870
+ # @return [Fixnum]
871
+ attr_accessor :page_size
872
+
657
873
  def initialize(**args)
658
874
  update!(**args)
659
875
  end
660
876
 
661
877
  # Update properties of this object
662
878
  def update!(**args)
663
- @page_size = args[:page_size] if args.key?(:page_size)
664
879
  @filter = args[:filter] if args.key?(:filter)
665
880
  @page_token = args[:page_token] if args.key?(:page_token)
666
- end
667
- end
668
-
669
- # A generic empty message that you can re-use to avoid defining duplicated
670
- # empty messages in your APIs. A typical example is to use it as the request
671
- # or the response type of an API method. For instance:
672
- # service Foo `
673
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
674
- # `
675
- # The JSON representation for `Empty` is empty JSON object ````.
676
- class Empty
677
- include Google::Apis::Core::Hashable
678
-
679
- def initialize(**args)
680
- update!(**args)
681
- end
682
-
683
- # Update properties of this object
684
- def update!(**args)
685
- end
686
- end
687
-
688
- # Identifying information for a single ancestor of a project.
689
- class Ancestor
690
- include Google::Apis::Core::Hashable
691
-
692
- # A container to reference an id for any resource type. A `resource` in Google
693
- # Cloud Platform is a generic term for something you (a developer) may want to
694
- # interact with through one of our API's. Some examples are an AppEngine app,
695
- # a Compute Engine instance, a Cloud SQL database, and so on.
696
- # Corresponds to the JSON property `resourceId`
697
- # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
698
- attr_accessor :resource_id
699
-
700
- def initialize(**args)
701
- update!(**args)
702
- end
703
-
704
- # Update properties of this object
705
- def update!(**args)
706
- @resource_id = args[:resource_id] if args.key?(:resource_id)
707
- end
708
- end
709
-
710
- # A container to reference an id for any resource type. A `resource` in Google
711
- # Cloud Platform is a generic term for something you (a developer) may want to
712
- # interact with through one of our API's. Some examples are an AppEngine app,
713
- # a Compute Engine instance, a Cloud SQL database, and so on.
714
- class ResourceId
715
- include Google::Apis::Core::Hashable
716
-
717
- # Required field representing the resource type this id is for.
718
- # At present, the only valid type is "organization".
719
- # Corresponds to the JSON property `type`
720
- # @return [String]
721
- attr_accessor :type
722
-
723
- # Required field for the type-specific id. This should correspond to the id
724
- # used in the type-specific API's.
725
- # Corresponds to the JSON property `id`
726
- # @return [String]
727
- attr_accessor :id
728
-
729
- def initialize(**args)
730
- update!(**args)
731
- end
732
-
733
- # Update properties of this object
734
- def update!(**args)
735
- @type = args[:type] if args.key?(:type)
736
- @id = args[:id] if args.key?(:id)
737
- end
738
- end
739
-
740
- # Associates `members` with a `role`.
741
- class Binding
742
- include Google::Apis::Core::Hashable
743
-
744
- # Specifies the identities requesting access for a Cloud Platform resource.
745
- # `members` can have the following values:
746
- # * `allUsers`: A special identifier that represents anyone who is
747
- # on the internet; with or without a Google account.
748
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
749
- # who is authenticated with a Google account or a service account.
750
- # * `user:`emailid``: An email address that represents a specific Google
751
- # account. For example, `alice@gmail.com` or `joe@example.com`.
752
- # * `serviceAccount:`emailid``: An email address that represents a service
753
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
754
- # * `group:`emailid``: An email address that represents a Google group.
755
- # For example, `admins@example.com`.
756
- # * `domain:`domain``: A Google Apps domain name that represents all the
757
- # users of that domain. For example, `google.com` or `example.com`.
758
- # Corresponds to the JSON property `members`
759
- # @return [Array<String>]
760
- attr_accessor :members
761
-
762
- # Role that is assigned to `members`.
763
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
764
- # Required
765
- # Corresponds to the JSON property `role`
766
- # @return [String]
767
- attr_accessor :role
768
-
769
- def initialize(**args)
770
- update!(**args)
771
- end
772
-
773
- # Update properties of this object
774
- def update!(**args)
775
- @members = args[:members] if args.key?(:members)
776
- @role = args[:role] if args.key?(:role)
777
- end
778
- end
779
-
780
- # A Project is a high-level Google Cloud Platform entity. It is a
781
- # container for ACLs, APIs, AppEngine Apps, VMs, and other
782
- # Google Cloud Platform resources.
783
- class Project
784
- include Google::Apis::Core::Hashable
785
-
786
- # A container to reference an id for any resource type. A `resource` in Google
787
- # Cloud Platform is a generic term for something you (a developer) may want to
788
- # interact with through one of our API's. Some examples are an AppEngine app,
789
- # a Compute Engine instance, a Cloud SQL database, and so on.
790
- # Corresponds to the JSON property `parent`
791
- # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
792
- attr_accessor :parent
793
-
794
- # The labels associated with this Project.
795
- # Label keys must be between 1 and 63 characters long and must conform
796
- # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
797
- # Label values must be between 0 and 63 characters long and must conform
798
- # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
799
- # No more than 256 labels can be associated with a given resource.
800
- # Clients should store labels in a representation such as JSON that does not
801
- # depend on specific characters being disallowed.
802
- # Example: <code>"environment" : "dev"</code>
803
- # Read-write.
804
- # Corresponds to the JSON property `labels`
805
- # @return [Hash<String,String>]
806
- attr_accessor :labels
807
-
808
- # The Project lifecycle state.
809
- # Read-only.
810
- # Corresponds to the JSON property `lifecycleState`
811
- # @return [String]
812
- attr_accessor :lifecycle_state
813
-
814
- # Creation time.
815
- # Read-only.
816
- # Corresponds to the JSON property `createTime`
817
- # @return [String]
818
- attr_accessor :create_time
819
-
820
- # The user-assigned display name of the Project.
821
- # It must be 4 to 30 characters.
822
- # Allowed characters are: lowercase and uppercase letters, numbers,
823
- # hyphen, single-quote, double-quote, space, and exclamation point.
824
- # Example: <code>My Project</code>
825
- # Read-write.
826
- # Corresponds to the JSON property `name`
827
- # @return [String]
828
- attr_accessor :name
829
-
830
- # The number uniquely identifying the project.
831
- # Example: <code>415104041262</code>
832
- # Read-only.
833
- # Corresponds to the JSON property `projectNumber`
834
- # @return [String]
835
- attr_accessor :project_number
836
-
837
- # The unique, user-assigned ID of the Project.
838
- # It must be 6 to 30 lowercase letters, digits, or hyphens.
839
- # It must start with a letter.
840
- # Trailing hyphens are prohibited.
841
- # Example: <code>tokyo-rain-123</code>
842
- # Read-only after creation.
843
- # Corresponds to the JSON property `projectId`
844
- # @return [String]
845
- attr_accessor :project_id
846
-
847
- def initialize(**args)
848
- update!(**args)
849
- end
850
-
851
- # Update properties of this object
852
- def update!(**args)
853
- @parent = args[:parent] if args.key?(:parent)
854
- @labels = args[:labels] if args.key?(:labels)
855
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
856
- @create_time = args[:create_time] if args.key?(:create_time)
857
- @name = args[:name] if args.key?(:name)
858
- @project_number = args[:project_number] if args.key?(:project_number)
859
- @project_id = args[:project_id] if args.key?(:project_id)
860
- end
861
- end
862
-
863
- # The entity that owns an Organization. The lifetime of the Organization and
864
- # all of its descendants are bound to the `OrganizationOwner`. If the
865
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
866
- # be deleted.
867
- class OrganizationOwner
868
- include Google::Apis::Core::Hashable
869
-
870
- # The Google for Work customer id used in the Directory API.
871
- # Corresponds to the JSON property `directoryCustomerId`
872
- # @return [String]
873
- attr_accessor :directory_customer_id
874
-
875
- def initialize(**args)
876
- update!(**args)
877
- end
878
-
879
- # Update properties of this object
880
- def update!(**args)
881
- @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
881
+ @page_size = args[:page_size] if args.key?(:page_size)
882
882
  end
883
883
  end
884
884
  end