blob: 6b6426ff19016a6761463b44949b878e74e540bf [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="serviceconsumermanagement_v1.html">Service Consumer Management API</a> . <a href="serviceconsumermanagement_v1.services.html">services</a> . <a href="serviceconsumermanagement_v1.services.tenancyUnits.html">tenancyUnits</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#addProject">addProject(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Add a new tenant project to the tenancy unit.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#applyProjectConfig">applyProjectConfig(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Apply a configuration to an existing tenant project.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#attachProject">attachProject(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Attach an existing project to the tenancy unit as a new tenant</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Creates a tenancy unit with no tenant resources.</p>
89<p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Delete a tenancy unit. Before you delete the tenancy unit, there should be</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#deleteProject">deleteProject(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Deletes the specified project resource identified by a tenant resource tag.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Find the tenancy unit for a managed service and service consumer.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#removeProject">removeProject(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Removes the specified project resource identified by a tenant resource tag.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#undeleteProject">undeleteProject(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Attempts to undelete a previously deleted tenant project. The project must</p>
107<h3>Method Details</h3>
108<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code class="details" id="addProject">addProject(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 <pre>Add a new tenant project to the tenancy unit.
111There can be a maximum of 512 tenant projects in a tenancy unit.
112If there are previously failed `AddTenantProject` calls, you might need to
113call `RemoveTenantProject` first to resolve them before you can make
114another call to `AddTenantProject` with the same tag.
Dan O'Mearadd494642020-05-01 07:42:23 -0700115Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116
117Args:
118 parent: string, Name of the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700119Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 The object takes the form of:
122
123{ # Request to add a newly created and configured tenant project to a tenancy
124 # unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;tag&quot;: &quot;A String&quot;, # Tag of the added project. Must be less than 128 characters. Required.
126 &quot;projectConfig&quot;: { # This structure defines a tenant project to be added to the specified tenancy # Configuration of the new tenant project to be added to tenancy unit
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 # resources.
128 # unit and its initial configuration and properties. A project lien is created
129 # for the tenant project to prevent the tenant project from being deleted
130 # accidentally. The lien is deleted as part of tenant project removal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;labels&quot;: { # Labels that are applied to this project.
132 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;serviceAccountConfig&quot;: { # Describes the service account configuration for the tenant project. # Configuration for the IAM service account on the tenant project.
135 &quot;accountId&quot;: &quot;A String&quot;, # ID of the IAM service account to be created in tenant project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136 # The email format of the service account is
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 # &quot;&lt;account-id&gt;@&lt;tenant-project-id&gt;.iam.gserviceaccount.com&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 # This account ID must be unique within tenant project and service
139 # producers have to guarantee it. The ID must be 6-30 characters long, and
140 # match the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;tenantProjectRoles&quot;: [ # Roles for the associated service account for the tenant project.
142 &quot;A String&quot;,
143 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;folder&quot;: &quot;A String&quot;, # Folder where project in this tenancy unit must be located
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 # This folder must have been previously created with the required
147 # permissions for the caller to create and configure a project in it.
148 # Valid folder resource names have the format `folders/{folder_number}`
149 # (for example, `folders/123456`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;tenantProjectPolicy&quot;: { # Describes policy settings that need to be applied to a newly # Describes ownership and policies for the new tenant project. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 # created tenant project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;policyBindings&quot;: [ # Policy bindings to be applied to the tenant project, in addition to the
153 # &#x27;roles/owner&#x27; role granted to the Service Consumer Management service
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154 # account.
155 # At least one binding must have the role `roles/owner`. Among the list of
156 # members for `roles/owner`, at least one of them must be either the `user`
157 # or `group` type.
158 { # Translates to IAM Policy bindings (without auditing at this level)
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;members&quot;: [ # Uses the same format as in IAM policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 # `member` must include both a prefix and ID. For example, `user:{emailId}`,
161 # `serviceAccount:{emailId}`, `group:{emailId}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;role&quot;: &quot;A String&quot;, # Role. (https://cloud.google.com/iam/docs/understanding-roles)
165 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 },
167 ],
168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;services&quot;: [ # Google Cloud API names of services that are activated on this project
170 # during provisioning. If any of these services can&#x27;t be activated,
171 # the request fails.
172 # For example: &#x27;compute.googleapis.com&#x27;,&#x27;cloudfunctions.googleapis.com&#x27;
173 &quot;A String&quot;,
174 ],
175 &quot;billingConfig&quot;: { # Describes the billing configuration for a new tenant project. # Billing account properties. The billing account must be specified.
176 &quot;billingAccount&quot;: &quot;A String&quot;, # Name of the billing account.
177 # For example `billingAccounts/012345-567890-ABCDEF`.
178 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 }
181
182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187Returns:
188 An object of the form:
189
190 { # This resource represents a long-running operation that is the result of a
191 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193 # contains progress information and common metadata such as create time.
194 # Some services might not provide such metadata. Any method that returns a
195 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700197 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 # method returns no data on success, such as `Delete`, the response is
200 # `google.protobuf.Empty`. If the original method is standard
201 # `Get`/`Create`/`Update`, the response should be the resource. For other
202 # methods, the response should have the type `XxxResponse`, where `Xxx`
203 # is the original method name. For example, if the original method name
204 # is `TakeSnapshot()`, the inferred response type is
205 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 # originally returns it. If you use the default HTTP mapping, the
210 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
212 # different programming environments, including REST APIs and RPC APIs. It is
213 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
214 # three pieces of data: error code, error message, and error details.
215 #
216 # You can find out more about this error model and how to work with it in the
217 # [API Design Guide](https://cloud.google.com/apis/design/errors).
218 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
219 # message types for APIs to use.
220 {
221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
222 },
223 ],
224 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
225 # user-facing error message should be localized and sent in the
226 # google.rpc.Status.details field, or localized by the client.
227 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
228 },
229 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
230 # If `true`, the operation is completed, and either `error` or `response` is
231 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 }</pre>
233</div>
234
235<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700236 <code class="details" id="applyProjectConfig">applyProjectConfig(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 <pre>Apply a configuration to an existing tenant project.
238This project must exist in an active state and have the original owner
239account. The caller must have permission to add a project to the given
240tenancy unit. The configuration is applied, but any existing settings on
Bu Sun Kim65020912020-05-20 12:08:20 -0700241the project aren&#x27;t modified.
242Specified policy bindings are applied. Existing bindings aren&#x27;t modified.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243Specified services are activated. No service is deactivated.
244If specified, new billing configuration is applied.
245Omit a billing configuration to keep the existing one.
246A service account in the project is created if previously non existed.
247Specified labels will be appended to tenant project, note that the value of
248existing label key will be updated if the same label key is requested.
249The specified folder is ignored, as moving a tenant project to a different
Bu Sun Kim65020912020-05-20 12:08:20 -0700250folder isn&#x27;t supported.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251The operation fails if any of the steps fail, but no rollback of already
252applied configuration changes is attempted.
Dan O'Mearadd494642020-05-01 07:42:23 -0700253Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254
255Args:
256 name: string, Name of the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700258 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 The object takes the form of:
260
261{ # Request to apply configuration to an existing tenant project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;tag&quot;: &quot;A String&quot;, # Tag of the project. Must be less than 128 characters. Required.
263 &quot;projectConfig&quot;: { # This structure defines a tenant project to be added to the specified tenancy # Configuration that should be applied to the existing tenant project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 # unit and its initial configuration and properties. A project lien is created
265 # for the tenant project to prevent the tenant project from being deleted
266 # accidentally. The lien is deleted as part of tenant project removal.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;labels&quot;: { # Labels that are applied to this project.
268 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &quot;serviceAccountConfig&quot;: { # Describes the service account configuration for the tenant project. # Configuration for the IAM service account on the tenant project.
271 &quot;accountId&quot;: &quot;A String&quot;, # ID of the IAM service account to be created in tenant project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 # The email format of the service account is
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 # &quot;&lt;account-id&gt;@&lt;tenant-project-id&gt;.iam.gserviceaccount.com&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 # This account ID must be unique within tenant project and service
275 # producers have to guarantee it. The ID must be 6-30 characters long, and
276 # match the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;tenantProjectRoles&quot;: [ # Roles for the associated service account for the tenant project.
278 &quot;A String&quot;,
279 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;folder&quot;: &quot;A String&quot;, # Folder where project in this tenancy unit must be located
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700282 # This folder must have been previously created with the required
283 # permissions for the caller to create and configure a project in it.
284 # Valid folder resource names have the format `folders/{folder_number}`
285 # (for example, `folders/123456`).
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;tenantProjectPolicy&quot;: { # Describes policy settings that need to be applied to a newly # Describes ownership and policies for the new tenant project. Required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287 # created tenant project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700288 &quot;policyBindings&quot;: [ # Policy bindings to be applied to the tenant project, in addition to the
289 # &#x27;roles/owner&#x27; role granted to the Service Consumer Management service
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 # account.
291 # At least one binding must have the role `roles/owner`. Among the list of
292 # members for `roles/owner`, at least one of them must be either the `user`
293 # or `group` type.
294 { # Translates to IAM Policy bindings (without auditing at this level)
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &quot;members&quot;: [ # Uses the same format as in IAM policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700296 # `member` must include both a prefix and ID. For example, `user:{emailId}`,
297 # `serviceAccount:{emailId}`, `group:{emailId}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;role&quot;: &quot;A String&quot;, # Role. (https://cloud.google.com/iam/docs/understanding-roles)
301 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700302 },
303 ],
304 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;services&quot;: [ # Google Cloud API names of services that are activated on this project
306 # during provisioning. If any of these services can&#x27;t be activated,
307 # the request fails.
308 # For example: &#x27;compute.googleapis.com&#x27;,&#x27;cloudfunctions.googleapis.com&#x27;
309 &quot;A String&quot;,
310 ],
311 &quot;billingConfig&quot;: { # Describes the billing configuration for a new tenant project. # Billing account properties. The billing account must be specified.
312 &quot;billingAccount&quot;: &quot;A String&quot;, # Name of the billing account.
313 # For example `billingAccounts/012345-567890-ABCDEF`.
314 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700315 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 }
317
318 x__xgafv: string, V1 error format.
319 Allowed values
320 1 - v1 error format
321 2 - v2 error format
322
323Returns:
324 An object of the form:
325
326 { # This resource represents a long-running operation that is the result of a
327 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700329 # contains progress information and common metadata such as create time.
330 # Some services might not provide such metadata. Any method that returns a
331 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700335 # method returns no data on success, such as `Delete`, the response is
336 # `google.protobuf.Empty`. If the original method is standard
337 # `Get`/`Create`/`Update`, the response should be the resource. For other
338 # methods, the response should have the type `XxxResponse`, where `Xxx`
339 # is the original method name. For example, if the original method name
340 # is `TakeSnapshot()`, the inferred response type is
341 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700345 # originally returns it. If you use the default HTTP mapping, the
346 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
348 # different programming environments, including REST APIs and RPC APIs. It is
349 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
350 # three pieces of data: error code, error message, and error details.
351 #
352 # You can find out more about this error model and how to work with it in the
353 # [API Design Guide](https://cloud.google.com/apis/design/errors).
354 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
355 # message types for APIs to use.
356 {
357 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
358 },
359 ],
360 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
361 # user-facing error message should be localized and sent in the
362 # google.rpc.Status.details field, or localized by the client.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 },
365 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
366 # If `true`, the operation is completed, and either `error` or `response` is
367 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700368 }</pre>
369</div>
370
371<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 <code class="details" id="attachProject">attachProject(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 <pre>Attach an existing project to the tenancy unit as a new tenant
374resource. The project could either be the tenant project reserved by
Bu Sun Kim65020912020-05-20 12:08:20 -0700375calling `AddTenantProject` under a tenancy unit of a service producer&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700376project of a managed service, or from a separate project.
377The caller is checked against a set of permissions as if calling
378`AddTenantProject` on the same service consumer.
379To trigger the attachment, the targeted tenant project must be in a
380folder. Make sure the ServiceConsumerManagement service account is
381the owner of that project. These two requirements are already met
382if the project is reserved by calling `AddTenantProject`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700383Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384
385Args:
386 name: string, Name of the tenancy unit that the project will be attached to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700387Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700388 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700389 The object takes the form of:
390
391{ # Request to attach an existing project to the tenancy unit as a new tenant
392 # resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;reservedResource&quot;: &quot;A String&quot;, # When attaching a reserved project already in tenancy units, this is the
394 # tag of a tenant resource under the tenancy unit for the managed service&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 # service producer project. The reserved tenant resource must be in an
396 # active state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;tag&quot;: &quot;A String&quot;, # Tag of the tenant resource after attachment.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700398 # Must be less than 128 characters. Required.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;externalResource&quot;: &quot;A String&quot;, # When attaching an external project, this is in the format of
400 # `projects/{project_number}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700401 }
402
403 x__xgafv: string, V1 error format.
404 Allowed values
405 1 - v1 error format
406 2 - v2 error format
407
408Returns:
409 An object of the form:
410
411 { # This resource represents a long-running operation that is the result of a
412 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 # contains progress information and common metadata such as create time.
415 # Some services might not provide such metadata. Any method that returns a
416 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700418 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 # method returns no data on success, such as `Delete`, the response is
421 # `google.protobuf.Empty`. If the original method is standard
422 # `Get`/`Create`/`Update`, the response should be the resource. For other
423 # methods, the response should have the type `XxxResponse`, where `Xxx`
424 # is the original method name. For example, if the original method name
425 # is `TakeSnapshot()`, the inferred response type is
426 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700428 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700429 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700430 # originally returns it. If you use the default HTTP mapping, the
431 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
433 # different programming environments, including REST APIs and RPC APIs. It is
434 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
435 # three pieces of data: error code, error message, and error details.
436 #
437 # You can find out more about this error model and how to work with it in the
438 # [API Design Guide](https://cloud.google.com/apis/design/errors).
439 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
440 # message types for APIs to use.
441 {
442 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
443 },
444 ],
445 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
446 # user-facing error message should be localized and sent in the
447 # google.rpc.Status.details field, or localized by the client.
448 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
449 },
450 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
451 # If `true`, the operation is completed, and either `error` or `response` is
452 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 }</pre>
454</div>
455
456<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700457 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 <pre>Creates a tenancy unit with no tenant resources.
Dan O'Mearadd494642020-05-01 07:42:23 -0700459If tenancy unit already exists, it will be returned,
460however, in this case, returned TenancyUnit does not have tenant_resources
461field set and ListTenancyUnit has to be used to get a complete
462TenancyUnit with all fields populated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463
464Args:
465 parent: string, services/{service}/{collection id}/{resource id}
466{collection id} is the cloud resource collection type representing the
Bu Sun Kim65020912020-05-20 12:08:20 -0700467service consumer, for example &#x27;projects&#x27;, or &#x27;organizations&#x27;.
468{resource id} is the consumer numeric id, such as project number: &#x27;123456&#x27;.
469{service} the name of a managed service, such as &#x27;service.googleapis.com&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470Enables service binding using the new tenancy unit. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 The object takes the form of:
473
474{ # Request to create a tenancy unit for a service consumer of a managed service.
Bu Sun Kim65020912020-05-20 12:08:20 -0700475 &quot;tenancyUnitId&quot;: &quot;A String&quot;, # Optional service producer-provided identifier of the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700476 # Must be no longer than 40 characters and preferably URI friendly.
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 # If it isn&#x27;t provided, a UID for the tenancy unit is automatically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 # generated. The identifier must be unique across a managed service.
479 # If the tenancy unit already exists for the managed service and service
480 # consumer pair, calling `CreateTenancyUnit` returns the existing tenancy
481 # unit if the provided identifier is identical or empty, otherwise the call
482 # fails.
483 }
484
485 x__xgafv: string, V1 error format.
486 Allowed values
487 1 - v1 error format
488 2 - v2 error format
489
490Returns:
491 An object of the form:
492
493 { # Representation of a tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;tenantResources&quot;: [ # Resources constituting the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 # There can be at most 512 tenant resources in a tenancy unit.
496 { # Resource constituting the TenancyUnit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 &quot;status&quot;: &quot;A String&quot;, # Status of tenant resource.
498 &quot;tag&quot;: &quot;A String&quot;, # Unique per single tenancy unit.
499 &quot;resource&quot;: &quot;A String&quot;, # @OutputOnly Identifier of the tenant resource.
500 # For cloud projects, it is in the form &#x27;projects/{number}&#x27;.
501 # For example &#x27;projects/123456&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502 },
503 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;name&quot;: &quot;A String&quot;, # Globally unique identifier of this tenancy unit
505 # &quot;services/{service}/{collection id}/{resource id}/tenancyUnits/{unit}&quot;
506 &quot;createTime&quot;: &quot;A String&quot;, # @OutputOnly The time this tenancy unit was created.
507 &quot;service&quot;: &quot;A String&quot;, # Output only. Google Cloud API name of the managed service owning this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700508 # tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 # For example &#x27;serviceconsumermanagement.googleapis.com&#x27;.
510 &quot;consumer&quot;: &quot;A String&quot;, # @OutputOnly Cloud resource name of the consumer of this service.
511 # For example &#x27;projects/123456&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700512 }</pre>
513</div>
514
515<div class="method">
516 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
517 <pre>Delete a tenancy unit. Before you delete the tenancy unit, there should be
Bu Sun Kim65020912020-05-20 12:08:20 -0700518no tenant resources in it that aren&#x27;t in a DELETED state.
Dan O'Mearadd494642020-05-01 07:42:23 -0700519Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520
521Args:
522 name: string, Name of the tenancy unit to be deleted. (required)
523 x__xgafv: string, V1 error format.
524 Allowed values
525 1 - v1 error format
526 2 - v2 error format
527
528Returns:
529 An object of the form:
530
531 { # This resource represents a long-running operation that is the result of a
532 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534 # contains progress information and common metadata such as create time.
535 # Some services might not provide such metadata. Any method that returns a
536 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 # method returns no data on success, such as `Delete`, the response is
541 # `google.protobuf.Empty`. If the original method is standard
542 # `Get`/`Create`/`Update`, the response should be the resource. For other
543 # methods, the response should have the type `XxxResponse`, where `Xxx`
544 # is the original method name. For example, if the original method name
545 # is `TakeSnapshot()`, the inferred response type is
546 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700548 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 # originally returns it. If you use the default HTTP mapping, the
551 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
553 # different programming environments, including REST APIs and RPC APIs. It is
554 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
555 # three pieces of data: error code, error message, and error details.
556 #
557 # You can find out more about this error model and how to work with it in the
558 # [API Design Guide](https://cloud.google.com/apis/design/errors).
559 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
560 # message types for APIs to use.
561 {
562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
563 },
564 ],
565 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
566 # user-facing error message should be localized and sent in the
567 # google.rpc.Status.details field, or localized by the client.
568 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
569 },
570 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
571 # If `true`, the operation is completed, and either `error` or `response` is
572 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 }</pre>
574</div>
575
576<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700577 <code class="details" id="deleteProject">deleteProject(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578 <pre>Deletes the specified project resource identified by a tenant resource tag.
Bu Sun Kim65020912020-05-20 12:08:20 -0700579The mothod removes a project lien with a &#x27;TenantManager&#x27; origin if that was
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580added. It will then attempt to delete the project. If that operation fails,
581this method also fails.
582After the project has been deleted, the tenant resource state is set to
583DELETED. To permanently remove resource metadata, call the
584`RemoveTenantProject` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700585New resources with the same tag can&#x27;t be added if there are existing
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586resources in a DELETED state.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588
589Args:
590 name: string, Name of the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700591Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700592 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700593 The object takes the form of:
594
595{ # Request message to delete tenant project resource from the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 &quot;tag&quot;: &quot;A String&quot;, # Tag of the resource within the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700597 }
598
599 x__xgafv: string, V1 error format.
600 Allowed values
601 1 - v1 error format
602 2 - v2 error format
603
604Returns:
605 An object of the form:
606
607 { # This resource represents a long-running operation that is the result of a
608 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610 # contains progress information and common metadata such as create time.
611 # Some services might not provide such metadata. Any method that returns a
612 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 # method returns no data on success, such as `Delete`, the response is
617 # `google.protobuf.Empty`. If the original method is standard
618 # `Get`/`Create`/`Update`, the response should be the resource. For other
619 # methods, the response should have the type `XxxResponse`, where `Xxx`
620 # is the original method name. For example, if the original method name
621 # is `TakeSnapshot()`, the inferred response type is
622 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 # originally returns it. If you use the default HTTP mapping, the
627 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
629 # different programming environments, including REST APIs and RPC APIs. It is
630 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
631 # three pieces of data: error code, error message, and error details.
632 #
633 # You can find out more about this error model and how to work with it in the
634 # [API Design Guide](https://cloud.google.com/apis/design/errors).
635 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
636 # message types for APIs to use.
637 {
638 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
639 },
640 ],
641 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
642 # user-facing error message should be localized and sent in the
643 # google.rpc.Status.details field, or localized by the client.
644 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
645 },
646 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
647 # If `true`, the operation is completed, and either `error` or `response` is
648 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700649 }</pre>
650</div>
651
652<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700653 <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700654 <pre>Find the tenancy unit for a managed service and service consumer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700655This method shouldn&#x27;t be used in a service producer&#x27;s runtime path, for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656example to find the tenant project number when creating VMs. Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700657producers must persist the tenant project&#x27;s information after the project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700658is created.
659
660Args:
661 parent: string, Managed service and service consumer. Required.
662services/{service}/{collection id}/{resource id}
663{collection id} is the cloud resource collection type representing the
Bu Sun Kim65020912020-05-20 12:08:20 -0700664service consumer, for example &#x27;projects&#x27;, or &#x27;organizations&#x27;.
665{resource id} is the consumer numeric id, such as project number: &#x27;123456&#x27;.
666{service} the name of a service, such as &#x27;service.googleapis.com&#x27;. (required)
667 filter: string, Filter expression over tenancy resources field. Optional.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 pageToken: string, The continuation token, which is used to page through large result sets.
669To get the next page of results, set this parameter to the value of
670`nextPageToken` from the previous response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 pageSize: integer, The maximum number of results returned by this request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700672 x__xgafv: string, V1 error format.
673 Allowed values
674 1 - v1 error format
675 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676
677Returns:
678 An object of the form:
679
680 { # Response for the list request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 &quot;tenancyUnits&quot;: [ # Tenancy units matching the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 { # Representation of a tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;tenantResources&quot;: [ # Resources constituting the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700684 # There can be at most 512 tenant resources in a tenancy unit.
685 { # Resource constituting the TenancyUnit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700686 &quot;status&quot;: &quot;A String&quot;, # Status of tenant resource.
687 &quot;tag&quot;: &quot;A String&quot;, # Unique per single tenancy unit.
688 &quot;resource&quot;: &quot;A String&quot;, # @OutputOnly Identifier of the tenant resource.
689 # For cloud projects, it is in the form &#x27;projects/{number}&#x27;.
690 # For example &#x27;projects/123456&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700691 },
692 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &quot;name&quot;: &quot;A String&quot;, # Globally unique identifier of this tenancy unit
694 # &quot;services/{service}/{collection id}/{resource id}/tenancyUnits/{unit}&quot;
695 &quot;createTime&quot;: &quot;A String&quot;, # @OutputOnly The time this tenancy unit was created.
696 &quot;service&quot;: &quot;A String&quot;, # Output only. Google Cloud API name of the managed service owning this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697 # tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700698 # For example &#x27;serviceconsumermanagement.googleapis.com&#x27;.
699 &quot;consumer&quot;: &quot;A String&quot;, # @OutputOnly Cloud resource name of the consumer of this service.
700 # For example &#x27;projects/123456&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700701 },
702 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token for large results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 }</pre>
705</div>
706
707<div class="method">
708 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
709 <pre>Retrieves the next page of results.
710
711Args:
712 previous_request: The request for the previous page. (required)
713 previous_response: The response from the request for the previous page. (required)
714
715Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700717 page. Returns None if there are no more items in the collection.
718 </pre>
719</div>
720
721<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700722 <code class="details" id="removeProject">removeProject(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700723 <pre>Removes the specified project resource identified by a tenant resource tag.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724The method removes the project lien with &#x27;TenantManager&#x27; origin if that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700725was added. It then attempts to delete the project. If that operation
726fails, this method also fails.
727Calls to remove already removed or non-existent tenant project succeed.
728After the project has been deleted, or if was already in a DELETED state,
729resource metadata is permanently removed from the tenancy unit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700730Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700731
732Args:
733 name: string, Name of the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700734Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700735 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 The object takes the form of:
737
738{ # Request message to remove a tenant project resource from the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;tag&quot;: &quot;A String&quot;, # Tag of the resource within the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 }
741
742 x__xgafv: string, V1 error format.
743 Allowed values
744 1 - v1 error format
745 2 - v2 error format
746
747Returns:
748 An object of the form:
749
750 { # This resource represents a long-running operation that is the result of a
751 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700753 # contains progress information and common metadata such as create time.
754 # Some services might not provide such metadata. Any method that returns a
755 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700757 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 # method returns no data on success, such as `Delete`, the response is
760 # `google.protobuf.Empty`. If the original method is standard
761 # `Get`/`Create`/`Update`, the response should be the resource. For other
762 # methods, the response should have the type `XxxResponse`, where `Xxx`
763 # is the original method name. For example, if the original method name
764 # is `TakeSnapshot()`, the inferred response type is
765 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700769 # originally returns it. If you use the default HTTP mapping, the
770 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
772 # different programming environments, including REST APIs and RPC APIs. It is
773 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
774 # three pieces of data: error code, error message, and error details.
775 #
776 # You can find out more about this error model and how to work with it in the
777 # [API Design Guide](https://cloud.google.com/apis/design/errors).
778 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
779 # message types for APIs to use.
780 {
781 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
782 },
783 ],
784 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
785 # user-facing error message should be localized and sent in the
786 # google.rpc.Status.details field, or localized by the client.
787 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
788 },
789 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
790 # If `true`, the operation is completed, and either `error` or `response` is
791 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700792 }</pre>
793</div>
794
795<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 <code class="details" id="undeleteProject">undeleteProject(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700797 <pre>Attempts to undelete a previously deleted tenant project. The project must
798be in a DELETED state.
799There are no guarantees that an undeleted project will be in
800a fully restored and functional state. Call the `ApplyTenantProjectConfig`
801method to update its configuration and then validate all managed service
802resources.
Dan O'Mearadd494642020-05-01 07:42:23 -0700803Operation&lt;response: Empty&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700804
805Args:
806 name: string, Name of the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700807Such as &#x27;services/service.googleapis.com/projects/12345/tenancyUnits/abcd&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700808 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 The object takes the form of:
810
811{ # Request message to undelete tenant project resource previously deleted from
812 # the tenancy unit.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &quot;tag&quot;: &quot;A String&quot;, # Tag of the resource within the tenancy unit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 }
815
816 x__xgafv: string, V1 error format.
817 Allowed values
818 1 - v1 error format
819 2 - v2 error format
820
821Returns:
822 An object of the form:
823
824 { # This resource represents a long-running operation that is the result of a
825 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 # contains progress information and common metadata such as create time.
828 # Some services might not provide such metadata. Any method that returns a
829 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 # method returns no data on success, such as `Delete`, the response is
834 # `google.protobuf.Empty`. If the original method is standard
835 # `Get`/`Create`/`Update`, the response should be the resource. For other
836 # methods, the response should have the type `XxxResponse`, where `Xxx`
837 # is the original method name. For example, if the original method name
838 # is `TakeSnapshot()`, the inferred response type is
839 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700841 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700842 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700843 # originally returns it. If you use the default HTTP mapping, the
844 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
846 # different programming environments, including REST APIs and RPC APIs. It is
847 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
848 # three pieces of data: error code, error message, and error details.
849 #
850 # You can find out more about this error model and how to work with it in the
851 # [API Design Guide](https://cloud.google.com/apis/design/errors).
852 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
853 # message types for APIs to use.
854 {
855 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
856 },
857 ],
858 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
859 # user-facing error message should be localized and sent in the
860 # google.rpc.Status.details field, or localized by the client.
861 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
862 },
863 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
864 # If `true`, the operation is completed, and either `error` or `response` is
865 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866 }</pre>
867</div>
868
869</body></html>