google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -22,13 +22,19 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
+ class TestIamPermissionsResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class GetIamPolicyRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
31
- class TestIamPermissionsResponse
37
+ class OrganizationOwner
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
34
40
  include Google::Apis::Core::JsonObjectSupport
@@ -40,13 +46,13 @@ module Google
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
43
- class OrganizationOwner
49
+ class ListProjectsResponse
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
49
- class ListProjectsResponse
55
+ class AuditLogConfig
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
52
58
  include Google::Apis::Core::JsonObjectSupport
@@ -70,19 +76,19 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
73
- class FolderOperationError
79
+ class Policy
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
79
- class Policy
85
+ class FolderOperation
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
85
- class FolderOperation
91
+ class FolderOperationError
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
88
94
  include Google::Apis::Core::JsonObjectSupport
@@ -94,13 +100,13 @@ module Google
94
100
  include Google::Apis::Core::JsonObjectSupport
95
101
  end
96
102
 
97
- class Ancestor
103
+ class AuditConfig
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 ListOrganizationsResponse
109
+ class Ancestor
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
106
112
  include Google::Apis::Core::JsonObjectSupport
@@ -112,6 +118,12 @@ module Google
112
118
  include Google::Apis::Core::JsonObjectSupport
113
119
  end
114
120
 
121
+ class ListOrganizationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class Binding
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -124,13 +136,13 @@ module Google
124
136
  include Google::Apis::Core::JsonObjectSupport
125
137
  end
126
138
 
127
- class UndeleteProjectRequest
139
+ class Organization
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
130
142
  include Google::Apis::Core::JsonObjectSupport
131
143
  end
132
144
 
133
- class Organization
145
+ class UndeleteProjectRequest
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
136
148
  include Google::Apis::Core::JsonObjectSupport
@@ -142,31 +154,31 @@ module Google
142
154
  include Google::Apis::Core::JsonObjectSupport
143
155
  end
144
156
 
145
- class GetIamPolicyRequest
157
+ class TestIamPermissionsResponse
146
158
  # @private
147
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
+ collection :permissions, as: 'permissions'
148
161
  end
149
162
  end
150
163
 
151
- class TestIamPermissionsResponse
164
+ class GetIamPolicyRequest
152
165
  # @private
153
166
  class Representation < Google::Apis::Core::JsonRepresentation
154
- collection :permissions, as: 'permissions'
155
167
  end
156
168
  end
157
169
 
158
- class GetAncestryResponse
170
+ class OrganizationOwner
159
171
  # @private
160
172
  class Representation < Google::Apis::Core::JsonRepresentation
161
- collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
162
-
173
+ property :directory_customer_id, as: 'directoryCustomerId'
163
174
  end
164
175
  end
165
176
 
166
- class OrganizationOwner
177
+ class GetAncestryResponse
167
178
  # @private
168
179
  class Representation < Google::Apis::Core::JsonRepresentation
169
- property :directory_customer_id, as: 'directoryCustomerId'
180
+ collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
181
+
170
182
  end
171
183
  end
172
184
 
@@ -179,6 +191,14 @@ module Google
179
191
  end
180
192
  end
181
193
 
194
+ class AuditLogConfig
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ collection :exempted_members, as: 'exemptedMembers'
198
+ property :log_type, as: 'logType'
199
+ end
200
+ end
201
+
182
202
  class GetAncestryRequest
183
203
  # @private
184
204
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -193,8 +213,8 @@ module Google
193
213
  property :project_number, as: 'projectNumber'
194
214
  property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
195
215
 
196
- hash :labels, as: 'labels'
197
216
  property :create_time, as: 'createTime'
217
+ hash :labels, as: 'labels'
198
218
  property :name, as: 'name'
199
219
  end
200
220
  end
@@ -206,30 +226,32 @@ module Google
206
226
  end
207
227
  end
208
228
 
209
- class FolderOperationError
210
- # @private
211
- class Representation < Google::Apis::Core::JsonRepresentation
212
- property :error_message_id, as: 'errorMessageId'
213
- end
214
- end
215
-
216
229
  class Policy
217
230
  # @private
218
231
  class Representation < Google::Apis::Core::JsonRepresentation
219
- property :etag, :base64 => true, as: 'etag'
220
- property :version, as: 'version'
232
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
233
+
221
234
  collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
222
235
 
236
+ property :etag, :base64 => true, as: 'etag'
237
+ property :version, as: 'version'
223
238
  end
224
239
  end
225
240
 
226
241
  class FolderOperation
227
242
  # @private
228
243
  class Representation < Google::Apis::Core::JsonRepresentation
229
- property :operation_type, as: 'operationType'
230
244
  property :display_name, as: 'displayName'
231
245
  property :source_parent, as: 'sourceParent'
232
246
  property :destination_parent, as: 'destinationParent'
247
+ property :operation_type, as: 'operationType'
248
+ end
249
+ end
250
+
251
+ class FolderOperationError
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ property :error_message_id, as: 'errorMessageId'
233
255
  end
234
256
  end
235
257
 
@@ -241,19 +263,19 @@ module Google
241
263
  end
242
264
  end
243
265
 
244
- class Ancestor
266
+ class AuditConfig
245
267
  # @private
246
268
  class Representation < Google::Apis::Core::JsonRepresentation
247
- property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
269
+ property :service, as: 'service'
270
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
248
271
 
249
272
  end
250
273
  end
251
274
 
252
- class ListOrganizationsResponse
275
+ class Ancestor
253
276
  # @private
254
277
  class Representation < Google::Apis::Core::JsonRepresentation
255
- property :next_page_token, as: 'nextPageToken'
256
- collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
278
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
257
279
 
258
280
  end
259
281
  end
@@ -263,24 +285,28 @@ module Google
263
285
  class Representation < Google::Apis::Core::JsonRepresentation
264
286
  property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
265
287
 
288
+ property :update_mask, as: 'updateMask'
266
289
  end
267
290
  end
268
291
 
269
- class Binding
292
+ class ListOrganizationsResponse
270
293
  # @private
271
294
  class Representation < Google::Apis::Core::JsonRepresentation
272
- collection :members, as: 'members'
273
- property :role, as: 'role'
295
+ property :next_page_token, as: 'nextPageToken'
296
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
297
+
274
298
  end
275
299
  end
276
300
 
277
- class Empty
301
+ class Binding
278
302
  # @private
279
303
  class Representation < Google::Apis::Core::JsonRepresentation
304
+ collection :members, as: 'members'
305
+ property :role, as: 'role'
280
306
  end
281
307
  end
282
308
 
283
- class UndeleteProjectRequest
309
+ class Empty
284
310
  # @private
285
311
  class Representation < Google::Apis::Core::JsonRepresentation
286
312
  end
@@ -299,12 +325,18 @@ module Google
299
325
  end
300
326
  end
301
327
 
328
+ class UndeleteProjectRequest
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ end
332
+ end
333
+
302
334
  class ProjectCreationStatus
303
335
  # @private
304
336
  class Representation < Google::Apis::Core::JsonRepresentation
305
- property :ready, as: 'ready'
306
337
  property :create_time, as: 'createTime'
307
338
  property :gettable, as: 'gettable'
339
+ property :ready, as: 'ready'
308
340
  end
309
341
  end
310
342
  end
@@ -47,64 +47,12 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
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.
71
- # @param [String] quota_user
72
- # Available to use for quota purposes for server-side applications. Can be any
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.
76
- # @param [Google::Apis::RequestOptions] options
77
- # Request-specific options
78
- #
79
- # @yield [result, err] Result & error if block supplied
80
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
81
- # @yieldparam err [StandardError] error object if request failed
82
- #
83
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
84
- #
85
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
86
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
87
- # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
95
- command.query['quotaUser'] = quota_user unless quota_user.nil?
96
- command.query['fields'] = fields unless fields.nil?
97
- execute_or_queue_command(command, &block)
98
- end
99
-
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
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.
108
56
  # @param [String] quota_user
109
57
  # Available to use for quota purposes for server-side applications. Can be any
110
58
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -114,34 +62,34 @@ module Google
114
62
  # Request-specific options
115
63
  #
116
64
  # @yield [result, err] Result & error if block supplied
117
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
65
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
118
66
  # @yieldparam err [StandardError] error object if request failed
119
67
  #
120
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
68
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
121
69
  #
122
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
73
+ def get_project(project_id, quota_user: nil, fields: 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?
132
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
133
79
  command.query['fields'] = fields unless fields.nil?
134
80
  execute_or_queue_command(command, &block)
135
81
  end
136
82
 
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
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
145
93
  # @param [String] quota_user
146
94
  # Available to use for quota purposes for server-side applications. Can be any
147
95
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -151,32 +99,33 @@ module Google
151
99
  # Request-specific options
152
100
  #
153
101
  # @yield [result, err] Result & error if block supplied
154
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
102
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
155
103
  # @yieldparam err [StandardError] error object if request failed
156
104
  #
157
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
105
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
158
106
  #
159
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
110
+ def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: 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?
169
117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
170
118
  command.query['fields'] = fields unless fields.nil?
171
119
  execute_or_queue_command(command, &block)
172
120
  end
173
121
 
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.
122
+ # Updates the attributes of the Project identified by the specified
123
+ # `project_id` (for example, `my-project-123`).
124
+ # The caller must have modify 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::Project] project_object
180
129
  # @param [String] quota_user
181
130
  # Available to use for quota purposes for server-side applications. Can be any
182
131
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -186,31 +135,33 @@ module Google
186
135
  # Request-specific options
187
136
  #
188
137
  # @yield [result, err] Result & error if block supplied
189
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
138
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
190
139
  # @yieldparam err [StandardError] error object if request failed
191
140
  #
192
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
141
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
193
142
  #
194
143
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
195
144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
196
145
  # @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?
146
+ def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
147
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
148
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
149
+ command.request_object = project_object
150
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
151
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
152
+ command.params['projectId'] = project_id unless project_id.nil?
203
153
  command.query['quotaUser'] = quota_user unless quota_user.nil?
204
154
  command.query['fields'] = fields unless fields.nil?
205
155
  execute_or_queue_command(command, &block)
206
156
  end
207
157
 
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
158
+ # Gets a list of ancestors in the resource hierarchy for the Project
159
+ # identified by the specified `project_id` (for example, `my-project-123`).
160
+ # The caller must have read 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::GetAncestryRequest] get_ancestry_request_object
214
165
  # @param [String] quota_user
215
166
  # Available to use for quota purposes for server-side applications. Can be any
216
167
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -220,33 +171,30 @@ module Google
220
171
  # Request-specific options
221
172
  #
222
173
  # @yield [result, err] Result & error if block supplied
223
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
174
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
224
175
  # @yieldparam err [StandardError] error object if request failed
225
176
  #
226
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
177
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
227
178
  #
228
179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
182
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
183
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
184
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
185
+ command.request_object = get_ancestry_request_object
186
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
187
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
188
+ command.params['projectId'] = project_id unless project_id.nil?
238
189
  command.query['quotaUser'] = quota_user unless quota_user.nil?
239
190
  command.query['fields'] = fields unless fields.nil?
240
191
  execute_or_queue_command(command, &block)
241
192
  end
242
193
 
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".
194
+ # Returns permissions that a caller has on the specified Project.
246
195
  # @param [String] resource
247
196
  # REQUIRED: The resource for which the policy detail is being requested.
248
- # `resource` is usually specified as a path. For example, a Project
249
- # resource is specified as `projects/`project``.
197
+ # See the operation documentation for the appropriate value for this field.
250
198
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
251
199
  # @param [String] quota_user
252
200
  # Available to use for quota purposes for server-side applications. Can be any
@@ -265,8 +213,8 @@ module Google
265
213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
216
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
217
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
270
218
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
271
219
  command.request_object = test_iam_permissions_request_object
272
220
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
@@ -329,6 +277,11 @@ module Google
329
277
  # Lists Projects that are visible to the user and satisfy the
330
278
  # specified filter. This method returns Projects in an unspecified order.
331
279
  # New Projects do not necessarily appear at the end of the list.
280
+ # @param [Fixnum] page_size
281
+ # The maximum number of Projects to return in the response.
282
+ # The server can return fewer Projects than requested.
283
+ # If unspecified, server picks an appropriate default.
284
+ # Optional.
332
285
  # @param [String] filter
333
286
  # An expression for filtering the results of the request. Filter rules are
334
287
  # case insensitive. The fields eligible for filtering are:
@@ -351,11 +304,6 @@ module Google
351
304
  # A pagination token returned from a previous call to ListProjects
352
305
  # that indicates from where listing should continue.
353
306
  # Optional.
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.
359
307
  # @param [String] quota_user
360
308
  # Available to use for quota purposes for server-side applications. Can be any
361
309
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -373,13 +321,13 @@ module Google
373
321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
376
- def list_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
324
+ def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
377
325
  command = make_simple_command(:get, 'v1beta1/projects', options)
378
326
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
379
327
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
328
+ command.query['pageSize'] = page_size unless page_size.nil?
380
329
  command.query['filter'] = filter unless filter.nil?
381
330
  command.query['pageToken'] = page_token unless page_token.nil?
382
- command.query['pageSize'] = page_size unless page_size.nil?
383
331
  command.query['quotaUser'] = quota_user unless quota_user.nil?
384
332
  command.query['fields'] = fields unless fields.nil?
385
333
  execute_or_queue_command(command, &block)
@@ -413,8 +361,7 @@ module Google
413
361
  # how the service account is being used before removing or updating its roles.
414
362
  # @param [String] resource
415
363
  # REQUIRED: The resource for which the policy is being specified.
416
- # `resource` is usually specified as a path. For example, a Project
417
- # resource is specified as `projects/`project``.
364
+ # See the operation documentation for the appropriate value for this field.
418
365
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
419
366
  # @param [String] quota_user
420
367
  # Available to use for quota purposes for server-side applications. Can be any
@@ -487,8 +434,7 @@ module Google
487
434
  # Permission is denied if the policy or the resource does not exist.
488
435
  # @param [String] resource
489
436
  # REQUIRED: The resource for which the policy is being requested.
490
- # `resource` is usually specified as a path. For example, a Project
491
- # resource is specified as `projects/`project``.
437
+ # See the operation documentation for the appropriate value for this field.
492
438
  # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
493
439
  # @param [String] quota_user
494
440
  # Available to use for quota purposes for server-side applications. Can be any
@@ -519,12 +465,12 @@ module Google
519
465
  execute_or_queue_command(command, &block)
520
466
  end
521
467
 
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.
468
+ # Fetches an Organization resource identified by the specified resource name.
469
+ # @param [String] name
470
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
471
+ # @param [String] organization_id
472
+ # The id of the Organization resource to fetch.
473
+ # This field is deprecated and will be removed in v1. Use name instead.
528
474
  # @param [String] quota_user
529
475
  # Available to use for quota purposes for server-side applications. Can be any
530
476
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -534,34 +480,31 @@ module Google
534
480
  # Request-specific options
535
481
  #
536
482
  # @yield [result, err] Result & error if block supplied
537
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
483
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
538
484
  # @yieldparam err [StandardError] error object if request failed
539
485
  #
540
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
486
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
541
487
  #
542
488
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
489
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
490
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
491
+ def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
492
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
493
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
494
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
495
+ command.params['name'] = name unless name.nil?
496
+ command.query['organizationId'] = organization_id unless organization_id.nil?
550
497
  command.query['quotaUser'] = quota_user unless quota_user.nil?
551
498
  command.query['fields'] = fields unless fields.nil?
552
499
  execute_or_queue_command(command, &block)
553
500
  end
554
501
 
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
502
+ # Updates an Organization resource identified by the specified resource name.
503
+ # @param [String] name
504
+ # Output Only. The resource name of the organization. This is the
505
+ # organization's relative path in the API. Its format is
506
+ # "organizations/[organization_id]". For example, "organizations/1234".
507
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
565
508
  # @param [String] quota_user
566
509
  # Available to use for quota purposes for server-side applications. Can be any
567
510
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -571,33 +514,33 @@ module Google
571
514
  # Request-specific options
572
515
  #
573
516
  # @yield [result, err] Result & error if block supplied
574
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
517
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
575
518
  # @yieldparam err [StandardError] error object if request failed
576
519
  #
577
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
520
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
578
521
  #
579
522
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
580
523
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
581
524
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
525
+ def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
526
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
527
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
528
+ command.request_object = organization_object
529
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
530
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
531
+ command.params['name'] = name unless name.nil?
589
532
  command.query['quotaUser'] = quota_user unless quota_user.nil?
590
533
  command.query['fields'] = fields unless fields.nil?
591
534
  execute_or_queue_command(command, &block)
592
535
  end
593
536
 
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
537
+ # Returns permissions that a caller has on the specified Organization.
538
+ # The `resource` field should be the organization's resource name,
539
+ # e.g. "organizations/123".
540
+ # @param [String] resource
541
+ # REQUIRED: The resource for which the policy detail is being requested.
542
+ # See the operation documentation for the appropriate value for this field.
543
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
601
544
  # @param [String] quota_user
602
545
  # Available to use for quota purposes for server-side applications. Can be any
603
546
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -607,33 +550,47 @@ module Google
607
550
  # Request-specific options
608
551
  #
609
552
  # @yield [result, err] Result & error if block supplied
610
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
553
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
611
554
  # @yieldparam err [StandardError] error object if request failed
612
555
  #
613
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
556
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
614
557
  #
615
558
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
559
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
560
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
561
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
562
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
563
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
564
+ command.request_object = test_iam_permissions_request_object
565
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
566
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
567
+ command.params['resource'] = resource unless resource.nil?
625
568
  command.query['quotaUser'] = quota_user unless quota_user.nil?
626
569
  command.query['fields'] = fields unless fields.nil?
627
570
  execute_or_queue_command(command, &block)
628
571
  end
629
572
 
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
573
+ # Lists Organization resources that are visible to the user and satisfy
574
+ # the specified filter. This method returns Organizations in an unspecified
575
+ # order. New Organizations do not necessarily appear at the end of the list.
576
+ # @param [Fixnum] page_size
577
+ # The maximum number of Organizations to return in the response.
578
+ # This field is optional.
579
+ # @param [String] filter
580
+ # An optional query string used to filter the Organizations to return in
581
+ # the response. Filter rules are case-insensitive.
582
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
583
+ # `domain`, where the domain is a Google for Work domain, for example:
584
+ # |Filter|Description|
585
+ # |------|-----------|
586
+ # |owner.directorycustomerid:123456789|Organizations with `owner.
587
+ # directory_customer_id` equal to `123456789`.|
588
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
589
+ # This field is optional.
590
+ # @param [String] page_token
591
+ # A pagination token returned from a previous call to `ListOrganizations`
592
+ # that indicates from where listing should continue.
593
+ # This field is optional.
637
594
  # @param [String] quota_user
638
595
  # Available to use for quota purposes for server-side applications. Can be any
639
596
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -643,32 +600,33 @@ module Google
643
600
  # Request-specific options
644
601
  #
645
602
  # @yield [result, err] Result & error if block supplied
646
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
603
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
647
604
  # @yieldparam err [StandardError] error object if request failed
648
605
  #
649
- # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
606
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
650
607
  #
651
608
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
652
609
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
653
610
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
611
+ def list_organizations(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
612
+ command = make_simple_command(:get, 'v1beta1/organizations', options)
613
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
614
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
615
+ command.query['pageSize'] = page_size unless page_size.nil?
616
+ command.query['filter'] = filter unless filter.nil?
617
+ command.query['pageToken'] = page_token unless page_token.nil?
661
618
  command.query['quotaUser'] = quota_user unless quota_user.nil?
662
619
  command.query['fields'] = fields unless fields.nil?
663
620
  execute_or_queue_command(command, &block)
664
621
  end
665
622
 
666
- # Returns permissions that a caller has on the specified Project.
623
+ # Sets the access control policy on an Organization resource. Replaces any
624
+ # existing policy. The `resource` field should be the organization's resource
625
+ # name, e.g. "organizations/123".
667
626
  # @param [String] resource
668
- # REQUIRED: The resource for which the policy detail is being requested.
669
- # `resource` is usually specified as a path. For example, a Project
670
- # resource is specified as `projects/`project``.
671
- # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
627
+ # REQUIRED: The resource for which the policy is being specified.
628
+ # See the operation documentation for the appropriate value for this field.
629
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
672
630
  # @param [String] quota_user
673
631
  # Available to use for quota purposes for server-side applications. Can be any
674
632
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -678,20 +636,56 @@ module Google
678
636
  # Request-specific options
679
637
  #
680
638
  # @yield [result, err] Result & error if block supplied
681
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
639
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
682
640
  # @yieldparam err [StandardError] error object if request failed
683
641
  #
684
- # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
642
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
685
643
  #
686
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
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
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
692
- command.request_object = test_iam_permissions_request_object
693
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
694
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
647
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
648
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
649
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
650
+ command.request_object = set_iam_policy_request_object
651
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
652
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
653
+ command.params['resource'] = resource unless resource.nil?
654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ execute_or_queue_command(command, &block)
657
+ end
658
+
659
+ # Gets the access control policy for an Organization resource. May be empty
660
+ # if no such policy or resource exists. The `resource` field should be the
661
+ # organization's resource name, e.g. "organizations/123".
662
+ # @param [String] resource
663
+ # REQUIRED: The resource for which the policy is being requested.
664
+ # See the operation documentation for the appropriate value for this field.
665
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
685
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
686
+ command.request_object = get_iam_policy_request_object
687
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
688
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
695
689
  command.params['resource'] = resource unless resource.nil?
696
690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
697
691
  command.query['fields'] = fields unless fields.nil?