google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -48,11 +48,10 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Searches Organization resources that are visible to the user and satisfy
52
- # the specified filter. This method returns Organizations in an unspecified
53
- # order. New Organizations do not necessarily appear at the end of the
54
- # results.
55
- # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
51
+ # Lists all the `Policies` set for a particular resource.
52
+ # @param [String] resource
53
+ # Name of the resource to list Policies for.
54
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
56
55
  # @param [String] quota_user
57
56
  # Available to use for quota purposes for server-side applications. Can be any
58
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -62,20 +61,92 @@ module Google
62
61
  # Request-specific options
63
62
  #
64
63
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
64
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
66
65
  # @yieldparam err [StandardError] error object if request failed
67
66
  #
68
- # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
67
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
69
68
  #
70
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/organizations:search', options)
75
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
76
- command.request_object = search_organizations_request_object
77
- command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
78
- command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
72
+ def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
74
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
75
+ command.request_object = list_org_policies_request_object
76
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
77
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
78
+ command.params['resource'] = resource unless resource.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists `Constraints` that could be applied on the specified resource.
85
+ # @param [String] resource
86
+ # Name of the resource to list `Constraints` for.
87
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
88
+ # @param [String] quota_user
89
+ # Available to use for quota purposes for server-side applications. Can be any
90
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [Google::Apis::RequestOptions] options
94
+ # Request-specific options
95
+ #
96
+ # @yield [result, err] Result & error if block supplied
97
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
101
+ #
102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
105
+ def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
107
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
108
+ command.request_object = list_available_org_policy_constraints_request_object
109
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
110
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
111
+ command.params['resource'] = resource unless resource.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
117
+ # Gets the access control policy for an Organization resource. May be empty
118
+ # if no such policy or resource exists. The `resource` field should be the
119
+ # organization's resource name, e.g. "organizations/123".
120
+ # Authorization requires the Google IAM permission
121
+ # `resourcemanager.organizations.getIamPolicy` on the specified organization
122
+ # @param [String] resource
123
+ # REQUIRED: The resource for which the policy is being requested.
124
+ # See the operation documentation for the appropriate value for this field.
125
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
144
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
145
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
146
+ command.request_object = get_iam_policy_request_object
147
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
148
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
149
+ command.params['resource'] = resource unless resource.nil?
79
150
  command.query['quotaUser'] = quota_user unless quota_user.nil?
80
151
  command.query['fields'] = fields unless fields.nil?
81
152
  execute_or_queue_command(command, &block)
@@ -118,9 +189,13 @@ module Google
118
189
  execute_or_queue_command(command, &block)
119
190
  end
120
191
 
121
- # Fetches an Organization resource identified by the specified resource name.
122
- # @param [String] name
123
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
192
+ # Searches Organization resources that are visible to the user and satisfy
193
+ # the specified filter. This method returns Organizations in an unspecified
194
+ # order. New Organizations do not necessarily appear at the end of the
195
+ # results.
196
+ # Search will only return organizations on which the user has the permission
197
+ # `resourcemanager.organizations.get`
198
+ # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
124
199
  # @param [String] quota_user
125
200
  # Available to use for quota purposes for server-side applications. Can be any
126
201
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -130,19 +205,20 @@ module Google
130
205
  # Request-specific options
131
206
  #
132
207
  # @yield [result, err] Result & error if block supplied
133
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
208
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
134
209
  # @yieldparam err [StandardError] error object if request failed
135
210
  #
136
- # @return [Google::Apis::CloudresourcemanagerV1::Organization]
211
+ # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
137
212
  #
138
213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
141
- def get_organization(name, quota_user: nil, fields: nil, options: nil, &block)
142
- command = make_simple_command(:get, 'v1/{+name}', options)
143
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
144
- command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
145
- command.params['name'] = name unless name.nil?
216
+ def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
217
+ command = make_simple_command(:post, 'v1/organizations:search', options)
218
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
219
+ command.request_object = search_organizations_request_object
220
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
221
+ command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
146
222
  command.query['quotaUser'] = quota_user unless quota_user.nil?
147
223
  command.query['fields'] = fields unless fields.nil?
148
224
  execute_or_queue_command(command, &block)
@@ -183,9 +259,40 @@ module Google
183
259
  execute_or_queue_command(command, &block)
184
260
  end
185
261
 
262
+ # Fetches an Organization resource identified by the specified resource name.
263
+ # @param [String] name
264
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
265
+ # @param [String] quota_user
266
+ # Available to use for quota purposes for server-side applications. Can be any
267
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
268
+ # @param [String] fields
269
+ # Selector specifying which fields to include in a partial response.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::CloudresourcemanagerV1::Organization]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def get_organization(name, quota_user: nil, fields: nil, options: nil, &block)
283
+ command = make_simple_command(:get, 'v1/{+name}', options)
284
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
285
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
286
+ command.params['name'] = name unless name.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ command.query['fields'] = fields unless fields.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
186
292
  # Returns permissions that a caller has on the specified Organization.
187
293
  # The `resource` field should be the organization's resource name,
188
294
  # e.g. "organizations/123".
295
+ # There are no permissions required for making this API call.
189
296
  # @param [String] resource
190
297
  # REQUIRED: The resource for which the policy detail is being requested.
191
298
  # See the operation documentation for the appropriate value for this field.
@@ -291,6 +398,8 @@ module Google
291
398
  # Sets the access control policy on an Organization resource. Replaces any
292
399
  # existing policy. The `resource` field should be the organization's resource
293
400
  # name, e.g. "organizations/123".
401
+ # Authorization requires the Google IAM permission
402
+ # `resourcemanager.organizations.setIamPolicy` on the specified organization
294
403
  # @param [String] resource
295
404
  # REQUIRED: The resource for which the policy is being specified.
296
405
  # See the operation documentation for the appropriate value for this field.
@@ -324,79 +433,11 @@ module Google
324
433
  execute_or_queue_command(command, &block)
325
434
  end
326
435
 
327
- # Lists all the `Policies` set for a particular resource.
328
- # @param [String] resource
329
- # Name of the resource to list Policies for.
330
- # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
331
- # @param [String] quota_user
332
- # Available to use for quota purposes for server-side applications. Can be any
333
- # arbitrary string assigned to a user, but should not exceed 40 characters.
334
- # @param [String] fields
335
- # Selector specifying which fields to include in a partial response.
336
- # @param [Google::Apis::RequestOptions] options
337
- # Request-specific options
338
- #
339
- # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
341
- # @yieldparam err [StandardError] error object if request failed
342
- #
343
- # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
344
- #
345
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
- # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
349
- command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
350
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
351
- command.request_object = list_org_policies_request_object
352
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
353
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
354
- command.params['resource'] = resource unless resource.nil?
355
- command.query['quotaUser'] = quota_user unless quota_user.nil?
356
- command.query['fields'] = fields unless fields.nil?
357
- execute_or_queue_command(command, &block)
358
- end
359
-
360
- # Lists `Constraints` that could be applied on the specified resource.
361
- # @param [String] resource
362
- # Name of the resource to list `Constraints` for.
363
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
364
- # @param [String] quota_user
365
- # Available to use for quota purposes for server-side applications. Can be any
366
- # arbitrary string assigned to a user, but should not exceed 40 characters.
367
- # @param [String] fields
368
- # Selector specifying which fields to include in a partial response.
369
- # @param [Google::Apis::RequestOptions] options
370
- # Request-specific options
371
- #
372
- # @yield [result, err] Result & error if block supplied
373
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
374
- # @yieldparam err [StandardError] error object if request failed
375
- #
376
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
377
- #
378
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
379
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
380
- # @raise [Google::Apis::AuthorizationError] Authorization is required
381
- def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
382
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
383
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
384
- command.request_object = list_available_org_policy_constraints_request_object
385
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
386
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
387
- command.params['resource'] = resource unless resource.nil?
388
- command.query['quotaUser'] = quota_user unless quota_user.nil?
389
- command.query['fields'] = fields unless fields.nil?
390
- execute_or_queue_command(command, &block)
391
- end
392
-
393
- # Gets the access control policy for an Organization resource. May be empty
394
- # if no such policy or resource exists. The `resource` field should be the
395
- # organization's resource name, e.g. "organizations/123".
396
- # @param [String] resource
397
- # REQUIRED: The resource for which the policy is being requested.
398
- # See the operation documentation for the appropriate value for this field.
399
- # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
436
+ # Gets the latest state of a long-running operation. Clients can use this
437
+ # method to poll the operation result at intervals as recommended by the API
438
+ # service.
439
+ # @param [String] name
440
+ # The name of the operation resource.
400
441
  # @param [String] quota_user
401
442
  # Available to use for quota purposes for server-side applications. Can be any
402
443
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -406,21 +447,19 @@ module Google
406
447
  # Request-specific options
407
448
  #
408
449
  # @yield [result, err] Result & error if block supplied
409
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
450
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
410
451
  # @yieldparam err [StandardError] error object if request failed
411
452
  #
412
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
453
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
413
454
  #
414
455
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
456
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
457
  # @raise [Google::Apis::AuthorizationError] Authorization is required
417
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
418
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
419
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
420
- command.request_object = get_iam_policy_request_object
421
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
422
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
423
- command.params['resource'] = resource unless resource.nil?
458
+ def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
459
+ command = make_simple_command(:get, 'v1/{+name}', options)
460
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
461
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
462
+ command.params['name'] = name unless name.nil?
424
463
  command.query['quotaUser'] = quota_user unless quota_user.nil?
425
464
  command.query['fields'] = fields unless fields.nil?
426
465
  execute_or_queue_command(command, &block)
@@ -463,13 +502,13 @@ module Google
463
502
  # Callers of this method will require permission on the `parent` resource.
464
503
  # For example, a Lien with a `parent` of `projects/1234` requires permission
465
504
  # `resourcemanager.projects.get`.
466
- # @param [String] page_token
467
- # The `next_page_token` value returned from a previous List request, if any.
468
- # @param [Fixnum] page_size
469
- # The maximum number of items to return. This is a suggestion for the server.
470
505
  # @param [String] parent
471
506
  # The name of the resource to list all attached Liens.
472
507
  # For example, `projects/1234`.
508
+ # @param [String] page_token
509
+ # The `next_page_token` value returned from a previous List request, if any.
510
+ # @param [Fixnum] page_size
511
+ # The maximum number of items to return. This is a suggestion for the server.
473
512
  # @param [String] quota_user
474
513
  # Available to use for quota purposes for server-side applications. Can be any
475
514
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -479,98 +518,32 @@ module Google
479
518
  # Request-specific options
480
519
  #
481
520
  # @yield [result, err] Result & error if block supplied
482
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
483
- # @yieldparam err [StandardError] error object if request failed
484
- #
485
- # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
486
- #
487
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
488
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
- # @raise [Google::Apis::AuthorizationError] Authorization is required
490
- def list_liens(page_token: nil, page_size: nil, parent: nil, quota_user: nil, fields: nil, options: nil, &block)
491
- command = make_simple_command(:get, 'v1/liens', options)
492
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
493
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
494
- command.query['pageToken'] = page_token unless page_token.nil?
495
- command.query['pageSize'] = page_size unless page_size.nil?
496
- command.query['parent'] = parent unless parent.nil?
497
- command.query['quotaUser'] = quota_user unless quota_user.nil?
498
- command.query['fields'] = fields unless fields.nil?
499
- execute_or_queue_command(command, &block)
500
- end
501
-
502
- # Create a Lien which applies to the resource denoted by the `parent` field.
503
- # Callers of this method will require permission on the `parent` resource.
504
- # For example, applying to `projects/1234` requires permission
505
- # `resourcemanager.projects.updateLiens`.
506
- # NOTE: Some resources may limit the number of Liens which may be applied.
507
- # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
508
- # @param [String] quota_user
509
- # Available to use for quota purposes for server-side applications. Can be any
510
- # arbitrary string assigned to a user, but should not exceed 40 characters.
511
- # @param [String] fields
512
- # Selector specifying which fields to include in a partial response.
513
- # @param [Google::Apis::RequestOptions] options
514
- # Request-specific options
515
- #
516
- # @yield [result, err] Result & error if block supplied
517
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
518
- # @yieldparam err [StandardError] error object if request failed
519
- #
520
- # @return [Google::Apis::CloudresourcemanagerV1::Lien]
521
- #
522
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
- # @raise [Google::Apis::AuthorizationError] Authorization is required
525
- def create_lien(lien_object = nil, quota_user: nil, fields: nil, options: nil, &block)
526
- command = make_simple_command(:post, 'v1/liens', options)
527
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
528
- command.request_object = lien_object
529
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
530
- command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
531
- command.query['quotaUser'] = quota_user unless quota_user.nil?
532
- command.query['fields'] = fields unless fields.nil?
533
- execute_or_queue_command(command, &block)
534
- end
535
-
536
- # Gets the latest state of a long-running operation. Clients can use this
537
- # method to poll the operation result at intervals as recommended by the API
538
- # service.
539
- # @param [String] name
540
- # The name of the operation resource.
541
- # @param [String] quota_user
542
- # Available to use for quota purposes for server-side applications. Can be any
543
- # arbitrary string assigned to a user, but should not exceed 40 characters.
544
- # @param [String] fields
545
- # Selector specifying which fields to include in a partial response.
546
- # @param [Google::Apis::RequestOptions] options
547
- # Request-specific options
548
- #
549
- # @yield [result, err] Result & error if block supplied
550
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
521
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
551
522
  # @yieldparam err [StandardError] error object if request failed
552
523
  #
553
- # @return [Google::Apis::CloudresourcemanagerV1::Operation]
524
+ # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
554
525
  #
555
526
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
558
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
559
- command = make_simple_command(:get, 'v1/{+name}', options)
560
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
561
- command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
562
- command.params['name'] = name unless name.nil?
529
+ def list_liens(parent: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
530
+ command = make_simple_command(:get, 'v1/liens', options)
531
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
532
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
533
+ command.query['parent'] = parent unless parent.nil?
534
+ command.query['pageToken'] = page_token unless page_token.nil?
535
+ command.query['pageSize'] = page_size unless page_size.nil?
563
536
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
537
  command.query['fields'] = fields unless fields.nil?
565
538
  execute_or_queue_command(command, &block)
566
539
  end
567
540
 
568
- # Gets the effective `Policy` on a resource. This is the result of merging
569
- # `Policies` in the resource hierarchy. The returned `Policy` will not have
570
- # an `etag`set because it is a computed `Policy` across multiple resources.
571
- # @param [String] resource
572
- # The name of the resource to start computing the effective `Policy`.
573
- # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
541
+ # Create a Lien which applies to the resource denoted by the `parent` field.
542
+ # Callers of this method will require permission on the `parent` resource.
543
+ # For example, applying to `projects/1234` requires permission
544
+ # `resourcemanager.projects.updateLiens`.
545
+ # NOTE: Some resources may limit the number of Liens which may be applied.
546
+ # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
574
547
  # @param [String] quota_user
575
548
  # Available to use for quota purposes for server-side applications. Can be any
576
549
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -580,21 +553,20 @@ module Google
580
553
  # Request-specific options
581
554
  #
582
555
  # @yield [result, err] Result & error if block supplied
583
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
556
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
584
557
  # @yieldparam err [StandardError] error object if request failed
585
558
  #
586
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
559
+ # @return [Google::Apis::CloudresourcemanagerV1::Lien]
587
560
  #
588
561
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
562
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
563
  # @raise [Google::Apis::AuthorizationError] Authorization is required
591
- def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
592
- command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
593
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
594
- command.request_object = get_effective_org_policy_request_object
595
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
596
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
597
- command.params['resource'] = resource unless resource.nil?
564
+ def create_lien(lien_object = nil, quota_user: nil, fields: nil, options: nil, &block)
565
+ command = make_simple_command(:post, 'v1/liens', options)
566
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
567
+ command.request_object = lien_object
568
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
569
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
598
570
  command.query['quotaUser'] = quota_user unless quota_user.nil?
599
571
  command.query['fields'] = fields unless fields.nil?
600
572
  execute_or_queue_command(command, &block)
@@ -669,10 +641,10 @@ module Google
669
641
  execute_or_queue_command(command, &block)
670
642
  end
671
643
 
672
- # Lists all the `Policies` set for a particular resource.
644
+ # Lists `Constraints` that could be applied on the specified resource.
673
645
  # @param [String] resource
674
- # Name of the resource to list Policies for.
675
- # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
646
+ # Name of the resource to list `Constraints` for.
647
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
676
648
  # @param [String] quota_user
677
649
  # Available to use for quota purposes for server-side applications. Can be any
678
650
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -682,30 +654,30 @@ module Google
682
654
  # Request-specific options
683
655
  #
684
656
  # @yield [result, err] Result & error if block supplied
685
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
657
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
686
658
  # @yieldparam err [StandardError] error object if request failed
687
659
  #
688
- # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
660
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
689
661
  #
690
662
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
691
663
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
692
664
  # @raise [Google::Apis::AuthorizationError] Authorization is required
693
- def list_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
694
- command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
695
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
696
- command.request_object = list_org_policies_request_object
697
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
698
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
665
+ def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
666
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
667
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
668
+ command.request_object = list_available_org_policy_constraints_request_object
669
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
670
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
699
671
  command.params['resource'] = resource unless resource.nil?
700
672
  command.query['quotaUser'] = quota_user unless quota_user.nil?
701
673
  command.query['fields'] = fields unless fields.nil?
702
674
  execute_or_queue_command(command, &block)
703
675
  end
704
676
 
705
- # Lists `Constraints` that could be applied on the specified resource.
677
+ # Lists all the `Policies` set for a particular resource.
706
678
  # @param [String] resource
707
- # Name of the resource to list `Constraints` for.
708
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
679
+ # Name of the resource to list Policies for.
680
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
709
681
  # @param [String] quota_user
710
682
  # Available to use for quota purposes for server-side applications. Can be any
711
683
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -715,20 +687,20 @@ module Google
715
687
  # Request-specific options
716
688
  #
717
689
  # @yield [result, err] Result & error if block supplied
718
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
690
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
719
691
  # @yieldparam err [StandardError] error object if request failed
720
692
  #
721
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
693
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
722
694
  #
723
695
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
724
696
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
725
697
  # @raise [Google::Apis::AuthorizationError] Authorization is required
726
- def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
727
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
728
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
729
- command.request_object = list_available_org_policy_constraints_request_object
730
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
731
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
698
+ def list_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
699
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
700
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
701
+ command.request_object = list_org_policies_request_object
702
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
703
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
732
704
  command.params['resource'] = resource unless resource.nil?
733
705
  command.query['quotaUser'] = quota_user unless quota_user.nil?
734
706
  command.query['fields'] = fields unless fields.nil?
@@ -772,59 +744,12 @@ module Google
772
744
  execute_or_queue_command(command, &block)
773
745
  end
774
746
 
775
- # Marks the Project identified by the specified
776
- # `project_id` (for example, `my-project-123`) for deletion.
777
- # This method will only affect the Project if the following criteria are met:
778
- # + The Project does not have a billing account associated with it.
779
- # + The Project has a lifecycle state of
780
- # ACTIVE.
781
- # This method changes the Project's lifecycle state from
782
- # ACTIVE
783
- # to DELETE_REQUESTED.
784
- # The deletion starts at an unspecified time,
785
- # at which point the Project is no longer accessible.
786
- # Until the deletion completes, you can check the lifecycle state
787
- # checked by retrieving the Project with GetProject,
788
- # and the Project remains visible to ListProjects.
789
- # However, you cannot update the project.
790
- # After the deletion completes, the Project is not retrievable by
791
- # the GetProject and
792
- # ListProjects methods.
793
- # The caller must have modify permissions for this Project.
794
- # @param [String] project_id
795
- # The Project ID (for example, `foo-bar-123`).
796
- # Required.
797
- # @param [String] quota_user
798
- # Available to use for quota purposes for server-side applications. Can be any
799
- # arbitrary string assigned to a user, but should not exceed 40 characters.
800
- # @param [String] fields
801
- # Selector specifying which fields to include in a partial response.
802
- # @param [Google::Apis::RequestOptions] options
803
- # Request-specific options
804
- #
805
- # @yield [result, err] Result & error if block supplied
806
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
807
- # @yieldparam err [StandardError] error object if request failed
808
- #
809
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
810
- #
811
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
812
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
813
- # @raise [Google::Apis::AuthorizationError] Authorization is required
814
- def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
815
- command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
816
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
817
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
818
- command.params['projectId'] = project_id unless project_id.nil?
819
- command.query['quotaUser'] = quota_user unless quota_user.nil?
820
- command.query['fields'] = fields unless fields.nil?
821
- execute_or_queue_command(command, &block)
822
- end
823
-
824
- # Clears a `Policy` from a resource.
747
+ # Gets the effective `Policy` on a resource. This is the result of merging
748
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
749
+ # an `etag`set because it is a computed `Policy` across multiple resources.
825
750
  # @param [String] resource
826
- # Name of the resource for the `Policy` to clear.
827
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
751
+ # The name of the resource to start computing the effective `Policy`.
752
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
828
753
  # @param [String] quota_user
829
754
  # Available to use for quota purposes for server-side applications. Can be any
830
755
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -834,20 +759,20 @@ module Google
834
759
  # Request-specific options
835
760
  #
836
761
  # @yield [result, err] Result & error if block supplied
837
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
762
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
838
763
  # @yieldparam err [StandardError] error object if request failed
839
764
  #
840
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
765
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
841
766
  #
842
767
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
768
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
769
  # @raise [Google::Apis::AuthorizationError] Authorization is required
845
- def clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
846
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
847
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
848
- command.request_object = clear_org_policy_request_object
849
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
850
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
770
+ def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
771
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
772
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
773
+ command.request_object = get_effective_org_policy_request_object
774
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
775
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
851
776
  command.params['resource'] = resource unless resource.nil?
852
777
  command.query['quotaUser'] = quota_user unless quota_user.nil?
853
778
  command.query['fields'] = fields unless fields.nil?
@@ -883,6 +808,8 @@ module Google
883
808
  # can render services completely inoperable. It is important to understand
884
809
  # how the service account is being used before removing or updating its
885
810
  # roles.
811
+ # Authorization requires the Google IAM permission
812
+ # `resourcemanager.projects.setIamPolicy` on the project
886
813
  # @param [String] resource
887
814
  # REQUIRED: The resource for which the policy is being specified.
888
815
  # See the operation documentation for the appropriate value for this field.
@@ -951,6 +878,8 @@ module Google
951
878
 
952
879
  # Returns the IAM access control policy for the specified Project.
953
880
  # Permission is denied if the policy or the resource does not exist.
881
+ # Authorization requires the Google IAM permission
882
+ # `resourcemanager.projects.getIamPolicy` on the project
954
883
  # @param [String] resource
955
884
  # REQUIRED: The resource for which the policy is being requested.
956
885
  # See the operation documentation for the appropriate value for this field.
@@ -1134,6 +1063,11 @@ module Google
1134
1063
  # Lists Projects that are visible to the user and satisfy the
1135
1064
  # specified filter. This method returns Projects in an unspecified order.
1136
1065
  # New Projects do not necessarily appear at the end of the list.
1066
+ # @param [Fixnum] page_size
1067
+ # The maximum number of Projects to return in the response.
1068
+ # The server can return fewer Projects than requested.
1069
+ # If unspecified, server picks an appropriate default.
1070
+ # Optional.
1137
1071
  # @param [String] filter
1138
1072
  # An expression for filtering the results of the request. Filter rules are
1139
1073
  # case insensitive. The fields eligible for filtering are:
@@ -1151,16 +1085,19 @@ module Google
1151
1085
  # |labels.color:red|The project's label `color` has the value `red`.|
1152
1086
  # |labels.color:red labels.size:big|The project's label `color` has the
1153
1087
  # value `red` and its label `size` has the value `big`.
1088
+ # If you specify a filter that has both `parent.type` and `parent.id`, then
1089
+ # the `resourcemanager.projects.list` permission is checked on the parent.
1090
+ # If the user has this permission, all projects under the parent will be
1091
+ # returned after remaining filters have been applied. If the user lacks this
1092
+ # permission, then all projects for which the user has the
1093
+ # `resourcemanager.projects.get` permission will be returned after remaining
1094
+ # filters have been applied. If no filter is specified, the call will return
1095
+ # projects for which the user has `resourcemanager.projects.get` permissions.
1154
1096
  # Optional.
1155
1097
  # @param [String] page_token
1156
1098
  # A pagination token returned from a previous call to ListProjects
1157
1099
  # that indicates from where listing should continue.
1158
1100
  # Optional.
1159
- # @param [Fixnum] page_size
1160
- # The maximum number of Projects to return in the response.
1161
- # The server can return fewer Projects than requested.
1162
- # If unspecified, server picks an appropriate default.
1163
- # Optional.
1164
1101
  # @param [String] quota_user
1165
1102
  # Available to use for quota purposes for server-side applications. Can be any
1166
1103
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -1178,13 +1115,13 @@ module Google
1178
1115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1179
1116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1180
1117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1181
- def list_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1118
+ def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
1182
1119
  command = make_simple_command(:get, 'v1/projects', options)
1183
1120
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
1184
1121
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
1122
+ command.query['pageSize'] = page_size unless page_size.nil?
1185
1123
  command.query['filter'] = filter unless filter.nil?
1186
1124
  command.query['pageToken'] = page_token unless page_token.nil?
1187
- command.query['pageSize'] = page_size unless page_size.nil?
1188
1125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1189
1126
  command.query['fields'] = fields unless fields.nil?
1190
1127
  execute_or_queue_command(command, &block)
@@ -1233,6 +1170,9 @@ module Google
1233
1170
  # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
1234
1171
  # latency. 95th percentile latency is around 11 seconds. We recommend
1235
1172
  # polling at the 5th second with an exponential backoff.
1173
+ # Authorization requires the Google IAM permission
1174
+ # `resourcemanager.projects.create` on the specified parent for the new
1175
+ # project.
1236
1176
  # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1237
1177
  # @param [String] quota_user
1238
1178
  # Available to use for quota purposes for server-side applications. Can be any
@@ -1365,6 +1305,7 @@ module Google
1365
1305
  end
1366
1306
 
1367
1307
  # Returns permissions that a caller has on the specified Project.
1308
+ # There are no permissions required for making this API call.
1368
1309
  # @param [String] resource
1369
1310
  # REQUIRED: The resource for which the policy detail is being requested.
1370
1311
  # See the operation documentation for the appropriate value for this field.
@@ -1397,6 +1338,88 @@ module Google
1397
1338
  command.query['fields'] = fields unless fields.nil?
1398
1339
  execute_or_queue_command(command, &block)
1399
1340
  end
1341
+
1342
+ # Marks the Project identified by the specified
1343
+ # `project_id` (for example, `my-project-123`) for deletion.
1344
+ # This method will only affect the Project if the following criteria are met:
1345
+ # + The Project does not have a billing account associated with it.
1346
+ # + The Project has a lifecycle state of
1347
+ # ACTIVE.
1348
+ # This method changes the Project's lifecycle state from
1349
+ # ACTIVE
1350
+ # to DELETE_REQUESTED.
1351
+ # The deletion starts at an unspecified time,
1352
+ # at which point the Project is no longer accessible.
1353
+ # Until the deletion completes, you can check the lifecycle state
1354
+ # checked by retrieving the Project with GetProject,
1355
+ # and the Project remains visible to ListProjects.
1356
+ # However, you cannot update the project.
1357
+ # After the deletion completes, the Project is not retrievable by
1358
+ # the GetProject and
1359
+ # ListProjects methods.
1360
+ # The caller must have modify permissions for this Project.
1361
+ # @param [String] project_id
1362
+ # The Project ID (for example, `foo-bar-123`).
1363
+ # Required.
1364
+ # @param [String] quota_user
1365
+ # Available to use for quota purposes for server-side applications. Can be any
1366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1367
+ # @param [String] fields
1368
+ # Selector specifying which fields to include in a partial response.
1369
+ # @param [Google::Apis::RequestOptions] options
1370
+ # Request-specific options
1371
+ #
1372
+ # @yield [result, err] Result & error if block supplied
1373
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1374
+ # @yieldparam err [StandardError] error object if request failed
1375
+ #
1376
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1377
+ #
1378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1381
+ def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
1382
+ command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
1383
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1384
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1385
+ command.params['projectId'] = project_id unless project_id.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ execute_or_queue_command(command, &block)
1389
+ end
1390
+
1391
+ # Clears a `Policy` from a resource.
1392
+ # @param [String] resource
1393
+ # Name of the resource for the `Policy` to clear.
1394
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [String] fields
1399
+ # Selector specifying which fields to include in a partial response.
1400
+ # @param [Google::Apis::RequestOptions] options
1401
+ # Request-specific options
1402
+ #
1403
+ # @yield [result, err] Result & error if block supplied
1404
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1405
+ # @yieldparam err [StandardError] error object if request failed
1406
+ #
1407
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1408
+ #
1409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1412
+ def clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1413
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
1414
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
1415
+ command.request_object = clear_org_policy_request_object
1416
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1417
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1418
+ command.params['resource'] = resource unless resource.nil?
1419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1420
+ command.query['fields'] = fields unless fields.nil?
1421
+ execute_or_queue_command(command, &block)
1422
+ end
1400
1423
 
1401
1424
  protected
1402
1425