google-api-client 0.13.0 → 0.13.1

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