blob: d89ded7403c25d5b9958de961be2fd82d9be6722 [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></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="serviceconsumermanagement_v1.services.tenancyUnits.html">tenancyUnits()</a></code>
79</p>
80<p class="firstline">Returns the tenancyUnits Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080086 <code><a href="#search">search(parent, pageSize=None, pageToken=None, query=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Search tenancy units for a managed service.</p>
88<p class="toc_element">
89 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
90<p class="firstline">Retrieves the next page of results.</p>
91<h3>Method Details</h3>
92<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code class="details" id="close">close()</code>
94 <pre>Close httplib2 connections.</pre>
95</div>
96
97<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080098 <code class="details" id="search">search(parent, pageSize=None, pageToken=None, query=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099 <pre>Search tenancy units for a managed service.
100
101Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 parent: string, Required. Service for which search is performed. services/{service} {service} the name of a service, for example &#x27;service.googleapis.com&#x27;. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800103 pageSize: integer, Optional. The maximum number of results returned by this request. Currently, the default maximum is set to 1000. If `page_size` isn&#x27;t provided or the size provided is a number larger than 1000, it&#x27;s automatically set to 1000.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800104 pageToken: string, Optional. The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response.
105 query: string, Optional. Set a query `{expression}` for querying tenancy units. Your `{expression}` must be in the format: `field_name=literal_string`. The `field_name` is the name of the field you want to compare. Supported fields are `tenant_resources.tag` and `tenant_resources.resource`. For example, to search tenancy units that contain at least one tenant resource with a given tag &#x27;xyz&#x27;, use the query `tenant_resources.tag=xyz`. To search tenancy units that contain at least one tenant resource with a given resource name &#x27;projects/123456&#x27;, use the query `tenant_resources.resource=projects/123456`. Multiple expressions can be joined with `AND`s. Tenancy units must match all expressions to be included in the result set. For example, `tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456`
Bu Sun Kim65020912020-05-20 12:08:20 -0700106 x__xgafv: string, V1 error format.
107 Allowed values
108 1 - v1 error format
109 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110
111Returns:
112 An object of the form:
113
114 { # Response for the search query.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800115 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token for large results.
116 &quot;tenancyUnits&quot;: [ # Tenancy Units matching the request.
117 { # Representation of a tenancy unit.
118 &quot;consumer&quot;: &quot;A String&quot;, # Output only. @OutputOnly Cloud resource name of the consumer of this service. For example &#x27;projects/123456&#x27;.
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. @OutputOnly The time this tenancy unit was created.
120 &quot;name&quot;: &quot;A String&quot;, # Globally unique identifier of this tenancy unit &quot;services/{service}/{collection id}/{resource id}/tenancyUnits/{unit}&quot;
121 &quot;service&quot;: &quot;A String&quot;, # Output only. Google Cloud API name of the managed service owning this tenancy unit. For example &#x27;serviceconsumermanagement.googleapis.com&#x27;.
122 &quot;tenantResources&quot;: [ # Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy unit.
123 { # Resource constituting the TenancyUnit.
124 &quot;resource&quot;: &quot;A String&quot;, # Output only. @OutputOnly Identifier of the tenant resource. For cloud projects, it is in the form &#x27;projects/{number}&#x27;. For example &#x27;projects/123456&#x27;.
125 &quot;status&quot;: &quot;A String&quot;, # Status of tenant resource.
126 &quot;tag&quot;: &quot;A String&quot;, # Unique per single tenancy unit.
127 },
128 ],
129 },
130 ],
131}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132</div>
133
134<div class="method">
135 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
136 <pre>Retrieves the next page of results.
137
138Args:
139 previous_request: The request for the previous page. (required)
140 previous_response: The response from the request for the previous page. (required)
141
142Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 page. Returns None if there are no more items in the collection.
145 </pre>
146</div>
147
148</body></html>