Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.apiHubInstances.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.apiHubInstances.html">apiHubInstances</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, apiHubInstanceId=None, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Provisions instance resources for the API Hub.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single API Hub instance.</p>
89 <p class="toc_element">
90 <code><a href="#lookup">lookup(parent, x__xgafv=None)</a></code></p>
91 <p class="firstline">Looks up an Api Hub instance in a given Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: * disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to specify the fields being updated.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99 </div>
100
101 <div class="method">
102 <code class="details" id="create">create(parent, apiHubInstanceId=None, body=None, x__xgafv=None)</code>
103 <pre>Provisions instance resources for the API Hub.
104
105 Args:
106 parent: string, Required. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}` (required)
107 body: object, The request body.
108 The object takes the form of:
109
110 { # An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
111 &quot;config&quot;: { # Available configurations to provision an ApiHub Instance. # Required. Config of the ApiHub instance.
112 &quot;agentRegistrySyncConfig&quot;: { # The configuration for Agent Registry sync. # Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
113 &quot;disabled&quot;: True or False, # Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value is false.
114 },
115 &quot;cmekKeyName&quot;: &quot;A String&quot;, # Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
116 &quot;disableSearch&quot;: True or False, # Optional. If true, the search will be disabled for the instance. The default value is false.
117 &quot;encryptionType&quot;: &quot;A String&quot;, # Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
118 &quot;vertexLocation&quot;: &quot;A String&quot;, # Optional. The name of the Vertex AI location where the data store is stored.
119 },
120 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
121 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the ApiHub instance.
122 &quot;labels&quot;: { # Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
123 &quot;a_key&quot;: &quot;A String&quot;,
124 },
125 &quot;name&quot;: &quot;A String&quot;, # Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
126 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the ApiHub instance.
127 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is `FAILED`.
128 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update timestamp.
129 }
130
131 apiHubInstanceId: string, Optional. Identifier to assign to the Api Hub instance. Must be unique within scope of the parent resource. If the field is not provided, system generated id will be used. This value should be 4-40 characters, and valid characters are `/a-z[0-9]-_/`.
132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
136
137 Returns:
138 An object of the form:
139
140 { # This resource represents a long-running operation that is the result of a network API call.
141 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
142 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
144 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
145 {
146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
147 },
148 ],
149 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
150 },
151 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
155 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
157 },
158 }</pre>
159 </div>
160
161 <div class="method">
162 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
163 <pre>Deletes the API hub instance. Deleting the API hub instance will also result in the removal of all associated runtime project attachments and the host project registration.
164
165 Args:
166 name: string, Required. The name of the Api Hub instance to delete. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. (required)
167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
171
172 Returns:
173 An object of the form:
174
175 { # This resource represents a long-running operation that is the result of a network API call.
176 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
177 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
178 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
179 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
180 {
181 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
182 },
183 ],
184 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
185 },
186 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
190 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193 }</pre>
194 </div>
195
196 <div class="method">
197 <code class="details" id="get">get(name, x__xgafv=None)</code>
198 <pre>Gets details of a single API Hub instance.
199
200 Args:
201 name: string, Required. The name of the Api Hub instance to retrieve. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. (required)
202 x__xgafv: string, V1 error format.
203 Allowed values
204 1 - v1 error format
205 2 - v2 error format
206
207 Returns:
208 An object of the form:
209
210 { # An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
211 &quot;config&quot;: { # Available configurations to provision an ApiHub Instance. # Required. Config of the ApiHub instance.
212 &quot;agentRegistrySyncConfig&quot;: { # The configuration for Agent Registry sync. # Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
213 &quot;disabled&quot;: True or False, # Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value is false.
214 },
215 &quot;cmekKeyName&quot;: &quot;A String&quot;, # Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
216 &quot;disableSearch&quot;: True or False, # Optional. If true, the search will be disabled for the instance. The default value is false.
217 &quot;encryptionType&quot;: &quot;A String&quot;, # Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
218 &quot;vertexLocation&quot;: &quot;A String&quot;, # Optional. The name of the Vertex AI location where the data store is stored.
219 },
220 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
221 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the ApiHub instance.
222 &quot;labels&quot;: { # Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
223 &quot;a_key&quot;: &quot;A String&quot;,
224 },
225 &quot;name&quot;: &quot;A String&quot;, # Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
226 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the ApiHub instance.
227 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is `FAILED`.
228 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update timestamp.
229 }</pre>
230 </div>
231
232 <div class="method">
233 <code class="details" id="lookup">lookup(parent, x__xgafv=None)</code>
234 <pre>Looks up an Api Hub instance in a given Google Cloud project. There will always be only one Api Hub instance for a Google Cloud project across all locations.
235
236 Args:
237 parent: string, Required. There will always be only one Api Hub instance for a Google Cloud project across all locations. The parent resource for the Api Hub instance resource. Format: `projects/{project}/locations/{location}` (required)
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # The LookupApiHubInstance method&#x27;s response.`
247 &quot;apiHubInstance&quot;: { # An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project. # API Hub instance for a project if it exists, empty otherwise.
248 &quot;config&quot;: { # Available configurations to provision an ApiHub Instance. # Required. Config of the ApiHub instance.
249 &quot;agentRegistrySyncConfig&quot;: { # The configuration for Agent Registry sync. # Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
250 &quot;disabled&quot;: True or False, # Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value is false.
251 },
252 &quot;cmekKeyName&quot;: &quot;A String&quot;, # Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
253 &quot;disableSearch&quot;: True or False, # Optional. If true, the search will be disabled for the instance. The default value is false.
254 &quot;encryptionType&quot;: &quot;A String&quot;, # Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
255 &quot;vertexLocation&quot;: &quot;A String&quot;, # Optional. The name of the Vertex AI location where the data store is stored.
256 },
257 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
258 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the ApiHub instance.
259 &quot;labels&quot;: { # Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
260 &quot;a_key&quot;: &quot;A String&quot;,
261 },
262 &quot;name&quot;: &quot;A String&quot;, # Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
263 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the ApiHub instance.
264 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is `FAILED`.
265 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update timestamp.
266 },
267 }</pre>
268 </div>
269
270 <div class="method">
271 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
272 <pre>Update an Api Hub instance. The following fields in the ApiHubInstance can be updated: * disable_search * vertex_location * agent_registry_sync_config The update_mask should be used to specify the fields being updated.
273
274 Args:
275 name: string, Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`. (required)
276 body: object, The request body.
277 The object takes the form of:
278
279 { # An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
280 &quot;config&quot;: { # Available configurations to provision an ApiHub Instance. # Required. Config of the ApiHub instance.
281 &quot;agentRegistrySyncConfig&quot;: { # The configuration for Agent Registry sync. # Optional. The configuration for syncing MCP data in the API Hub instance to the Agent Registry.
282 &quot;disabled&quot;: True or False, # Optional. If true, the MCP data sync to the Agent Registry will be disabled. The default value is false.
283 },
284 &quot;cmekKeyName&quot;: &quot;A String&quot;, # Optional. The Customer Managed Encryption Key (CMEK) used for data encryption. The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the instance location. If the CMEK is not provided, a GMEK will be created for the instance.
285 &quot;disableSearch&quot;: True or False, # Optional. If true, the search will be disabled for the instance. The default value is false.
286 &quot;encryptionType&quot;: &quot;A String&quot;, # Optional. Encryption type for the region. If the encryption type is CMEK, the cmek_key_name must be provided. If no encryption type is provided, GMEK will be used.
287 &quot;vertexLocation&quot;: &quot;A String&quot;, # Optional. The name of the Vertex AI location where the data store is stored.
288 },
289 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp.
290 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the ApiHub instance.
291 &quot;labels&quot;: { # Optional. Instance labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
292 &quot;a_key&quot;: &quot;A String&quot;,
293 },
294 &quot;name&quot;: &quot;A String&quot;, # Identifier. Format: `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
295 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the ApiHub instance.
296 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Extra information about ApiHub instance state. Currently the message would be populated when state is `FAILED`.
297 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Last update timestamp.
298 }
299
300 updateMask: string, Optional. The list of fields to update.
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306 Returns:
307 An object of the form:
308
309 { # This resource represents a long-running operation that is the result of a network API call.
310 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
311 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
312 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
313 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
314 {
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
316 },
317 ],
318 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
319 },
320 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
321 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
322 },
323 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
324 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
326 },
327 }</pre>
328 </div>
329
330 </body></html>