Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.hostProjectRegistrations.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="apihub_v1.html">API hub API</a> . <a href="apihub_v1.projects.html">projects</a> . <a href="apihub_v1.projects.locations.html">locations</a> . <a href="apihub_v1.projects.locations.hostProjectRegistrations.html">hostProjectRegistrations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, hostProjectRegistrationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Get a host project registration.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Lists host project registrations.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <h3>Method Details</h3>
93 <div class="method">
94 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96 </div>
97
98 <div class="method">
99 <code class="details" id="create">create(parent, body=None, hostProjectRegistrationId=None, x__xgafv=None)</code>
100 <pre>Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.
101
102 Args:
103 parent: string, Required. The parent resource for the host project. Format: `projects/{project}/locations/{location}` (required)
104 body: object, The request body.
105 The object takes the form of:
106
107 { # Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
108 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the host project registration was created.
109 &quot;gcpProject&quot;: &quot;A String&quot;, # Required. Immutable. Google cloud project name in the format: &quot;projects/abc&quot; or &quot;projects/123&quot;. As input, project name with either project id or number are accepted. As output, this field will contain project number.
110 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the host project registration. Format: &quot;projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}&quot;.
111 }
112
113 hostProjectRegistrationId: string, Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration&#x27;s resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118
119 Returns:
120 An object of the form:
121
122 { # Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
123 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the host project registration was created.
124 &quot;gcpProject&quot;: &quot;A String&quot;, # Required. Immutable. Google cloud project name in the format: &quot;projects/abc&quot; or &quot;projects/123&quot;. As input, project name with either project id or number are accepted. As output, this field will contain project number.
125 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the host project registration. Format: &quot;projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}&quot;.
126 }</pre>
127 </div>
128
129 <div class="method">
130 <code class="details" id="get">get(name, x__xgafv=None)</code>
131 <pre>Get a host project registration.
132
133 Args:
134 name: string, Required. Host project registration resource name. projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} (required)
135 x__xgafv: string, V1 error format.
136 Allowed values
137 1 - v1 error format
138 2 - v2 error format
139
140 Returns:
141 An object of the form:
142
143 { # Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
144 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the host project registration was created.
145 &quot;gcpProject&quot;: &quot;A String&quot;, # Required. Immutable. Google cloud project name in the format: &quot;projects/abc&quot; or &quot;projects/123&quot;. As input, project name with either project id or number are accepted. As output, this field will contain project number.
146 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the host project registration. Format: &quot;projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}&quot;.
147 }</pre>
148 </div>
149
150 <div class="method">
151 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
152 <pre>Lists host project registrations.
153
154 Args:
155 parent: string, Required. The parent, which owns this collection of host projects. Format: `projects/*/locations/*` (required)
156 filter: string, Optional. An expression that filters the list of HostProjectRegistrations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. All standard operators as documented at https://google.aip.dev/160 are supported. The following fields in the `HostProjectRegistration` are eligible for filtering: * `name` - The name of the HostProjectRegistration. * `create_time` - The time at which the HostProjectRegistration was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. * `gcp_project` - The Google cloud project associated with the HostProjectRegistration.
157 orderBy: string, Optional. Hint for how to order the results.
158 pageSize: integer, Optional. The maximum number of host project registrations to return. The service may return fewer than this value. If unspecified, at most 50 host project registrations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
159 pageToken: string, Optional. A page token, received from a previous `ListHostProjectRegistrations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListHostProjectRegistrations` must match the call that provided the page token.
160 x__xgafv: string, V1 error format.
161 Allowed values
162 1 - v1 error format
163 2 - v2 error format
164
165 Returns:
166 An object of the form:
167
168 { # The ListHostProjectRegistrations method&#x27;s response.
169 &quot;hostProjectRegistrations&quot;: [ # The list of host project registrations.
170 { # Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
171 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the host project registration was created.
172 &quot;gcpProject&quot;: &quot;A String&quot;, # Required. Immutable. Google cloud project name in the format: &quot;projects/abc&quot; or &quot;projects/123&quot;. As input, project name with either project id or number are accepted. As output, this field will contain project number.
173 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the host project registration. Format: &quot;projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}&quot;.
174 },
175 ],
176 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
177 }</pre>
178 </div>
179
180 <div class="method">
181 <code class="details" id="list_next">list_next()</code>
182 <pre>Retrieves the next page of results.
183
184 Args:
185 previous_request: The request for the previous page. (required)
186 previous_response: The response from the request for the previous page. (required)
187
188 Returns:
189 A request object that you can call &#x27;execute()&#x27; on to request the next
190 page. Returns None if there are no more items in the collection.
191 </pre>
192 </div>
193
194 </body></html>