google-api-client 0.9.15 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
  8. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
  10. data/generated/google/apis/admin_directory_v1.rb +1 -1
  11. data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
  12. data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
  13. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  14. data/generated/google/apis/adsense_v1_4.rb +1 -1
  15. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/classes.rb +11 -5
  18. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  19. data/generated/google/apis/analytics_v3/service.rb +17 -18
  20. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
  24. data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
  25. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  26. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
  28. data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
  29. data/generated/google/apis/appsactivity_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +2 -2
  32. data/generated/google/apis/books_v1.rb +1 -1
  33. data/generated/google/apis/books_v1/classes.rb +2 -1
  34. data/generated/google/apis/calendar_v3.rb +1 -1
  35. data/generated/google/apis/classroom_v1.rb +1 -1
  36. data/generated/google/apis/classroom_v1/classes.rb +7 -0
  37. data/generated/google/apis/classroom_v1/representations.rb +1 -0
  38. data/generated/google/apis/classroom_v1/service.rb +25 -15
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
  41. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
  43. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +44 -29
  51. data/generated/google/apis/compute_beta/representations.rb +1 -0
  52. data/generated/google/apis/compute_beta/service.rb +123 -25
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +43 -20
  55. data/generated/google/apis/compute_v1/representations.rb +3 -0
  56. data/generated/google/apis/compute_v1/service.rb +608 -67
  57. data/generated/google/apis/content_v2.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  59. data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
  60. data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
  61. data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/dns_v1.rb +1 -1
  64. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  65. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  66. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  67. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  68. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  69. data/generated/google/apis/drive_v2.rb +1 -1
  70. data/generated/google/apis/drive_v2/classes.rb +9 -0
  71. data/generated/google/apis/drive_v2/representations.rb +1 -0
  72. data/generated/google/apis/drive_v2/service.rb +8 -1
  73. data/generated/google/apis/drive_v3.rb +1 -1
  74. data/generated/google/apis/drive_v3/classes.rb +7 -0
  75. data/generated/google/apis/drive_v3/representations.rb +1 -0
  76. data/generated/google/apis/drive_v3/service.rb +8 -1
  77. data/generated/google/apis/genomics_v1.rb +1 -1
  78. data/generated/google/apis/iam_v1.rb +2 -2
  79. data/generated/google/apis/iam_v1/classes.rb +181 -206
  80. data/generated/google/apis/iam_v1/representations.rb +36 -45
  81. data/generated/google/apis/iam_v1/service.rb +101 -67
  82. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  83. data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
  84. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
  85. data/generated/google/apis/language_v1beta1.rb +1 -1
  86. data/generated/google/apis/language_v1beta1/classes.rb +4 -2
  87. data/generated/google/apis/language_v1beta1/service.rb +2 -4
  88. data/generated/google/apis/logging_v2beta1.rb +6 -6
  89. data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
  90. data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
  91. data/generated/google/apis/logging_v2beta1/service.rb +276 -209
  92. data/generated/google/apis/monitoring_v3.rb +1 -1
  93. data/generated/google/apis/monitoring_v3/classes.rb +20 -13
  94. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  95. data/generated/google/apis/oauth2_v2.rb +1 -1
  96. data/generated/google/apis/plus_domains_v1.rb +1 -1
  97. data/generated/google/apis/plus_v1.rb +1 -1
  98. data/generated/google/apis/pubsub_v1.rb +1 -1
  99. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  100. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  101. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  102. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  103. data/generated/google/apis/sheets_v4.rb +1 -1
  104. data/generated/google/apis/sheets_v4/classes.rb +2 -0
  105. data/generated/google/apis/speech_v1beta1.rb +1 -1
  106. data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
  107. data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
  108. data/generated/google/apis/speech_v1beta1/service.rb +68 -65
  109. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  110. data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
  111. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  112. data/generated/google/apis/storage_v1.rb +1 -1
  113. data/generated/google/apis/storage_v1/classes.rb +3 -3
  114. data/generated/google/apis/storage_v1/representations.rb +2 -1
  115. data/generated/google/apis/storage_v1/service.rb +5 -2
  116. data/generated/google/apis/vision_v1.rb +1 -1
  117. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  118. data/lib/google/apis/version.rb +1 -1
  119. metadata +10 -2
@@ -22,37 +22,43 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- class Project
25
+ class Operation
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ResourceId
31
+ class Status
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ListProjectsResponse
37
+ class SearchOrganizationsRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Empty
43
+ class SearchOrganizationsResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class UndeleteProjectRequest
49
+ class Organization
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class GetIamPolicyRequest
55
+ class OrganizationOwner
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class SetIamPolicyRequest
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
58
64
  include Google::Apis::Core::JsonObjectSupport
@@ -70,7 +76,7 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
73
- class SetIamPolicyRequest
79
+ class GetIamPolicyRequest
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
76
82
  include Google::Apis::Core::JsonObjectSupport
@@ -88,64 +94,117 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
91
- class Operation
97
+ class Project
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
97
- class Status
103
+ class ResourceId
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
103
- class Project
109
+ class ListProjectsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Empty
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class UndeleteProjectRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ProjectCreationStatus
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class FolderOperation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class FolderOperationError
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Operation
104
146
  # @private
105
147
  class Representation < Google::Apis::Core::JsonRepresentation
106
- property :project_number, as: 'projectNumber'
107
- property :project_id, as: 'projectId'
108
- property :lifecycle_state, as: 'lifecycleState'
109
148
  property :name, as: 'name'
110
- property :create_time, as: 'createTime'
111
- hash :labels, as: 'labels'
112
- property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
149
+ hash :metadata, as: 'metadata'
150
+ property :done, as: 'done'
151
+ property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
113
152
 
153
+ hash :response, as: 'response'
114
154
  end
115
155
  end
116
156
 
117
- class ResourceId
157
+ class Status
118
158
  # @private
119
159
  class Representation < Google::Apis::Core::JsonRepresentation
120
- property :type, as: 'type'
121
- property :id, as: 'id'
160
+ property :code, as: 'code'
161
+ property :message, as: 'message'
162
+ collection :details, as: 'details'
122
163
  end
123
164
  end
124
165
 
125
- class ListProjectsResponse
166
+ class SearchOrganizationsRequest
126
167
  # @private
127
168
  class Representation < Google::Apis::Core::JsonRepresentation
128
- collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
169
+ property :page_size, as: 'pageSize'
170
+ property :page_token, as: 'pageToken'
171
+ property :filter, as: 'filter'
172
+ end
173
+ end
174
+
175
+ class SearchOrganizationsResponse
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
129
179
 
130
180
  property :next_page_token, as: 'nextPageToken'
131
181
  end
132
182
  end
133
183
 
134
- class Empty
184
+ class Organization
135
185
  # @private
136
186
  class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :name, as: 'name'
188
+ property :display_name, as: 'displayName'
189
+ property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
190
+
191
+ property :creation_time, as: 'creationTime'
192
+ property :lifecycle_state, as: 'lifecycleState'
137
193
  end
138
194
  end
139
195
 
140
- class UndeleteProjectRequest
196
+ class OrganizationOwner
141
197
  # @private
142
198
  class Representation < Google::Apis::Core::JsonRepresentation
199
+ property :directory_customer_id, as: 'directoryCustomerId'
143
200
  end
144
201
  end
145
202
 
146
- class GetIamPolicyRequest
203
+ class SetIamPolicyRequest
147
204
  # @private
148
205
  class Representation < Google::Apis::Core::JsonRepresentation
206
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
207
+
149
208
  end
150
209
  end
151
210
 
@@ -167,11 +226,9 @@ module Google
167
226
  end
168
227
  end
169
228
 
170
- class SetIamPolicyRequest
229
+ class GetIamPolicyRequest
171
230
  # @private
172
231
  class Representation < Google::Apis::Core::JsonRepresentation
173
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
174
-
175
232
  end
176
233
  end
177
234
 
@@ -189,24 +246,72 @@ module Google
189
246
  end
190
247
  end
191
248
 
192
- class Operation
249
+ class Project
193
250
  # @private
194
251
  class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :project_number, as: 'projectNumber'
253
+ property :project_id, as: 'projectId'
254
+ property :lifecycle_state, as: 'lifecycleState'
195
255
  property :name, as: 'name'
196
- hash :metadata, as: 'metadata'
197
- property :done, as: 'done'
198
- property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
256
+ property :create_time, as: 'createTime'
257
+ hash :labels, as: 'labels'
258
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
199
259
 
200
- hash :response, as: 'response'
201
260
  end
202
261
  end
203
262
 
204
- class Status
263
+ class ResourceId
205
264
  # @private
206
265
  class Representation < Google::Apis::Core::JsonRepresentation
207
- property :code, as: 'code'
208
- property :message, as: 'message'
209
- collection :details, as: 'details'
266
+ property :type, as: 'type'
267
+ property :id, as: 'id'
268
+ end
269
+ end
270
+
271
+ class ListProjectsResponse
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
275
+
276
+ property :next_page_token, as: 'nextPageToken'
277
+ end
278
+ end
279
+
280
+ class Empty
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ end
284
+ end
285
+
286
+ class UndeleteProjectRequest
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ end
290
+ end
291
+
292
+ class ProjectCreationStatus
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :create_time, as: 'createTime'
296
+ property :gettable, as: 'gettable'
297
+ property :ready, as: 'ready'
298
+ end
299
+ end
300
+
301
+ class FolderOperation
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :display_name, as: 'displayName'
305
+ property :operation_type, as: 'operationType'
306
+ property :source_parent, as: 'sourceParent'
307
+ property :destination_parent, as: 'destinationParent'
308
+ end
309
+ end
310
+
311
+ class FolderOperationError
312
+ # @private
313
+ class Representation < Google::Apis::Core::JsonRepresentation
314
+ property :error_message_id, as: 'errorMessageId'
210
315
  end
211
316
  end
212
317
  end
@@ -47,6 +47,210 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
50
+ # Gets the latest state of a long-running operation. Clients can use this method
51
+ # to poll the operation result at intervals as recommended by the API service.
52
+ # @param [String] name
53
+ # The name of the operation resource.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1/{+name}', options)
73
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
74
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Searches Organization resources that are visible to the user and satisfy the
82
+ # specified filter. This method returns Organizations in an unspecified order.
83
+ # New Organizations do not necessarily appear at the end of the results.
84
+ # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
85
+ # @param [String] fields
86
+ # Selector specifying which fields to include in a partial response.
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [Google::Apis::RequestOptions] options
91
+ # Request-specific options
92
+ #
93
+ # @yield [result, err] Result & error if block supplied
94
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
95
+ # @yieldparam err [StandardError] error object if request failed
96
+ #
97
+ # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
98
+ #
99
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
102
+ def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
103
+ command = make_simple_command(:post, 'v1/organizations:search', options)
104
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
105
+ command.request_object = search_organizations_request_object
106
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
107
+ command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
108
+ command.query['fields'] = fields unless fields.nil?
109
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
110
+ execute_or_queue_command(command, &block)
111
+ end
112
+
113
+ # Fetches an Organization resource identified by the specified resource name.
114
+ # @param [String] name
115
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
116
+ # @param [String] fields
117
+ # Selector specifying which fields to include in a partial response.
118
+ # @param [String] quota_user
119
+ # Available to use for quota purposes for server-side applications. Can be any
120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
121
+ # @param [Google::Apis::RequestOptions] options
122
+ # Request-specific options
123
+ #
124
+ # @yield [result, err] Result & error if block supplied
125
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
126
+ # @yieldparam err [StandardError] error object if request failed
127
+ #
128
+ # @return [Google::Apis::CloudresourcemanagerV1::Organization]
129
+ #
130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
133
+ def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
134
+ command = make_simple_command(:get, 'v1/{+name}', options)
135
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
136
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
137
+ command.params['name'] = name unless name.nil?
138
+ command.query['fields'] = fields unless fields.nil?
139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
140
+ execute_or_queue_command(command, &block)
141
+ end
142
+
143
+ # Sets the access control policy on an Organization resource. Replaces any
144
+ # existing policy. The `resource` field should be the organization's resource
145
+ # name, e.g. "organizations/123".
146
+ # @param [String] resource
147
+ # REQUIRED: The resource for which the policy is being specified. `resource` is
148
+ # usually specified as a path. For example, a Project resource is specified as `
149
+ # projects/`project``.
150
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
151
+ # @param [String] fields
152
+ # Selector specifying which fields to include in a partial response.
153
+ # @param [String] quota_user
154
+ # Available to use for quota purposes for server-side applications. Can be any
155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
156
+ # @param [Google::Apis::RequestOptions] options
157
+ # Request-specific options
158
+ #
159
+ # @yield [result, err] Result & error if block supplied
160
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
161
+ # @yieldparam err [StandardError] error object if request failed
162
+ #
163
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
164
+ #
165
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
168
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
170
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
171
+ command.request_object = set_iam_policy_request_object
172
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
173
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
174
+ command.params['resource'] = resource unless resource.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Gets the access control policy for an Organization resource. May be empty if
181
+ # no such policy or resource exists. The `resource` field should be the
182
+ # organization's resource name, e.g. "organizations/123".
183
+ # @param [String] resource
184
+ # REQUIRED: The resource for which the policy is being requested. `resource` is
185
+ # usually specified as a path. For example, a Project resource is specified as `
186
+ # projects/`project``.
187
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
207
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
208
+ command.request_object = get_iam_policy_request_object
209
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
210
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
211
+ command.params['resource'] = resource unless resource.nil?
212
+ command.query['fields'] = fields unless fields.nil?
213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Returns permissions that a caller has on the specified Organization. The `
218
+ # resource` field should be the organization's resource name, e.g. "
219
+ # organizations/123".
220
+ # @param [String] resource
221
+ # REQUIRED: The resource for which the policy detail is being requested. `
222
+ # resource` is usually specified as a path. For example, a Project resource is
223
+ # specified as `projects/`project``.
224
+ # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
244
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
245
+ command.request_object = test_iam_permissions_request_object
246
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
247
+ command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
248
+ command.params['resource'] = resource unless resource.nil?
249
+ command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
50
254
  # Retrieves the Project identified by the specified `project_id` (for example, `
51
255
  # my-project-123`). The caller must have read permissions for this Project.
52
256
  # @param [String] project_id
@@ -127,6 +331,42 @@ module Google
127
331
  execute_or_queue_command(command, &block)
128
332
  end
129
333
 
334
+ # Request that a new Project be created. The result is an Operation which can be
335
+ # used to track the creation process. It is automatically deleted after a few
336
+ # hours, so there is no need to call DeleteOperation. Our SLO permits Project
337
+ # creation to take up to 30 seconds at the 90th percentile. As of 2016-08-29, we
338
+ # are observing 6 seconds 50th percentile latency. 95th percentile latency is
339
+ # around 11 seconds. We recommend polling at the 5th second with an exponential
340
+ # backoff.
341
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:post, 'v1/projects', options)
361
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
362
+ command.request_object = project_object
363
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
364
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
365
+ command.query['fields'] = fields unless fields.nil?
366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
367
+ execute_or_queue_command(command, &block)
368
+ end
369
+
130
370
  # Updates the attributes of the Project identified by the specified `project_id`
131
371
  # (for example, `my-project-123`). The caller must have modify permissions for
132
372
  # this Project.
@@ -242,9 +482,8 @@ module Google
242
482
  # denied if the policy or the resource does not exist.
243
483
  # @param [String] resource
244
484
  # REQUIRED: The resource for which the policy is being requested. `resource` is
245
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
246
- # disk*`. The format for the path specified in this value is resource specific
247
- # and is specified in the `getIamPolicy` documentation.
485
+ # usually specified as a path. For example, a Project resource is specified as `
486
+ # projects/`project``.
248
487
  # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
249
488
  # @param [String] fields
250
489
  # Selector specifying which fields to include in a partial response.
@@ -287,11 +526,10 @@ module Google
287
526
  # accept the invitation. + Invitations to grant the owner role cannot be sent
288
527
  # using `setIamPolicy()`; they must be sent only using the Cloud Platform
289
528
  # Console. + Membership changes that leave the project without any owners that
290
- # have accepted the Terms of Service (ToS) will be rejected. + Members cannot be
291
- # added to more than one role in the same policy. + There must be at least one
292
- # owner who has accepted the Terms of Service (ToS) agreement in the policy.
293
- # Calling `setIamPolicy()` to to remove the last ToS-accepted owner from the
294
- # policy will fail. This restriction also applies to legacy projects that no
529
+ # have accepted the Terms of Service (ToS) will be rejected. + There must be at
530
+ # least one owner who has accepted the Terms of Service (ToS) agreement in the
531
+ # policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
532
+ # the policy will fail. This restriction also applies to legacy projects that no
295
533
  # longer have owners who have accepted the ToS. Edits to IAM policies will be
296
534
  # rejected until the lack of a ToS-accepting owner is rectified. + Calling this
297
535
  # method requires enabling the App Engine Admin API. Note: Removing service
@@ -300,9 +538,8 @@ module Google
300
538
  # used before removing or updating its roles.
301
539
  # @param [String] resource
302
540
  # REQUIRED: The resource for which the policy is being specified. `resource` is
303
- # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
304
- # disk*`. The format for the path specified in this value is resource specific
305
- # and is specified in the `setIamPolicy` documentation.
541
+ # usually specified as a path. For example, a Project resource is specified as `
542
+ # projects/`project``.
306
543
  # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
307
544
  # @param [String] fields
308
545
  # Selector specifying which fields to include in a partial response.
@@ -336,9 +573,8 @@ module Google
336
573
  # Returns permissions that a caller has on the specified Project.
337
574
  # @param [String] resource
338
575
  # REQUIRED: The resource for which the policy detail is being requested. `
339
- # resource` is usually specified as a path, such as `projects/*project*/zones/*
340
- # zone*/disks/*disk*`. The format for the path specified in this value is
341
- # resource specific and is specified in the `testIamPermissions` documentation.
576
+ # resource` is usually specified as a path. For example, a Project resource is
577
+ # specified as `projects/`project``.
342
578
  # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
343
579
  # @param [String] fields
344
580
  # Selector specifying which fields to include in a partial response.
@@ -368,37 +604,6 @@ module Google
368
604
  command.query['quotaUser'] = quota_user unless quota_user.nil?
369
605
  execute_or_queue_command(command, &block)
370
606
  end
371
-
372
- # Gets the latest state of a long-running operation. Clients can use this method
373
- # to poll the operation result at intervals as recommended by the API service.
374
- # @param [String] name
375
- # The name of the operation resource.
376
- # @param [String] fields
377
- # Selector specifying which fields to include in a partial response.
378
- # @param [String] quota_user
379
- # Available to use for quota purposes for server-side applications. Can be any
380
- # arbitrary string assigned to a user, but should not exceed 40 characters.
381
- # @param [Google::Apis::RequestOptions] options
382
- # Request-specific options
383
- #
384
- # @yield [result, err] Result & error if block supplied
385
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
386
- # @yieldparam err [StandardError] error object if request failed
387
- #
388
- # @return [Google::Apis::CloudresourcemanagerV1::Operation]
389
- #
390
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
- # @raise [Google::Apis::AuthorizationError] Authorization is required
393
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
394
- command = make_simple_command(:get, 'v1/{+name}', options)
395
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
396
- command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
397
- command.params['name'] = name unless name.nil?
398
- command.query['fields'] = fields unless fields.nil?
399
- command.query['quotaUser'] = quota_user unless quota_user.nil?
400
- execute_or_queue_command(command, &block)
401
- end
402
607
 
403
608
  protected
404
609