google-api-client 0.10.1 → 0.10.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -47,12 +47,10 @@ module Google
|
|
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
# @param [
|
|
54
|
-
# The Project ID (for example, `my-project-123`).
|
|
55
|
-
# Required.
|
|
50
|
+
# Clears a `Policy` from a resource.
|
|
51
|
+
# @param [String] resource
|
|
52
|
+
# Name of the resource for the `Policy` to clear.
|
|
53
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
|
56
54
|
# @param [String] quota_user
|
|
57
55
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
58
56
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -62,34 +60,33 @@ module Google
|
|
|
62
60
|
# Request-specific options
|
|
63
61
|
#
|
|
64
62
|
# @yield [result, err] Result & error if block supplied
|
|
65
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
63
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
66
64
|
# @yieldparam err [StandardError] error object if request failed
|
|
67
65
|
#
|
|
68
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
66
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
69
67
|
#
|
|
70
68
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
69
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
70
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
-
def
|
|
74
|
-
command = make_simple_command(:
|
|
75
|
-
command.
|
|
76
|
-
command.
|
|
77
|
-
command.
|
|
71
|
+
def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
72
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:clearOrgPolicy', options)
|
|
73
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest::Representation
|
|
74
|
+
command.request_object = clear_org_policy_request_object
|
|
75
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
76
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
77
|
+
command.params['resource'] = resource unless resource.nil?
|
|
78
78
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
79
79
|
command.query['fields'] = fields unless fields.nil?
|
|
80
80
|
execute_or_queue_command(command, &block)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
#
|
|
84
|
-
# `
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
# @param [
|
|
90
|
-
# The project ID (for example, `foo-bar-123`).
|
|
91
|
-
# Required.
|
|
92
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
|
83
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
|
84
|
+
# existing policy. The `resource` field should be the organization's resource
|
|
85
|
+
# name, e.g. "organizations/123".
|
|
86
|
+
# @param [String] resource
|
|
87
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
88
|
+
# See the operation documentation for the appropriate value for this field.
|
|
89
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
93
90
|
# @param [String] quota_user
|
|
94
91
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
95
92
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -99,33 +96,30 @@ module Google
|
|
|
99
96
|
# Request-specific options
|
|
100
97
|
#
|
|
101
98
|
# @yield [result, err] Result & error if block supplied
|
|
102
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
99
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
103
100
|
# @yieldparam err [StandardError] error object if request failed
|
|
104
101
|
#
|
|
105
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
102
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
106
103
|
#
|
|
107
104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
108
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
109
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
110
|
-
def
|
|
111
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
112
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
113
|
-
command.request_object =
|
|
114
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
115
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
116
|
-
command.params['
|
|
107
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
108
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
|
109
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
|
110
|
+
command.request_object = set_iam_policy_request_object
|
|
111
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
112
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
113
|
+
command.params['resource'] = resource unless resource.nil?
|
|
117
114
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
118
115
|
command.query['fields'] = fields unless fields.nil?
|
|
119
116
|
execute_or_queue_command(command, &block)
|
|
120
117
|
end
|
|
121
118
|
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
# @param [
|
|
126
|
-
# The project ID (for example, `my-project-123`).
|
|
127
|
-
# Required.
|
|
128
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
119
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
|
120
|
+
# @param [String] resource
|
|
121
|
+
# Name of the resource to list `Constraints` for.
|
|
122
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
|
129
123
|
# @param [String] quota_user
|
|
130
124
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
131
125
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -135,33 +129,33 @@ module Google
|
|
|
135
129
|
# Request-specific options
|
|
136
130
|
#
|
|
137
131
|
# @yield [result, err] Result & error if block supplied
|
|
138
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
132
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
|
139
133
|
# @yieldparam err [StandardError] error object if request failed
|
|
140
134
|
#
|
|
141
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
135
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse]
|
|
142
136
|
#
|
|
143
137
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
138
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
139
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
-
def
|
|
147
|
-
command = make_simple_command(:
|
|
148
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
149
|
-
command.request_object =
|
|
150
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
151
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
152
|
-
command.params['
|
|
140
|
+
def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
141
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
|
142
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
|
143
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
|
144
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
|
145
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListAvailableOrgPolicyConstraintsResponse
|
|
146
|
+
command.params['resource'] = resource unless resource.nil?
|
|
153
147
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
154
148
|
command.query['fields'] = fields unless fields.nil?
|
|
155
149
|
execute_or_queue_command(command, &block)
|
|
156
150
|
end
|
|
157
151
|
|
|
158
|
-
# Gets
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
# @param [String]
|
|
162
|
-
# The
|
|
163
|
-
#
|
|
164
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::
|
|
152
|
+
# Gets the access control policy for an Organization resource. May be empty
|
|
153
|
+
# if no such policy or resource exists. The `resource` field should be the
|
|
154
|
+
# organization's resource name, e.g. "organizations/123".
|
|
155
|
+
# @param [String] resource
|
|
156
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
157
|
+
# See the operation documentation for the appropriate value for this field.
|
|
158
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
165
159
|
# @param [String] quota_user
|
|
166
160
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
167
161
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -171,31 +165,34 @@ module Google
|
|
|
171
165
|
# Request-specific options
|
|
172
166
|
#
|
|
173
167
|
# @yield [result, err] Result & error if block supplied
|
|
174
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
168
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
175
169
|
# @yieldparam err [StandardError] error object if request failed
|
|
176
170
|
#
|
|
177
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
171
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
178
172
|
#
|
|
179
173
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
180
174
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
181
175
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
182
|
-
def
|
|
183
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
184
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
185
|
-
command.request_object =
|
|
186
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
187
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
188
|
-
command.params['
|
|
176
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
177
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
|
178
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
|
179
|
+
command.request_object = get_iam_policy_request_object
|
|
180
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
181
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
182
|
+
command.params['resource'] = resource unless resource.nil?
|
|
189
183
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
190
184
|
command.query['fields'] = fields unless fields.nil?
|
|
191
185
|
execute_or_queue_command(command, &block)
|
|
192
186
|
end
|
|
193
187
|
|
|
194
|
-
#
|
|
188
|
+
# Gets a `Policy` on a resource.
|
|
189
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
|
190
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
|
191
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
|
192
|
+
# `Policy` during read-modify-write.
|
|
195
193
|
# @param [String] resource
|
|
196
|
-
#
|
|
197
|
-
#
|
|
198
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
194
|
+
# Name of the resource the `Policy` is set on.
|
|
195
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest] get_org_policy_request_object
|
|
199
196
|
# @param [String] quota_user
|
|
200
197
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
201
198
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -205,48 +202,34 @@ module Google
|
|
|
205
202
|
# Request-specific options
|
|
206
203
|
#
|
|
207
204
|
# @yield [result, err] Result & error if block supplied
|
|
208
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
205
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
209
206
|
# @yieldparam err [StandardError] error object if request failed
|
|
210
207
|
#
|
|
211
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
208
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
212
209
|
#
|
|
213
210
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
214
211
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
215
212
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
216
|
-
def
|
|
217
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
218
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
219
|
-
command.request_object =
|
|
220
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
221
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
213
|
+
def get_organization_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
214
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getOrgPolicy', options)
|
|
215
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest::Representation
|
|
216
|
+
command.request_object = get_org_policy_request_object
|
|
217
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
218
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
222
219
|
command.params['resource'] = resource unless resource.nil?
|
|
223
220
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
224
221
|
command.query['fields'] = fields unless fields.nil?
|
|
225
222
|
execute_or_queue_command(command, &block)
|
|
226
223
|
end
|
|
227
224
|
|
|
228
|
-
#
|
|
229
|
-
# `
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
#
|
|
236
|
-
# to DELETE_REQUESTED.
|
|
237
|
-
# The deletion starts at an unspecified time, at which point the project is
|
|
238
|
-
# no longer accessible.
|
|
239
|
-
# Until the deletion completes, you can check the lifecycle state
|
|
240
|
-
# checked by retrieving the Project with GetProject,
|
|
241
|
-
# and the Project remains visible to ListProjects.
|
|
242
|
-
# However, you cannot update the project.
|
|
243
|
-
# After the deletion completes, the Project is not retrievable by
|
|
244
|
-
# the GetProject and
|
|
245
|
-
# ListProjects methods.
|
|
246
|
-
# The caller must have modify permissions for this Project.
|
|
247
|
-
# @param [String] project_id
|
|
248
|
-
# The Project ID (for example, `foo-bar-123`).
|
|
249
|
-
# Required.
|
|
225
|
+
# Gets a `Policy` on a resource.
|
|
226
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
|
227
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
|
228
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
|
229
|
+
# `Policy` during read-modify-write.
|
|
230
|
+
# @param [String] resource
|
|
231
|
+
# Name of the resource the `Policy` is set on.
|
|
232
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest] get_org_policy_request_object
|
|
250
233
|
# @param [String] quota_user
|
|
251
234
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
252
235
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -256,54 +239,32 @@ module Google
|
|
|
256
239
|
# Request-specific options
|
|
257
240
|
#
|
|
258
241
|
# @yield [result, err] Result & error if block supplied
|
|
259
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
242
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
260
243
|
# @yieldparam err [StandardError] error object if request failed
|
|
261
244
|
#
|
|
262
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
245
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
263
246
|
#
|
|
264
247
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
265
248
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
266
249
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
267
|
-
def
|
|
268
|
-
command = make_simple_command(:
|
|
269
|
-
command.
|
|
270
|
-
command.
|
|
271
|
-
command.
|
|
250
|
+
def get_organization_org_policy_v1(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
251
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getOrgPolicyV1', options)
|
|
252
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetOrgPolicyRequest::Representation
|
|
253
|
+
command.request_object = get_org_policy_request_object
|
|
254
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
255
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
256
|
+
command.params['resource'] = resource unless resource.nil?
|
|
272
257
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
273
258
|
command.query['fields'] = fields unless fields.nil?
|
|
274
259
|
execute_or_queue_command(command, &block)
|
|
275
260
|
end
|
|
276
261
|
|
|
277
|
-
#
|
|
278
|
-
#
|
|
279
|
-
#
|
|
280
|
-
# @param [
|
|
281
|
-
# The
|
|
282
|
-
#
|
|
283
|
-
# If unspecified, server picks an appropriate default.
|
|
284
|
-
# Optional.
|
|
285
|
-
# @param [String] filter
|
|
286
|
-
# An expression for filtering the results of the request. Filter rules are
|
|
287
|
-
# case insensitive. The fields eligible for filtering are:
|
|
288
|
-
# + `name`
|
|
289
|
-
# + `id`
|
|
290
|
-
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
|
291
|
-
# Some examples of using labels as filters:
|
|
292
|
-
# |Filter|Description|
|
|
293
|
-
# |------|-----------|
|
|
294
|
-
# |name:*|The project has a name.|
|
|
295
|
-
# |name:Howl|The project's name is `Howl` or `howl`.|
|
|
296
|
-
# |name:HOWL|Equivalent to above.|
|
|
297
|
-
# |NAME:howl|Equivalent to above.|
|
|
298
|
-
# |labels.color:*|The project has the label `color`.|
|
|
299
|
-
# |labels.color:red|The project's label `color` has the value `red`.|
|
|
300
|
-
# |labels.color:red label.size:big|The project's label `color` has the
|
|
301
|
-
# value `red` and its label `size` has the value `big`.
|
|
302
|
-
# Optional.
|
|
303
|
-
# @param [String] page_token
|
|
304
|
-
# A pagination token returned from a previous call to ListProjects
|
|
305
|
-
# that indicates from where listing should continue.
|
|
306
|
-
# Optional.
|
|
262
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
|
263
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
|
264
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
|
265
|
+
# @param [String] resource
|
|
266
|
+
# The name of the resource to start computing the effective `Policy`.
|
|
267
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
|
307
268
|
# @param [String] quota_user
|
|
308
269
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
309
270
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -313,56 +274,32 @@ module Google
|
|
|
313
274
|
# Request-specific options
|
|
314
275
|
#
|
|
315
276
|
# @yield [result, err] Result & error if block supplied
|
|
316
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
277
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
317
278
|
# @yieldparam err [StandardError] error object if request failed
|
|
318
279
|
#
|
|
319
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
280
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
320
281
|
#
|
|
321
282
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
322
283
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
323
284
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
324
|
-
def
|
|
325
|
-
command = make_simple_command(:
|
|
326
|
-
command.
|
|
327
|
-
command.
|
|
328
|
-
command.
|
|
329
|
-
command.
|
|
330
|
-
command.
|
|
285
|
+
def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
286
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getEffectiveOrgPolicy', options)
|
|
287
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest::Representation
|
|
288
|
+
command.request_object = get_effective_org_policy_request_object
|
|
289
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
290
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
291
|
+
command.params['resource'] = resource unless resource.nil?
|
|
331
292
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
332
293
|
command.query['fields'] = fields unless fields.nil?
|
|
333
294
|
execute_or_queue_command(command, &block)
|
|
334
295
|
end
|
|
335
296
|
|
|
336
|
-
#
|
|
337
|
-
#
|
|
338
|
-
# The
|
|
339
|
-
#
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
# + Service accounts can be made owners of a project directly
|
|
343
|
-
# without any restrictions. However, to be added as an owner, a user must be
|
|
344
|
-
# invited via Cloud Platform console and must accept the invitation.
|
|
345
|
-
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
|
346
|
-
# must be granted the owner role using the Cloud Platform Console and must
|
|
347
|
-
# explicitly accept the invitation.
|
|
348
|
-
# + Invitations to grant the owner role cannot be sent using `setIamPolicy()`;
|
|
349
|
-
# they must be sent only using the Cloud Platform Console.
|
|
350
|
-
# + Membership changes that leave the project without any owners that have
|
|
351
|
-
# accepted the Terms of Service (ToS) will be rejected.
|
|
352
|
-
# + There must be at least one owner who has accepted the Terms of
|
|
353
|
-
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
|
354
|
-
# to remove the last ToS-accepted owner from the policy will fail. This
|
|
355
|
-
# restriction also applies to legacy projects that no longer have owners
|
|
356
|
-
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
|
357
|
-
# the lack of a ToS-accepting owner is rectified.
|
|
358
|
-
# + Calling this method requires enabling the App Engine Admin API.
|
|
359
|
-
# Note: Removing service accounts from policies or changing their roles
|
|
360
|
-
# can render services completely inoperable. It is important to understand
|
|
361
|
-
# how the service account is being used before removing or updating its roles.
|
|
362
|
-
# @param [String] resource
|
|
363
|
-
# REQUIRED: The resource for which the policy is being specified.
|
|
364
|
-
# See the operation documentation for the appropriate value for this field.
|
|
365
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
297
|
+
# Updates an Organization resource identified by the specified resource name.
|
|
298
|
+
# @param [String] name
|
|
299
|
+
# Output Only. The resource name of the organization. This is the
|
|
300
|
+
# organization's relative path in the API. Its format is
|
|
301
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
|
302
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
|
|
366
303
|
# @param [String] quota_user
|
|
367
304
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
368
305
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -372,35 +309,33 @@ module Google
|
|
|
372
309
|
# Request-specific options
|
|
373
310
|
#
|
|
374
311
|
# @yield [result, err] Result & error if block supplied
|
|
375
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
312
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
|
376
313
|
# @yieldparam err [StandardError] error object if request failed
|
|
377
314
|
#
|
|
378
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
315
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
|
379
316
|
#
|
|
380
317
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
381
318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
382
319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
383
|
-
def
|
|
384
|
-
command = make_simple_command(:
|
|
385
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
386
|
-
command.request_object =
|
|
387
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
388
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
389
|
-
command.params['
|
|
320
|
+
def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
321
|
+
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
|
322
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
323
|
+
command.request_object = organization_object
|
|
324
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
325
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
|
326
|
+
command.params['name'] = name unless name.nil?
|
|
390
327
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
391
328
|
command.query['fields'] = fields unless fields.nil?
|
|
392
329
|
execute_or_queue_command(command, &block)
|
|
393
330
|
end
|
|
394
331
|
|
|
395
|
-
# Creates a
|
|
396
|
-
#
|
|
397
|
-
#
|
|
398
|
-
#
|
|
399
|
-
#
|
|
400
|
-
#
|
|
401
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::
|
|
402
|
-
# @param [Boolean] use_legacy_stack
|
|
403
|
-
# A safety hatch to opt out of the new reliable project creation process.
|
|
332
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
|
333
|
+
# that `Constraint` on the resource if one does not exist.
|
|
334
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
|
335
|
+
# write of the `Policy`.
|
|
336
|
+
# @param [String] resource
|
|
337
|
+
# Resource name of the resource to attach the `Policy`.
|
|
338
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest] set_org_policy_request_object
|
|
404
339
|
# @param [String] quota_user
|
|
405
340
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
406
341
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -410,32 +345,83 @@ module Google
|
|
|
410
345
|
# Request-specific options
|
|
411
346
|
#
|
|
412
347
|
# @yield [result, err] Result & error if block supplied
|
|
413
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
348
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
414
349
|
# @yieldparam err [StandardError] error object if request failed
|
|
415
350
|
#
|
|
416
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
351
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
417
352
|
#
|
|
418
353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
419
354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
|
-
def
|
|
422
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
423
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
424
|
-
command.request_object =
|
|
425
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
426
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
427
|
-
command.
|
|
356
|
+
def set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
357
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setOrgPolicyV1', options)
|
|
358
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest::Representation
|
|
359
|
+
command.request_object = set_org_policy_request_object
|
|
360
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
361
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
362
|
+
command.params['resource'] = resource unless resource.nil?
|
|
428
363
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
429
364
|
command.query['fields'] = fields unless fields.nil?
|
|
430
365
|
execute_or_queue_command(command, &block)
|
|
431
366
|
end
|
|
432
367
|
|
|
433
|
-
#
|
|
434
|
-
#
|
|
368
|
+
# Lists Organization resources that are visible to the user and satisfy
|
|
369
|
+
# the specified filter. This method returns Organizations in an unspecified
|
|
370
|
+
# order. New Organizations do not necessarily appear at the end of the list.
|
|
371
|
+
# @param [String] filter
|
|
372
|
+
# An optional query string used to filter the Organizations to return in
|
|
373
|
+
# the response. Filter rules are case-insensitive.
|
|
374
|
+
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
|
375
|
+
# `domain`, where the domain is a Google for Work domain, for example:
|
|
376
|
+
# |Filter|Description|
|
|
377
|
+
# |------|-----------|
|
|
378
|
+
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
|
379
|
+
# directory_customer_id` equal to `123456789`.|
|
|
380
|
+
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
|
381
|
+
# This field is optional.
|
|
382
|
+
# @param [String] page_token
|
|
383
|
+
# A pagination token returned from a previous call to `ListOrganizations`
|
|
384
|
+
# that indicates from where listing should continue.
|
|
385
|
+
# This field is optional.
|
|
386
|
+
# @param [Fixnum] page_size
|
|
387
|
+
# The maximum number of Organizations to return in the response.
|
|
388
|
+
# This field is optional.
|
|
389
|
+
# @param [String] quota_user
|
|
390
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
391
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
392
|
+
# @param [String] fields
|
|
393
|
+
# Selector specifying which fields to include in a partial response.
|
|
394
|
+
# @param [Google::Apis::RequestOptions] options
|
|
395
|
+
# Request-specific options
|
|
396
|
+
#
|
|
397
|
+
# @yield [result, err] Result & error if block supplied
|
|
398
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
|
399
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
400
|
+
#
|
|
401
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
|
402
|
+
#
|
|
403
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
404
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
405
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
406
|
+
def list_organizations(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
407
|
+
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
|
408
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
|
409
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
|
410
|
+
command.query['filter'] = filter unless filter.nil?
|
|
411
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
412
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
413
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
414
|
+
command.query['fields'] = fields unless fields.nil?
|
|
415
|
+
execute_or_queue_command(command, &block)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
|
419
|
+
# that `Constraint` on the resource if one does not exist.
|
|
420
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
|
421
|
+
# write of the `Policy`.
|
|
435
422
|
# @param [String] resource
|
|
436
|
-
#
|
|
437
|
-
#
|
|
438
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
423
|
+
# Resource name of the resource to attach the `Policy`.
|
|
424
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest] set_org_policy_request_object
|
|
439
425
|
# @param [String] quota_user
|
|
440
426
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
441
427
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -445,32 +431,30 @@ module Google
|
|
|
445
431
|
# Request-specific options
|
|
446
432
|
#
|
|
447
433
|
# @yield [result, err] Result & error if block supplied
|
|
448
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
434
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
449
435
|
# @yieldparam err [StandardError] error object if request failed
|
|
450
436
|
#
|
|
451
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
437
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
452
438
|
#
|
|
453
439
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
454
440
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
455
441
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
456
|
-
def
|
|
457
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
458
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
459
|
-
command.request_object =
|
|
460
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
461
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
442
|
+
def set_organization_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
443
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setOrgPolicy', options)
|
|
444
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest::Representation
|
|
445
|
+
command.request_object = set_org_policy_request_object
|
|
446
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
447
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
462
448
|
command.params['resource'] = resource unless resource.nil?
|
|
463
449
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
464
450
|
command.query['fields'] = fields unless fields.nil?
|
|
465
451
|
execute_or_queue_command(command, &block)
|
|
466
452
|
end
|
|
467
453
|
|
|
468
|
-
#
|
|
469
|
-
# @param [String]
|
|
470
|
-
#
|
|
471
|
-
# @param [
|
|
472
|
-
# The id of the Organization resource to fetch.
|
|
473
|
-
# This field is deprecated and will be removed in v1. Use name instead.
|
|
454
|
+
# Clears a `Policy` from a resource.
|
|
455
|
+
# @param [String] resource
|
|
456
|
+
# Name of the resource for the `Policy` to clear.
|
|
457
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
|
474
458
|
# @param [String] quota_user
|
|
475
459
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
476
460
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -480,31 +464,65 @@ module Google
|
|
|
480
464
|
# Request-specific options
|
|
481
465
|
#
|
|
482
466
|
# @yield [result, err] Result & error if block supplied
|
|
483
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
467
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
484
468
|
# @yieldparam err [StandardError] error object if request failed
|
|
485
469
|
#
|
|
486
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
470
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
487
471
|
#
|
|
488
472
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
489
473
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
490
474
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
491
|
-
def
|
|
492
|
-
command = make_simple_command(:
|
|
493
|
-
command.
|
|
494
|
-
command.
|
|
495
|
-
command.
|
|
496
|
-
command.
|
|
475
|
+
def clear_organization_org_policy_v1(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
476
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:clearOrgPolicyV1', options)
|
|
477
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest::Representation
|
|
478
|
+
command.request_object = clear_org_policy_request_object
|
|
479
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
480
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
481
|
+
command.params['resource'] = resource unless resource.nil?
|
|
497
482
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
498
483
|
command.query['fields'] = fields unless fields.nil?
|
|
499
484
|
execute_or_queue_command(command, &block)
|
|
500
485
|
end
|
|
501
486
|
|
|
502
|
-
#
|
|
487
|
+
# Lists all the `Policies` set for a particular resource.
|
|
488
|
+
# @param [String] resource
|
|
489
|
+
# Name of the resource to list Policies for.
|
|
490
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesRequest] list_org_policies_request_object
|
|
491
|
+
# @param [String] quota_user
|
|
492
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
493
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
494
|
+
# @param [String] fields
|
|
495
|
+
# Selector specifying which fields to include in a partial response.
|
|
496
|
+
# @param [Google::Apis::RequestOptions] options
|
|
497
|
+
# Request-specific options
|
|
498
|
+
#
|
|
499
|
+
# @yield [result, err] Result & error if block supplied
|
|
500
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse] parsed result object
|
|
501
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
502
|
+
#
|
|
503
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse]
|
|
504
|
+
#
|
|
505
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
506
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
507
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
508
|
+
def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
509
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:listOrgPolicies', options)
|
|
510
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesRequest::Representation
|
|
511
|
+
command.request_object = list_org_policies_request_object
|
|
512
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse::Representation
|
|
513
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrgPoliciesResponse
|
|
514
|
+
command.params['resource'] = resource unless resource.nil?
|
|
515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
516
|
+
command.query['fields'] = fields unless fields.nil?
|
|
517
|
+
execute_or_queue_command(command, &block)
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
# Fetches an Organization resource identified by the specified resource name.
|
|
503
521
|
# @param [String] name
|
|
504
|
-
#
|
|
505
|
-
#
|
|
506
|
-
#
|
|
507
|
-
#
|
|
522
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
|
523
|
+
# @param [String] organization_id
|
|
524
|
+
# The id of the Organization resource to fetch.
|
|
525
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
|
508
526
|
# @param [String] quota_user
|
|
509
527
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
510
528
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -522,13 +540,12 @@ module Google
|
|
|
522
540
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
523
541
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
524
542
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
525
|
-
def
|
|
526
|
-
command = make_simple_command(:
|
|
527
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
528
|
-
command.request_object = organization_object
|
|
543
|
+
def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
544
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
529
545
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
530
546
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
|
531
547
|
command.params['name'] = name unless name.nil?
|
|
548
|
+
command.query['organizationId'] = organization_id unless organization_id.nil?
|
|
532
549
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
533
550
|
command.query['fields'] = fields unless fields.nil?
|
|
534
551
|
execute_or_queue_command(command, &block)
|
|
@@ -570,27 +587,12 @@ module Google
|
|
|
570
587
|
execute_or_queue_command(command, &block)
|
|
571
588
|
end
|
|
572
589
|
|
|
573
|
-
#
|
|
574
|
-
# the
|
|
575
|
-
#
|
|
576
|
-
# @param [
|
|
577
|
-
# The
|
|
578
|
-
#
|
|
579
|
-
# @param [String] filter
|
|
580
|
-
# An optional query string used to filter the Organizations to return in
|
|
581
|
-
# the response. Filter rules are case-insensitive.
|
|
582
|
-
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
|
583
|
-
# `domain`, where the domain is a Google for Work domain, for example:
|
|
584
|
-
# |Filter|Description|
|
|
585
|
-
# |------|-----------|
|
|
586
|
-
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
|
587
|
-
# directory_customer_id` equal to `123456789`.|
|
|
588
|
-
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
|
589
|
-
# This field is optional.
|
|
590
|
-
# @param [String] page_token
|
|
591
|
-
# A pagination token returned from a previous call to `ListOrganizations`
|
|
592
|
-
# that indicates from where listing should continue.
|
|
593
|
-
# This field is optional.
|
|
590
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
|
591
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
|
592
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
|
593
|
+
# @param [String] resource
|
|
594
|
+
# The name of the resource to start computing the effective `Policy`.
|
|
595
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
|
594
596
|
# @param [String] quota_user
|
|
595
597
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
596
598
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -600,29 +602,91 @@ module Google
|
|
|
600
602
|
# Request-specific options
|
|
601
603
|
#
|
|
602
604
|
# @yield [result, err] Result & error if block supplied
|
|
603
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
605
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
604
606
|
# @yieldparam err [StandardError] error object if request failed
|
|
605
607
|
#
|
|
606
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
608
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
607
609
|
#
|
|
608
610
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
609
611
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
612
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
|
-
def
|
|
612
|
-
command = make_simple_command(:
|
|
613
|
-
command.
|
|
614
|
-
command.
|
|
615
|
-
command.
|
|
616
|
-
command.
|
|
617
|
-
command.
|
|
613
|
+
def get_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
614
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getEffectiveOrgPolicyV1', options)
|
|
615
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest::Representation
|
|
616
|
+
command.request_object = get_effective_org_policy_request_object
|
|
617
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
618
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
619
|
+
command.params['resource'] = resource unless resource.nil?
|
|
618
620
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
619
621
|
command.query['fields'] = fields unless fields.nil?
|
|
620
622
|
execute_or_queue_command(command, &block)
|
|
621
623
|
end
|
|
622
624
|
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
625
|
+
# Creates a Project resource.
|
|
626
|
+
# Initially, the Project resource is owned by its creator exclusively.
|
|
627
|
+
# The creator can later grant permission to others to read or update the
|
|
628
|
+
# Project.
|
|
629
|
+
# Several APIs are activated automatically for the Project, including
|
|
630
|
+
# Google Cloud Storage.
|
|
631
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
632
|
+
# @param [Boolean] use_legacy_stack
|
|
633
|
+
# A safety hatch to opt out of the new reliable project creation process.
|
|
634
|
+
# @param [String] quota_user
|
|
635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
637
|
+
# @param [String] fields
|
|
638
|
+
# Selector specifying which fields to include in a partial response.
|
|
639
|
+
# @param [Google::Apis::RequestOptions] options
|
|
640
|
+
# Request-specific options
|
|
641
|
+
#
|
|
642
|
+
# @yield [result, err] Result & error if block supplied
|
|
643
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
644
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
645
|
+
#
|
|
646
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
647
|
+
#
|
|
648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
651
|
+
def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
652
|
+
command = make_simple_command(:post, 'v1beta1/projects', options)
|
|
653
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
654
|
+
command.request_object = project_object
|
|
655
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
656
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
657
|
+
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
|
|
658
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
659
|
+
command.query['fields'] = fields unless fields.nil?
|
|
660
|
+
execute_or_queue_command(command, &block)
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
# Sets the IAM access control policy for the specified Project. Replaces
|
|
664
|
+
# any existing policy.
|
|
665
|
+
# The following constraints apply when using `setIamPolicy()`:
|
|
666
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
|
667
|
+
# `members` in a `Binding` of a `Policy`.
|
|
668
|
+
# + The owner role can be granted only to `user` and `serviceAccount`.
|
|
669
|
+
# + Service accounts can be made owners of a project directly
|
|
670
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
|
671
|
+
# invited via Cloud Platform console and must accept the invitation.
|
|
672
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
|
673
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
|
674
|
+
# explicitly accept the invitation.
|
|
675
|
+
# + Invitations to grant the owner role cannot be sent using
|
|
676
|
+
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
|
677
|
+
# + Membership changes that leave the project without any owners that have
|
|
678
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
|
679
|
+
# + There must be at least one owner who has accepted the Terms of
|
|
680
|
+
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
|
681
|
+
# remove the last ToS-accepted owner from the policy will fail. This
|
|
682
|
+
# restriction also applies to legacy projects that no longer have owners
|
|
683
|
+
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
|
684
|
+
# the lack of a ToS-accepting owner is rectified.
|
|
685
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
|
686
|
+
# Note: Removing service accounts from policies or changing their roles
|
|
687
|
+
# can render services completely inoperable. It is important to understand
|
|
688
|
+
# how the service account is being used before removing or updating its
|
|
689
|
+
# roles.
|
|
626
690
|
# @param [String] resource
|
|
627
691
|
# REQUIRED: The resource for which the policy is being specified.
|
|
628
692
|
# See the operation documentation for the appropriate value for this field.
|
|
@@ -644,8 +708,8 @@ module Google
|
|
|
644
708
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
645
709
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
646
710
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
647
|
-
def
|
|
648
|
-
command = make_simple_command(:post, 'v1beta1/{
|
|
711
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
712
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
|
649
713
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
|
650
714
|
command.request_object = set_iam_policy_request_object
|
|
651
715
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
@@ -656,9 +720,8 @@ module Google
|
|
|
656
720
|
execute_or_queue_command(command, &block)
|
|
657
721
|
end
|
|
658
722
|
|
|
659
|
-
#
|
|
660
|
-
# if
|
|
661
|
-
# organization's resource name, e.g. "organizations/123".
|
|
723
|
+
# Returns the IAM access control policy for the specified Project.
|
|
724
|
+
# Permission is denied if the policy or the resource does not exist.
|
|
662
725
|
# @param [String] resource
|
|
663
726
|
# REQUIRED: The resource for which the policy is being requested.
|
|
664
727
|
# See the operation documentation for the appropriate value for this field.
|
|
@@ -680,8 +743,8 @@ module Google
|
|
|
680
743
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
681
744
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
682
745
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
683
|
-
def
|
|
684
|
-
command = make_simple_command(:post, 'v1beta1/{
|
|
746
|
+
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
747
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
|
685
748
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
|
686
749
|
command.request_object = get_iam_policy_request_object
|
|
687
750
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
@@ -691,6 +754,292 @@ module Google
|
|
|
691
754
|
command.query['fields'] = fields unless fields.nil?
|
|
692
755
|
execute_or_queue_command(command, &block)
|
|
693
756
|
end
|
|
757
|
+
|
|
758
|
+
# Restores the Project identified by the specified
|
|
759
|
+
# `project_id` (for example, `my-project-123`).
|
|
760
|
+
# You can only use this method for a Project that has a lifecycle state of
|
|
761
|
+
# DELETE_REQUESTED.
|
|
762
|
+
# After deletion starts, the Project cannot be restored.
|
|
763
|
+
# The caller must have modify permissions for this Project.
|
|
764
|
+
# @param [String] project_id
|
|
765
|
+
# The project ID (for example, `foo-bar-123`).
|
|
766
|
+
# Required.
|
|
767
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
|
768
|
+
# @param [String] quota_user
|
|
769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
771
|
+
# @param [String] fields
|
|
772
|
+
# Selector specifying which fields to include in a partial response.
|
|
773
|
+
# @param [Google::Apis::RequestOptions] options
|
|
774
|
+
# Request-specific options
|
|
775
|
+
#
|
|
776
|
+
# @yield [result, err] Result & error if block supplied
|
|
777
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
778
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
779
|
+
#
|
|
780
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
781
|
+
#
|
|
782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
785
|
+
def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
786
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
|
787
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
|
788
|
+
command.request_object = undelete_project_request_object
|
|
789
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
790
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
791
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
792
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
793
|
+
command.query['fields'] = fields unless fields.nil?
|
|
794
|
+
execute_or_queue_command(command, &block)
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Retrieves the Project identified by the specified
|
|
798
|
+
# `project_id` (for example, `my-project-123`).
|
|
799
|
+
# The caller must have read permissions for this Project.
|
|
800
|
+
# @param [String] project_id
|
|
801
|
+
# The Project ID (for example, `my-project-123`).
|
|
802
|
+
# Required.
|
|
803
|
+
# @param [String] quota_user
|
|
804
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
805
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
806
|
+
# @param [String] fields
|
|
807
|
+
# Selector specifying which fields to include in a partial response.
|
|
808
|
+
# @param [Google::Apis::RequestOptions] options
|
|
809
|
+
# Request-specific options
|
|
810
|
+
#
|
|
811
|
+
# @yield [result, err] Result & error if block supplied
|
|
812
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
813
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
814
|
+
#
|
|
815
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
816
|
+
#
|
|
817
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
818
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
819
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
820
|
+
def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
821
|
+
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
|
822
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
823
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
824
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
825
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
826
|
+
command.query['fields'] = fields unless fields.nil?
|
|
827
|
+
execute_or_queue_command(command, &block)
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
|
831
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
|
832
|
+
# The caller must have read permissions for this Project.
|
|
833
|
+
# @param [String] project_id
|
|
834
|
+
# The Project ID (for example, `my-project-123`).
|
|
835
|
+
# Required.
|
|
836
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
|
837
|
+
# @param [String] quota_user
|
|
838
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
839
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
840
|
+
# @param [String] fields
|
|
841
|
+
# Selector specifying which fields to include in a partial response.
|
|
842
|
+
# @param [Google::Apis::RequestOptions] options
|
|
843
|
+
# Request-specific options
|
|
844
|
+
#
|
|
845
|
+
# @yield [result, err] Result & error if block supplied
|
|
846
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
|
847
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
848
|
+
#
|
|
849
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
|
850
|
+
#
|
|
851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
854
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
855
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
|
856
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
|
857
|
+
command.request_object = get_ancestry_request_object
|
|
858
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
|
859
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
|
860
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
862
|
+
command.query['fields'] = fields unless fields.nil?
|
|
863
|
+
execute_or_queue_command(command, &block)
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
# Updates the attributes of the Project identified by the specified
|
|
867
|
+
# `project_id` (for example, `my-project-123`).
|
|
868
|
+
# The caller must have modify permissions for this Project.
|
|
869
|
+
# @param [String] project_id
|
|
870
|
+
# The project ID (for example, `my-project-123`).
|
|
871
|
+
# Required.
|
|
872
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
873
|
+
# @param [String] quota_user
|
|
874
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
875
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
876
|
+
# @param [String] fields
|
|
877
|
+
# Selector specifying which fields to include in a partial response.
|
|
878
|
+
# @param [Google::Apis::RequestOptions] options
|
|
879
|
+
# Request-specific options
|
|
880
|
+
#
|
|
881
|
+
# @yield [result, err] Result & error if block supplied
|
|
882
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
883
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
884
|
+
#
|
|
885
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
886
|
+
#
|
|
887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
890
|
+
def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
891
|
+
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
|
892
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
893
|
+
command.request_object = project_object
|
|
894
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
895
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
896
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
897
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
|
899
|
+
execute_or_queue_command(command, &block)
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
# Returns permissions that a caller has on the specified Project.
|
|
903
|
+
# @param [String] resource
|
|
904
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
905
|
+
# See the operation documentation for the appropriate value for this field.
|
|
906
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
907
|
+
# @param [String] quota_user
|
|
908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
910
|
+
# @param [String] fields
|
|
911
|
+
# Selector specifying which fields to include in a partial response.
|
|
912
|
+
# @param [Google::Apis::RequestOptions] options
|
|
913
|
+
# Request-specific options
|
|
914
|
+
#
|
|
915
|
+
# @yield [result, err] Result & error if block supplied
|
|
916
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
|
917
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
918
|
+
#
|
|
919
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
|
920
|
+
#
|
|
921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
924
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
925
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
|
926
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
|
927
|
+
command.request_object = test_iam_permissions_request_object
|
|
928
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
|
929
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
|
930
|
+
command.params['resource'] = resource unless resource.nil?
|
|
931
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
932
|
+
command.query['fields'] = fields unless fields.nil?
|
|
933
|
+
execute_or_queue_command(command, &block)
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
# Marks the Project identified by the specified
|
|
937
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
|
938
|
+
# This method will only affect the Project if the following criteria are met:
|
|
939
|
+
# + The Project does not have a billing account associated with it.
|
|
940
|
+
# + The Project has a lifecycle state of
|
|
941
|
+
# ACTIVE.
|
|
942
|
+
# This method changes the Project's lifecycle state from
|
|
943
|
+
# ACTIVE
|
|
944
|
+
# to DELETE_REQUESTED.
|
|
945
|
+
# The deletion starts at an unspecified time, at which point the project is
|
|
946
|
+
# no longer accessible.
|
|
947
|
+
# Until the deletion completes, you can check the lifecycle state
|
|
948
|
+
# checked by retrieving the Project with GetProject,
|
|
949
|
+
# and the Project remains visible to ListProjects.
|
|
950
|
+
# However, you cannot update the project.
|
|
951
|
+
# After the deletion completes, the Project is not retrievable by
|
|
952
|
+
# the GetProject and
|
|
953
|
+
# ListProjects methods.
|
|
954
|
+
# The caller must have modify permissions for this Project.
|
|
955
|
+
# @param [String] project_id
|
|
956
|
+
# The Project ID (for example, `foo-bar-123`).
|
|
957
|
+
# Required.
|
|
958
|
+
# @param [String] quota_user
|
|
959
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
960
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
961
|
+
# @param [String] fields
|
|
962
|
+
# Selector specifying which fields to include in a partial response.
|
|
963
|
+
# @param [Google::Apis::RequestOptions] options
|
|
964
|
+
# Request-specific options
|
|
965
|
+
#
|
|
966
|
+
# @yield [result, err] Result & error if block supplied
|
|
967
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
968
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
969
|
+
#
|
|
970
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
971
|
+
#
|
|
972
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
973
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
974
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
975
|
+
def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
976
|
+
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
|
977
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
978
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
979
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
980
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
981
|
+
command.query['fields'] = fields unless fields.nil?
|
|
982
|
+
execute_or_queue_command(command, &block)
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# Lists Projects that are visible to the user and satisfy the
|
|
986
|
+
# specified filter. This method returns Projects in an unspecified order.
|
|
987
|
+
# New Projects do not necessarily appear at the end of the list.
|
|
988
|
+
# @param [String] page_token
|
|
989
|
+
# A pagination token returned from a previous call to ListProjects
|
|
990
|
+
# that indicates from where listing should continue.
|
|
991
|
+
# Optional.
|
|
992
|
+
# @param [Fixnum] page_size
|
|
993
|
+
# The maximum number of Projects to return in the response.
|
|
994
|
+
# The server can return fewer Projects than requested.
|
|
995
|
+
# If unspecified, server picks an appropriate default.
|
|
996
|
+
# Optional.
|
|
997
|
+
# @param [String] filter
|
|
998
|
+
# An expression for filtering the results of the request. Filter rules are
|
|
999
|
+
# case insensitive. The fields eligible for filtering are:
|
|
1000
|
+
# + `name`
|
|
1001
|
+
# + `id`
|
|
1002
|
+
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
|
1003
|
+
# Some examples of using labels as filters:
|
|
1004
|
+
# |Filter|Description|
|
|
1005
|
+
# |------|-----------|
|
|
1006
|
+
# |name:*|The project has a name.|
|
|
1007
|
+
# |name:Howl|The project's name is `Howl` or `howl`.|
|
|
1008
|
+
# |name:HOWL|Equivalent to above.|
|
|
1009
|
+
# |NAME:howl|Equivalent to above.|
|
|
1010
|
+
# |labels.color:*|The project has the label `color`.|
|
|
1011
|
+
# |labels.color:red|The project's label `color` has the value `red`.|
|
|
1012
|
+
# |labels.color:red labels.size:big|The project's label `color` has the
|
|
1013
|
+
# value `red` and its label `size` has the value `big`.
|
|
1014
|
+
# Optional.
|
|
1015
|
+
# @param [String] quota_user
|
|
1016
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1017
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1018
|
+
# @param [String] fields
|
|
1019
|
+
# Selector specifying which fields to include in a partial response.
|
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1021
|
+
# Request-specific options
|
|
1022
|
+
#
|
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
|
1024
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1026
|
+
#
|
|
1027
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
|
1028
|
+
#
|
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1032
|
+
def list_projects(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1033
|
+
command = make_simple_command(:get, 'v1beta1/projects', options)
|
|
1034
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
|
1035
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
|
1036
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1037
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1038
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1040
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1041
|
+
execute_or_queue_command(command, &block)
|
|
1042
|
+
end
|
|
694
1043
|
|
|
695
1044
|
protected
|
|
696
1045
|
|