google-api-client 0.9.28 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +10 -0
  4. data/api_names.yaml +36512 -36326
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/analyticsreporting_v4.rb +3 -3
  12. data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
  13. data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
  14. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  15. data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
  16. data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/calendar_v3.rb +1 -1
  19. data/generated/google/apis/classroom_v1.rb +22 -25
  20. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  21. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  22. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
  26. data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
  27. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  28. data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
  29. data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
  30. data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
  31. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
  33. data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
  34. data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
  35. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
  37. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
  41. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  42. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
  43. data/generated/google/apis/cloudtrace_v1.rb +8 -8
  44. data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
  45. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  46. data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +406 -31
  49. data/generated/google/apis/compute_beta/representations.rb +154 -0
  50. data/generated/google/apis/compute_beta/service.rb +262 -9
  51. data/generated/google/apis/compute_v1.rb +1 -1
  52. data/generated/google/apis/compute_v1/classes.rb +17 -20
  53. data/generated/google/apis/content_v2.rb +1 -1
  54. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  55. data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
  56. data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
  57. data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
  58. data/generated/google/apis/dataproc_v1.rb +2 -2
  59. data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
  60. data/generated/google/apis/dataproc_v1/representations.rb +262 -244
  61. data/generated/google/apis/dataproc_v1/service.rb +298 -243
  62. data/generated/google/apis/datastore_v1.rb +4 -4
  63. data/generated/google/apis/datastore_v1/classes.rb +728 -728
  64. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  65. data/generated/google/apis/datastore_v1/service.rb +68 -68
  66. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  67. data/generated/google/apis/drive_v2.rb +1 -1
  68. data/generated/google/apis/drive_v3.rb +1 -1
  69. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  70. data/generated/google/apis/games_management_v1management.rb +1 -1
  71. data/generated/google/apis/games_v1.rb +1 -1
  72. data/generated/google/apis/genomics_v1.rb +7 -7
  73. data/generated/google/apis/genomics_v1/classes.rb +932 -932
  74. data/generated/google/apis/genomics_v1/representations.rb +205 -205
  75. data/generated/google/apis/genomics_v1/service.rb +1228 -1228
  76. data/generated/google/apis/gmail_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +440 -440
  78. data/generated/google/apis/iam_v1/representations.rb +94 -94
  79. data/generated/google/apis/iam_v1/service.rb +60 -60
  80. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  81. data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
  82. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  83. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  84. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  85. data/generated/google/apis/kgsearch_v1/service.rb +21 -21
  86. data/generated/google/apis/language_v1beta1.rb +1 -1
  87. data/generated/google/apis/language_v1beta1/classes.rb +232 -232
  88. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  89. data/generated/google/apis/logging_v2beta1.rb +1 -1
  90. data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
  91. data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
  92. data/generated/google/apis/logging_v2beta1/service.rb +331 -306
  93. data/generated/google/apis/monitoring_v3.rb +1 -1
  94. data/generated/google/apis/monitoring_v3/classes.rb +253 -253
  95. data/generated/google/apis/monitoring_v3/representations.rb +58 -58
  96. data/generated/google/apis/monitoring_v3/service.rb +135 -135
  97. data/generated/google/apis/people_v1.rb +15 -16
  98. data/generated/google/apis/people_v1/classes.rb +985 -855
  99. data/generated/google/apis/people_v1/representations.rb +227 -220
  100. data/generated/google/apis/people_v1/service.rb +58 -52
  101. data/generated/google/apis/plus_domains_v1.rb +1 -1
  102. data/generated/google/apis/plus_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/classes.rb +257 -257
  105. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  106. data/generated/google/apis/pubsub_v1/service.rb +390 -390
  107. data/generated/google/apis/script_v1.rb +17 -17
  108. data/generated/google/apis/script_v1/classes.rb +149 -141
  109. data/generated/google/apis/script_v1/representations.rb +26 -27
  110. data/generated/google/apis/script_v1/service.rb +9 -8
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
  113. data/generated/google/apis/sheets_v4/representations.rb +850 -834
  114. data/generated/google/apis/sheets_v4/service.rb +192 -192
  115. data/generated/google/apis/slides_v1.rb +1 -1
  116. data/generated/google/apis/slides_v1/classes.rb +927 -800
  117. data/generated/google/apis/slides_v1/representations.rb +253 -211
  118. data/generated/google/apis/speech_v1beta1.rb +1 -1
  119. data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
  120. data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
  121. data/generated/google/apis/speech_v1beta1/service.rb +51 -54
  122. data/generated/google/apis/storage_v1.rb +1 -1
  123. data/generated/google/apis/vision_v1.rb +1 -1
  124. data/generated/google/apis/vision_v1/classes.rb +888 -885
  125. data/generated/google/apis/vision_v1/representations.rb +139 -139
  126. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  127. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
  128. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  129. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  130. data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
  131. data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
  132. data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
  133. data/google-api-client.gemspec +2 -2
  134. data/lib/google/apis/core/api_command.rb +1 -1
  135. data/lib/google/apis/core/json_representation.rb +2 -2
  136. data/lib/google/apis/version.rb +1 -1
  137. data/samples/cli/lib/samples/you_tube.rb +4 -1
  138. metadata +36 -30
@@ -22,289 +22,289 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
- class FolderOperationError
25
+ class GetIamPolicyRequest
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 FolderOperation
31
+ class TestIamPermissionsResponse
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 Policy
37
+ class GetAncestryResponse
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 ResourceId
43
+ class OrganizationOwner
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 Ancestor
49
+ class ListProjectsResponse
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 SetIamPolicyRequest
55
+ class GetAncestryRequest
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListOrganizationsResponse
61
+ class Project
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class Binding
67
+ class TestIamPermissionsRequest
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class Empty
73
+ class FolderOperationError
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class UndeleteProjectRequest
79
+ class Policy
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class Organization
85
+ class FolderOperation
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class ProjectCreationStatus
91
+ class ResourceId
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class GetIamPolicyRequest
97
+ class Ancestor
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class TestIamPermissionsResponse
103
+ class ListOrganizationsResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class GetAncestryResponse
109
+ class SetIamPolicyRequest
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class OrganizationOwner
115
+ class Binding
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class ListProjectsResponse
121
+ class Empty
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class GetAncestryRequest
127
+ class UndeleteProjectRequest
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class Project
133
+ class Organization
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class TestIamPermissionsRequest
139
+ class ProjectCreationStatus
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class FolderOperationError
145
+ class GetIamPolicyRequest
146
146
  # @private
147
147
  class Representation < Google::Apis::Core::JsonRepresentation
148
- property :error_message_id, as: 'errorMessageId'
149
148
  end
150
149
  end
151
150
 
152
- class FolderOperation
151
+ class TestIamPermissionsResponse
153
152
  # @private
154
153
  class Representation < Google::Apis::Core::JsonRepresentation
155
- property :operation_type, as: 'operationType'
156
- property :display_name, as: 'displayName'
157
- property :source_parent, as: 'sourceParent'
158
- property :destination_parent, as: 'destinationParent'
154
+ collection :permissions, as: 'permissions'
159
155
  end
160
156
  end
161
157
 
162
- class Policy
158
+ class GetAncestryResponse
163
159
  # @private
164
160
  class Representation < Google::Apis::Core::JsonRepresentation
165
- collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
161
+ collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
166
162
 
167
- property :etag, :base64 => true, as: 'etag'
168
- property :version, as: 'version'
169
163
  end
170
164
  end
171
165
 
172
- class ResourceId
166
+ class OrganizationOwner
173
167
  # @private
174
168
  class Representation < Google::Apis::Core::JsonRepresentation
175
- property :type, as: 'type'
176
- property :id, as: 'id'
169
+ property :directory_customer_id, as: 'directoryCustomerId'
177
170
  end
178
171
  end
179
172
 
180
- class Ancestor
173
+ class ListProjectsResponse
181
174
  # @private
182
175
  class Representation < Google::Apis::Core::JsonRepresentation
183
- property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
176
+ collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
184
177
 
178
+ property :next_page_token, as: 'nextPageToken'
185
179
  end
186
180
  end
187
181
 
188
- class SetIamPolicyRequest
182
+ class GetAncestryRequest
189
183
  # @private
190
184
  class Representation < Google::Apis::Core::JsonRepresentation
191
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
192
-
193
185
  end
194
186
  end
195
187
 
196
- class ListOrganizationsResponse
188
+ class Project
197
189
  # @private
198
190
  class Representation < Google::Apis::Core::JsonRepresentation
199
- property :next_page_token, as: 'nextPageToken'
200
- collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
191
+ property :project_id, as: 'projectId'
192
+ property :lifecycle_state, as: 'lifecycleState'
193
+ property :project_number, as: 'projectNumber'
194
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
201
195
 
196
+ hash :labels, as: 'labels'
197
+ property :create_time, as: 'createTime'
198
+ property :name, as: 'name'
202
199
  end
203
200
  end
204
201
 
205
- class Binding
202
+ class TestIamPermissionsRequest
206
203
  # @private
207
204
  class Representation < Google::Apis::Core::JsonRepresentation
208
- collection :members, as: 'members'
209
- property :role, as: 'role'
205
+ collection :permissions, as: 'permissions'
210
206
  end
211
207
  end
212
208
 
213
- class Empty
209
+ class FolderOperationError
214
210
  # @private
215
211
  class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :error_message_id, as: 'errorMessageId'
216
213
  end
217
214
  end
218
215
 
219
- class UndeleteProjectRequest
216
+ class Policy
220
217
  # @private
221
218
  class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :etag, :base64 => true, as: 'etag'
220
+ property :version, as: 'version'
221
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
222
+
222
223
  end
223
224
  end
224
225
 
225
- class Organization
226
+ class FolderOperation
226
227
  # @private
227
228
  class Representation < Google::Apis::Core::JsonRepresentation
228
- property :organization_id, as: 'organizationId'
229
- property :lifecycle_state, as: 'lifecycleState'
229
+ property :operation_type, as: 'operationType'
230
230
  property :display_name, as: 'displayName'
231
- property :creation_time, as: 'creationTime'
232
- property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
233
-
234
- property :name, as: 'name'
231
+ property :source_parent, as: 'sourceParent'
232
+ property :destination_parent, as: 'destinationParent'
235
233
  end
236
234
  end
237
235
 
238
- class ProjectCreationStatus
236
+ class ResourceId
239
237
  # @private
240
238
  class Representation < Google::Apis::Core::JsonRepresentation
241
- property :create_time, as: 'createTime'
242
- property :gettable, as: 'gettable'
243
- property :ready, as: 'ready'
239
+ property :type, as: 'type'
240
+ property :id, as: 'id'
244
241
  end
245
242
  end
246
243
 
247
- class GetIamPolicyRequest
244
+ class Ancestor
248
245
  # @private
249
246
  class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
248
+
250
249
  end
251
250
  end
252
251
 
253
- class TestIamPermissionsResponse
252
+ class ListOrganizationsResponse
254
253
  # @private
255
254
  class Representation < Google::Apis::Core::JsonRepresentation
256
- collection :permissions, as: 'permissions'
255
+ property :next_page_token, as: 'nextPageToken'
256
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
257
+
257
258
  end
258
259
  end
259
260
 
260
- class GetAncestryResponse
261
+ class SetIamPolicyRequest
261
262
  # @private
262
263
  class Representation < Google::Apis::Core::JsonRepresentation
263
- collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
264
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
264
265
 
265
266
  end
266
267
  end
267
268
 
268
- class OrganizationOwner
269
+ class Binding
269
270
  # @private
270
271
  class Representation < Google::Apis::Core::JsonRepresentation
271
- property :directory_customer_id, as: 'directoryCustomerId'
272
+ collection :members, as: 'members'
273
+ property :role, as: 'role'
272
274
  end
273
275
  end
274
276
 
275
- class ListProjectsResponse
277
+ class Empty
276
278
  # @private
277
279
  class Representation < Google::Apis::Core::JsonRepresentation
278
- collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
279
-
280
- property :next_page_token, as: 'nextPageToken'
281
280
  end
282
281
  end
283
282
 
284
- class GetAncestryRequest
283
+ class UndeleteProjectRequest
285
284
  # @private
286
285
  class Representation < Google::Apis::Core::JsonRepresentation
287
286
  end
288
287
  end
289
288
 
290
- class Project
289
+ class Organization
291
290
  # @private
292
291
  class Representation < Google::Apis::Core::JsonRepresentation
293
- property :create_time, as: 'createTime'
294
- hash :labels, as: 'labels'
292
+ property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
293
+
295
294
  property :name, as: 'name'
296
- property :project_id, as: 'projectId'
295
+ property :organization_id, as: 'organizationId'
297
296
  property :lifecycle_state, as: 'lifecycleState'
298
- property :project_number, as: 'projectNumber'
299
- property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
300
-
297
+ property :display_name, as: 'displayName'
298
+ property :creation_time, as: 'creationTime'
301
299
  end
302
300
  end
303
301
 
304
- class TestIamPermissionsRequest
302
+ class ProjectCreationStatus
305
303
  # @private
306
304
  class Representation < Google::Apis::Core::JsonRepresentation
307
- collection :permissions, as: 'permissions'
305
+ property :ready, as: 'ready'
306
+ property :create_time, as: 'createTime'
307
+ property :gettable, as: 'gettable'
308
308
  end
309
309
  end
310
310
  end
@@ -47,161 +47,212 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Retrieves the Project identified by the specified
51
- # `project_id` (for example, `my-project-123`).
52
- # The caller must have read permissions for this Project.
53
- # @param [String] project_id
54
- # The Project ID (for example, `my-project-123`).
55
- # Required.
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
50
+ # Lists Organization resources that are visible to the user and satisfy
51
+ # the specified filter. This method returns Organizations in an unspecified
52
+ # order. New Organizations do not necessarily appear at the end of the list.
53
+ # @param [String] page_token
54
+ # A pagination token returned from a previous call to `ListOrganizations`
55
+ # that indicates from where listing should continue.
56
+ # This field is optional.
57
+ # @param [Fixnum] page_size
58
+ # The maximum number of Organizations to return in the response.
59
+ # This field is optional.
60
+ # @param [String] filter
61
+ # An optional query string used to filter the Organizations to return in
62
+ # the response. Filter rules are case-insensitive.
63
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
64
+ # `domain`, where the domain is a Google for Work domain, for example:
65
+ # |Filter|Description|
66
+ # |------|-----------|
67
+ # |owner.directorycustomerid:123456789|Organizations with `owner.
68
+ # directory_customer_id` equal to `123456789`.|
69
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
70
+ # This field is optional.
58
71
  # @param [String] quota_user
59
72
  # Available to use for quota purposes for server-side applications. Can be any
60
73
  # arbitrary string assigned to a user, but should not exceed 40 characters.
74
+ # @param [String] fields
75
+ # Selector specifying which fields to include in a partial response.
61
76
  # @param [Google::Apis::RequestOptions] options
62
77
  # Request-specific options
63
78
  #
64
79
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
80
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
66
81
  # @yieldparam err [StandardError] error object if request failed
67
82
  #
68
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
83
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
69
84
  #
70
85
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
86
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
87
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
75
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
76
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
77
- command.params['projectId'] = project_id unless project_id.nil?
78
- command.query['fields'] = fields unless fields.nil?
88
+ def list_organizations(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
89
+ command = make_simple_command(:get, 'v1beta1/organizations', options)
90
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
91
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
92
+ command.query['pageToken'] = page_token unless page_token.nil?
93
+ command.query['pageSize'] = page_size unless page_size.nil?
94
+ command.query['filter'] = filter unless filter.nil?
79
95
  command.query['quotaUser'] = quota_user unless quota_user.nil?
96
+ command.query['fields'] = fields unless fields.nil?
80
97
  execute_or_queue_command(command, &block)
81
98
  end
82
99
 
83
- # Restores the Project identified by the specified
84
- # `project_id` (for example, `my-project-123`).
85
- # You can only use this method for a Project that has a lifecycle state of
86
- # DELETE_REQUESTED.
87
- # After deletion starts, the Project cannot be restored.
88
- # The caller must have modify permissions for this Project.
89
- # @param [String] project_id
90
- # The project ID (for example, `foo-bar-123`).
91
- # Required.
92
- # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
93
- # @param [String] fields
94
- # Selector specifying which fields to include in a partial response.
100
+ # Sets the access control policy on an Organization resource. Replaces any
101
+ # existing policy. The `resource` field should be the organization's resource
102
+ # name, e.g. "organizations/123".
103
+ # @param [String] resource
104
+ # REQUIRED: The resource for which the policy is being specified.
105
+ # `resource` is usually specified as a path. For example, a Project
106
+ # resource is specified as `projects/`project``.
107
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
95
108
  # @param [String] quota_user
96
109
  # Available to use for quota purposes for server-side applications. Can be any
97
110
  # arbitrary string assigned to a user, but should not exceed 40 characters.
111
+ # @param [String] fields
112
+ # Selector specifying which fields to include in a partial response.
98
113
  # @param [Google::Apis::RequestOptions] options
99
114
  # Request-specific options
100
115
  #
101
116
  # @yield [result, err] Result & error if block supplied
102
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
117
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
103
118
  # @yieldparam err [StandardError] error object if request failed
104
119
  #
105
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
120
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
106
121
  #
107
122
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
123
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
124
  # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
111
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
112
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
113
- command.request_object = undelete_project_request_object
114
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
115
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
116
- command.params['projectId'] = project_id unless project_id.nil?
117
- command.query['fields'] = fields unless fields.nil?
125
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
126
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
127
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
128
+ command.request_object = set_iam_policy_request_object
129
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
130
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
131
+ command.params['resource'] = resource unless resource.nil?
118
132
  command.query['quotaUser'] = quota_user unless quota_user.nil?
133
+ command.query['fields'] = fields unless fields.nil?
119
134
  execute_or_queue_command(command, &block)
120
135
  end
121
136
 
122
- # Gets a list of ancestors in the resource hierarchy for the Project
123
- # identified by the specified `project_id` (for example, `my-project-123`).
124
- # The caller must have read permissions for this Project.
125
- # @param [String] project_id
126
- # The Project ID (for example, `my-project-123`).
127
- # Required.
128
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
129
- # @param [String] fields
130
- # Selector specifying which fields to include in a partial response.
137
+ # Gets the access control policy for an Organization resource. May be empty
138
+ # if no such policy or resource exists. The `resource` field should be the
139
+ # organization's resource name, e.g. "organizations/123".
140
+ # @param [String] resource
141
+ # REQUIRED: The resource for which the policy is being requested.
142
+ # `resource` is usually specified as a path. For example, a Project
143
+ # resource is specified as `projects/`project``.
144
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
131
145
  # @param [String] quota_user
132
146
  # Available to use for quota purposes for server-side applications. Can be any
133
147
  # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
134
150
  # @param [Google::Apis::RequestOptions] options
135
151
  # Request-specific options
136
152
  #
137
153
  # @yield [result, err] Result & error if block supplied
138
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
154
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
139
155
  # @yieldparam err [StandardError] error object if request failed
140
156
  #
141
- # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
157
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
142
158
  #
143
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
148
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
149
- command.request_object = get_ancestry_request_object
150
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
151
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
152
- command.params['projectId'] = project_id unless project_id.nil?
153
- command.query['fields'] = fields unless fields.nil?
162
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
163
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
164
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
165
+ command.request_object = get_iam_policy_request_object
166
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
167
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
168
+ command.params['resource'] = resource unless resource.nil?
154
169
  command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ command.query['fields'] = fields unless fields.nil?
155
171
  execute_or_queue_command(command, &block)
156
172
  end
157
173
 
158
- # Updates the attributes of the Project identified by the specified
159
- # `project_id` (for example, `my-project-123`).
160
- # The caller must have modify permissions for this Project.
161
- # @param [String] project_id
162
- # The project ID (for example, `my-project-123`).
163
- # Required.
164
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
174
+ # Fetches an Organization resource identified by the specified resource name.
175
+ # @param [String] name
176
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
177
+ # @param [String] organization_id
178
+ # The id of the Organization resource to fetch.
179
+ # This field is deprecated and will be removed in v1. Use name instead.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
183
  # @param [String] fields
166
184
  # Selector specifying which fields to include in a partial response.
185
+ # @param [Google::Apis::RequestOptions] options
186
+ # Request-specific options
187
+ #
188
+ # @yield [result, err] Result & error if block supplied
189
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
190
+ # @yieldparam err [StandardError] error object if request failed
191
+ #
192
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
193
+ #
194
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
195
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
196
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
197
+ def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
198
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
199
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
200
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
201
+ command.params['name'] = name unless name.nil?
202
+ command.query['organizationId'] = organization_id unless organization_id.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ command.query['fields'] = fields unless fields.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Updates an Organization resource identified by the specified resource name.
209
+ # @param [String] name
210
+ # Output Only. The resource name of the organization. This is the
211
+ # organization's relative path in the API. Its format is
212
+ # "organizations/[organization_id]". For example, "organizations/1234".
213
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
167
214
  # @param [String] quota_user
168
215
  # Available to use for quota purposes for server-side applications. Can be any
169
216
  # arbitrary string assigned to a user, but should not exceed 40 characters.
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
170
219
  # @param [Google::Apis::RequestOptions] options
171
220
  # Request-specific options
172
221
  #
173
222
  # @yield [result, err] Result & error if block supplied
174
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
223
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
175
224
  # @yieldparam err [StandardError] error object if request failed
176
225
  #
177
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
226
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
178
227
  #
179
228
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
180
229
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
181
230
  # @raise [Google::Apis::AuthorizationError] Authorization is required
182
- def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
183
- command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
184
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
185
- command.request_object = project_object
186
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
187
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
188
- command.params['projectId'] = project_id unless project_id.nil?
189
- command.query['fields'] = fields unless fields.nil?
231
+ def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
232
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
233
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
234
+ command.request_object = organization_object
235
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
236
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
237
+ command.params['name'] = name unless name.nil?
190
238
  command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ command.query['fields'] = fields unless fields.nil?
191
240
  execute_or_queue_command(command, &block)
192
241
  end
193
242
 
194
- # Returns permissions that a caller has on the specified Project.
243
+ # Returns permissions that a caller has on the specified Organization.
244
+ # The `resource` field should be the organization's resource name,
245
+ # e.g. "organizations/123".
195
246
  # @param [String] resource
196
247
  # REQUIRED: The resource for which the policy detail is being requested.
197
248
  # `resource` is usually specified as a path. For example, a Project
198
249
  # resource is specified as `projects/`project``.
199
250
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
200
- # @param [String] fields
201
- # Selector specifying which fields to include in a partial response.
202
251
  # @param [String] quota_user
203
252
  # Available to use for quota purposes for server-side applications. Can be any
204
253
  # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [String] fields
255
+ # Selector specifying which fields to include in a partial response.
205
256
  # @param [Google::Apis::RequestOptions] options
206
257
  # Request-specific options
207
258
  #
@@ -214,15 +265,15 @@ module Google
214
265
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
266
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
267
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
268
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
269
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
219
270
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
220
271
  command.request_object = test_iam_permissions_request_object
221
272
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
222
273
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
223
274
  command.params['resource'] = resource unless resource.nil?
224
- command.query['fields'] = fields unless fields.nil?
225
275
  command.query['quotaUser'] = quota_user unless quota_user.nil?
276
+ command.query['fields'] = fields unless fields.nil?
226
277
  execute_or_queue_command(command, &block)
227
278
  end
228
279
 
@@ -248,11 +299,11 @@ module Google
248
299
  # @param [String] project_id
249
300
  # The Project ID (for example, `foo-bar-123`).
250
301
  # Required.
251
- # @param [String] fields
252
- # Selector specifying which fields to include in a partial response.
253
302
  # @param [String] quota_user
254
303
  # Available to use for quota purposes for server-side applications. Can be any
255
304
  # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # @param [String] fields
306
+ # Selector specifying which fields to include in a partial response.
256
307
  # @param [Google::Apis::RequestOptions] options
257
308
  # Request-specific options
258
309
  #
@@ -265,24 +316,19 @@ module Google
265
316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
268
- def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
319
+ def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
269
320
  command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
270
321
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
271
322
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
272
323
  command.params['projectId'] = project_id unless project_id.nil?
273
- command.query['fields'] = fields unless fields.nil?
274
324
  command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ command.query['fields'] = fields unless fields.nil?
275
326
  execute_or_queue_command(command, &block)
276
327
  end
277
328
 
278
329
  # Lists Projects that are visible to the user and satisfy the
279
330
  # specified filter. This method returns Projects in an unspecified order.
280
331
  # New Projects do not necessarily appear at the end of the list.
281
- # @param [Fixnum] page_size
282
- # The maximum number of Projects to return in the response.
283
- # The server can return fewer Projects than requested.
284
- # If unspecified, server picks an appropriate default.
285
- # Optional.
286
332
  # @param [String] filter
287
333
  # An expression for filtering the results of the request. Filter rules are
288
334
  # case insensitive. The fields eligible for filtering are:
@@ -305,11 +351,16 @@ module Google
305
351
  # A pagination token returned from a previous call to ListProjects
306
352
  # that indicates from where listing should continue.
307
353
  # Optional.
308
- # @param [String] fields
309
- # Selector specifying which fields to include in a partial response.
354
+ # @param [Fixnum] page_size
355
+ # The maximum number of Projects to return in the response.
356
+ # The server can return fewer Projects than requested.
357
+ # If unspecified, server picks an appropriate default.
358
+ # Optional.
310
359
  # @param [String] quota_user
311
360
  # Available to use for quota purposes for server-side applications. Can be any
312
361
  # arbitrary string assigned to a user, but should not exceed 40 characters.
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
313
364
  # @param [Google::Apis::RequestOptions] options
314
365
  # Request-specific options
315
366
  #
@@ -322,53 +373,15 @@ module Google
322
373
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
374
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
375
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def list_projects(page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ def list_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
326
377
  command = make_simple_command(:get, 'v1beta1/projects', options)
327
378
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
328
379
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
329
- command.query['pageSize'] = page_size unless page_size.nil?
330
380
  command.query['filter'] = filter unless filter.nil?
331
381
  command.query['pageToken'] = page_token unless page_token.nil?
332
- command.query['fields'] = fields unless fields.nil?
382
+ command.query['pageSize'] = page_size unless page_size.nil?
333
383
  command.query['quotaUser'] = quota_user unless quota_user.nil?
334
- execute_or_queue_command(command, &block)
335
- end
336
-
337
- # Creates a Project resource.
338
- # Initially, the Project resource is owned by its creator exclusively.
339
- # The creator can later grant permission to others to read or update the
340
- # Project.
341
- # Several APIs are activated automatically for the Project, including
342
- # Google Cloud Storage.
343
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
344
- # @param [Boolean] use_legacy_stack
345
- # A safety hatch to opt out of the new reliable project creation process.
346
- # @param [String] fields
347
- # Selector specifying which fields to include in a partial response.
348
- # @param [String] quota_user
349
- # Available to use for quota purposes for server-side applications. Can be any
350
- # arbitrary string assigned to a user, but should not exceed 40 characters.
351
- # @param [Google::Apis::RequestOptions] options
352
- # Request-specific options
353
- #
354
- # @yield [result, err] Result & error if block supplied
355
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
356
- # @yieldparam err [StandardError] error object if request failed
357
- #
358
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
359
- #
360
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
- # @raise [Google::Apis::AuthorizationError] Authorization is required
363
- def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
364
- command = make_simple_command(:post, 'v1beta1/projects', options)
365
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
366
- command.request_object = project_object
367
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
368
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
369
- command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
370
384
  command.query['fields'] = fields unless fields.nil?
371
- command.query['quotaUser'] = quota_user unless quota_user.nil?
372
385
  execute_or_queue_command(command, &block)
373
386
  end
374
387
 
@@ -403,11 +416,11 @@ module Google
403
416
  # `resource` is usually specified as a path. For example, a Project
404
417
  # resource is specified as `projects/`project``.
405
418
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
406
- # @param [String] fields
407
- # Selector specifying which fields to include in a partial response.
408
419
  # @param [String] quota_user
409
420
  # Available to use for quota purposes for server-side applications. Can be any
410
421
  # arbitrary string assigned to a user, but should not exceed 40 characters.
422
+ # @param [String] fields
423
+ # Selector specifying which fields to include in a partial response.
411
424
  # @param [Google::Apis::RequestOptions] options
412
425
  # Request-specific options
413
426
  #
@@ -420,15 +433,53 @@ module Google
420
433
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
421
434
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
422
435
  # @raise [Google::Apis::AuthorizationError] Authorization is required
423
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
436
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
424
437
  command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
425
438
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
426
439
  command.request_object = set_iam_policy_request_object
427
440
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
428
441
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
429
442
  command.params['resource'] = resource unless resource.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
444
  command.query['fields'] = fields unless fields.nil?
445
+ execute_or_queue_command(command, &block)
446
+ end
447
+
448
+ # Creates a Project resource.
449
+ # Initially, the Project resource is owned by its creator exclusively.
450
+ # The creator can later grant permission to others to read or update the
451
+ # Project.
452
+ # Several APIs are activated automatically for the Project, including
453
+ # Google Cloud Storage.
454
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
455
+ # @param [Boolean] use_legacy_stack
456
+ # A safety hatch to opt out of the new reliable project creation process.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [String] fields
461
+ # Selector specifying which fields to include in a partial response.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
475
+ command = make_simple_command(:post, 'v1beta1/projects', options)
476
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
477
+ command.request_object = project_object
478
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
479
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
480
+ command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
431
481
  command.query['quotaUser'] = quota_user unless quota_user.nil?
482
+ command.query['fields'] = fields unless fields.nil?
432
483
  execute_or_queue_command(command, &block)
433
484
  end
434
485
 
@@ -439,11 +490,11 @@ module Google
439
490
  # `resource` is usually specified as a path. For example, a Project
440
491
  # resource is specified as `projects/`project``.
441
492
  # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
442
- # @param [String] fields
443
- # Selector specifying which fields to include in a partial response.
444
493
  # @param [String] quota_user
445
494
  # Available to use for quota purposes for server-side applications. Can be any
446
495
  # arbitrary string assigned to a user, but should not exceed 40 characters.
496
+ # @param [String] fields
497
+ # Selector specifying which fields to include in a partial response.
447
498
  # @param [Google::Apis::RequestOptions] options
448
499
  # Request-specific options
449
500
  #
@@ -456,224 +507,173 @@ module Google
456
507
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
508
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
509
  # @raise [Google::Apis::AuthorizationError] Authorization is required
459
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
510
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
460
511
  command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
461
512
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
462
513
  command.request_object = get_iam_policy_request_object
463
514
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
464
515
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
465
516
  command.params['resource'] = resource unless resource.nil?
466
- command.query['fields'] = fields unless fields.nil?
467
517
  command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ command.query['fields'] = fields unless fields.nil?
468
519
  execute_or_queue_command(command, &block)
469
520
  end
470
521
 
471
- # Lists Organization resources that are visible to the user and satisfy
472
- # the specified filter. This method returns Organizations in an unspecified
473
- # order. New Organizations do not necessarily appear at the end of the list.
474
- # @param [String] filter
475
- # An optional query string used to filter the Organizations to return in
476
- # the response. Filter rules are case-insensitive.
477
- # Organizations may be filtered by `owner.directoryCustomerId` or by
478
- # `domain`, where the domain is a Google for Work domain, for example:
479
- # |Filter|Description|
480
- # |------|-----------|
481
- # |owner.directorycustomerid:123456789|Organizations with `owner.
482
- # directory_customer_id` equal to `123456789`.|
483
- # |domain:google.com|Organizations corresponding to the domain `google.com`.|
484
- # This field is optional.
485
- # @param [String] page_token
486
- # A pagination token returned from a previous call to `ListOrganizations`
487
- # that indicates from where listing should continue.
488
- # This field is optional.
489
- # @param [Fixnum] page_size
490
- # The maximum number of Organizations to return in the response.
491
- # This field is optional.
492
- # @param [String] fields
493
- # Selector specifying which fields to include in a partial response.
522
+ # Retrieves the Project identified by the specified
523
+ # `project_id` (for example, `my-project-123`).
524
+ # The caller must have read permissions for this Project.
525
+ # @param [String] project_id
526
+ # The Project ID (for example, `my-project-123`).
527
+ # Required.
494
528
  # @param [String] quota_user
495
529
  # Available to use for quota purposes for server-side applications. Can be any
496
530
  # arbitrary string assigned to a user, but should not exceed 40 characters.
497
- # @param [Google::Apis::RequestOptions] options
498
- # Request-specific options
499
- #
500
- # @yield [result, err] Result & error if block supplied
501
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
502
- # @yieldparam err [StandardError] error object if request failed
503
- #
504
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
505
- #
506
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
507
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
508
- # @raise [Google::Apis::AuthorizationError] Authorization is required
509
- def list_organizations(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
510
- command = make_simple_command(:get, 'v1beta1/organizations', options)
511
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
512
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
513
- command.query['filter'] = filter unless filter.nil?
514
- command.query['pageToken'] = page_token unless page_token.nil?
515
- command.query['pageSize'] = page_size unless page_size.nil?
516
- command.query['fields'] = fields unless fields.nil?
517
- command.query['quotaUser'] = quota_user unless quota_user.nil?
518
- execute_or_queue_command(command, &block)
519
- end
520
-
521
- # Sets the access control policy on an Organization resource. Replaces any
522
- # existing policy. The `resource` field should be the organization's resource
523
- # name, e.g. "organizations/123".
524
- # @param [String] resource
525
- # REQUIRED: The resource for which the policy is being specified.
526
- # `resource` is usually specified as a path. For example, a Project
527
- # resource is specified as `projects/`project``.
528
- # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
529
531
  # @param [String] fields
530
532
  # Selector specifying which fields to include in a partial response.
531
- # @param [String] quota_user
532
- # Available to use for quota purposes for server-side applications. Can be any
533
- # arbitrary string assigned to a user, but should not exceed 40 characters.
534
533
  # @param [Google::Apis::RequestOptions] options
535
534
  # Request-specific options
536
535
  #
537
536
  # @yield [result, err] Result & error if block supplied
538
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
537
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
539
538
  # @yieldparam err [StandardError] error object if request failed
540
539
  #
541
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
540
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
542
541
  #
543
542
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
543
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
544
  # @raise [Google::Apis::AuthorizationError] Authorization is required
546
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
547
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
548
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
549
- command.request_object = set_iam_policy_request_object
550
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
551
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
552
- command.params['resource'] = resource unless resource.nil?
553
- command.query['fields'] = fields unless fields.nil?
545
+ def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
546
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
547
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
548
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
549
+ command.params['projectId'] = project_id unless project_id.nil?
554
550
  command.query['quotaUser'] = quota_user unless quota_user.nil?
551
+ command.query['fields'] = fields unless fields.nil?
555
552
  execute_or_queue_command(command, &block)
556
553
  end
557
554
 
558
- # Gets the access control policy for an Organization resource. May be empty
559
- # if no such policy or resource exists. The `resource` field should be the
560
- # organization's resource name, e.g. "organizations/123".
561
- # @param [String] resource
562
- # REQUIRED: The resource for which the policy is being requested.
563
- # `resource` is usually specified as a path. For example, a Project
564
- # resource is specified as `projects/`project``.
565
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
566
- # @param [String] fields
567
- # Selector specifying which fields to include in a partial response.
555
+ # Restores the Project identified by the specified
556
+ # `project_id` (for example, `my-project-123`).
557
+ # You can only use this method for a Project that has a lifecycle state of
558
+ # DELETE_REQUESTED.
559
+ # After deletion starts, the Project cannot be restored.
560
+ # The caller must have modify permissions for this Project.
561
+ # @param [String] project_id
562
+ # The project ID (for example, `foo-bar-123`).
563
+ # Required.
564
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
568
565
  # @param [String] quota_user
569
566
  # Available to use for quota purposes for server-side applications. Can be any
570
567
  # arbitrary string assigned to a user, but should not exceed 40 characters.
568
+ # @param [String] fields
569
+ # Selector specifying which fields to include in a partial response.
571
570
  # @param [Google::Apis::RequestOptions] options
572
571
  # Request-specific options
573
572
  #
574
573
  # @yield [result, err] Result & error if block supplied
575
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
574
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
576
575
  # @yieldparam err [StandardError] error object if request failed
577
576
  #
578
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
577
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
579
578
  #
580
579
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
580
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
581
  # @raise [Google::Apis::AuthorizationError] Authorization is required
583
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
584
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
585
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
586
- command.request_object = get_iam_policy_request_object
587
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
588
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
589
- command.params['resource'] = resource unless resource.nil?
590
- command.query['fields'] = fields unless fields.nil?
582
+ def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
583
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
584
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
585
+ command.request_object = undelete_project_request_object
586
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
587
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
588
+ command.params['projectId'] = project_id unless project_id.nil?
591
589
  command.query['quotaUser'] = quota_user unless quota_user.nil?
590
+ command.query['fields'] = fields unless fields.nil?
592
591
  execute_or_queue_command(command, &block)
593
592
  end
594
593
 
595
- # Fetches an Organization resource identified by the specified resource name.
596
- # @param [String] name
597
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
598
- # @param [String] organization_id
599
- # The id of the Organization resource to fetch.
600
- # This field is deprecated and will be removed in v1. Use name instead.
601
- # @param [String] fields
602
- # Selector specifying which fields to include in a partial response.
594
+ # Updates the attributes of the Project identified by the specified
595
+ # `project_id` (for example, `my-project-123`).
596
+ # The caller must have modify permissions for this Project.
597
+ # @param [String] project_id
598
+ # The project ID (for example, `my-project-123`).
599
+ # Required.
600
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
603
601
  # @param [String] quota_user
604
602
  # Available to use for quota purposes for server-side applications. Can be any
605
603
  # arbitrary string assigned to a user, but should not exceed 40 characters.
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
606
  # @param [Google::Apis::RequestOptions] options
607
607
  # Request-specific options
608
608
  #
609
609
  # @yield [result, err] Result & error if block supplied
610
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
610
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
611
611
  # @yieldparam err [StandardError] error object if request failed
612
612
  #
613
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
613
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
614
614
  #
615
615
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
616
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
617
  # @raise [Google::Apis::AuthorizationError] Authorization is required
618
- def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
619
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
620
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
621
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
622
- command.params['name'] = name unless name.nil?
623
- command.query['organizationId'] = organization_id unless organization_id.nil?
624
- command.query['fields'] = fields unless fields.nil?
618
+ def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
619
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
620
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
621
+ command.request_object = project_object
622
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
623
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
624
+ command.params['projectId'] = project_id unless project_id.nil?
625
625
  command.query['quotaUser'] = quota_user unless quota_user.nil?
626
+ command.query['fields'] = fields unless fields.nil?
626
627
  execute_or_queue_command(command, &block)
627
628
  end
628
629
 
629
- # Updates an Organization resource identified by the specified resource name.
630
- # @param [String] name
631
- # Output Only. The resource name of the organization. This is the
632
- # organization's relative path in the API. Its format is
633
- # "organizations/[organization_id]". For example, "organizations/1234".
634
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
635
- # @param [String] fields
636
- # Selector specifying which fields to include in a partial response.
630
+ # Gets a list of ancestors in the resource hierarchy for the Project
631
+ # identified by the specified `project_id` (for example, `my-project-123`).
632
+ # The caller must have read permissions for this Project.
633
+ # @param [String] project_id
634
+ # The Project ID (for example, `my-project-123`).
635
+ # Required.
636
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
637
637
  # @param [String] quota_user
638
638
  # Available to use for quota purposes for server-side applications. Can be any
639
639
  # arbitrary string assigned to a user, but should not exceed 40 characters.
640
+ # @param [String] fields
641
+ # Selector specifying which fields to include in a partial response.
640
642
  # @param [Google::Apis::RequestOptions] options
641
643
  # Request-specific options
642
644
  #
643
645
  # @yield [result, err] Result & error if block supplied
644
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
646
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
645
647
  # @yieldparam err [StandardError] error object if request failed
646
648
  #
647
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
649
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
648
650
  #
649
651
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
652
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
653
  # @raise [Google::Apis::AuthorizationError] Authorization is required
652
- def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
653
- command = make_simple_command(:put, 'v1beta1/{+name}', options)
654
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
655
- command.request_object = organization_object
656
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
657
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
658
- command.params['name'] = name unless name.nil?
659
- command.query['fields'] = fields unless fields.nil?
654
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
655
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
656
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
657
+ command.request_object = get_ancestry_request_object
658
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
659
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
660
+ command.params['projectId'] = project_id unless project_id.nil?
660
661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
662
+ command.query['fields'] = fields unless fields.nil?
661
663
  execute_or_queue_command(command, &block)
662
664
  end
663
665
 
664
- # Returns permissions that a caller has on the specified Organization.
665
- # The `resource` field should be the organization's resource name,
666
- # e.g. "organizations/123".
666
+ # Returns permissions that a caller has on the specified Project.
667
667
  # @param [String] resource
668
668
  # REQUIRED: The resource for which the policy detail is being requested.
669
669
  # `resource` is usually specified as a path. For example, a Project
670
670
  # resource is specified as `projects/`project``.
671
671
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
672
- # @param [String] fields
673
- # Selector specifying which fields to include in a partial response.
674
672
  # @param [String] quota_user
675
673
  # Available to use for quota purposes for server-side applications. Can be any
676
674
  # arbitrary string assigned to a user, but should not exceed 40 characters.
675
+ # @param [String] fields
676
+ # Selector specifying which fields to include in a partial response.
677
677
  # @param [Google::Apis::RequestOptions] options
678
678
  # Request-specific options
679
679
  #
@@ -686,15 +686,15 @@ module Google
686
686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
689
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
690
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
689
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
690
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
691
691
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
692
692
  command.request_object = test_iam_permissions_request_object
693
693
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
694
694
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
695
695
  command.params['resource'] = resource unless resource.nil?
696
- command.query['fields'] = fields unless fields.nil?
697
696
  command.query['quotaUser'] = quota_user unless quota_user.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
698
  execute_or_queue_command(command, &block)
699
699
  end
700
700