@googleapis/agentregistry 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +880 -13
- package/build/v1.js +290 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +938 -46
- package/build/v1alpha.js +290 -0
- package/build/v1alpha.js.map +1 -1
- package/index.ts +0 -1
- package/package.json +2 -2
- package/tsconfig.build.json +10 -0
- package/v1.ts +1673 -146
- package/v1alpha.ts +1698 -146
package/build/v1.d.ts
CHANGED
|
@@ -167,10 +167,51 @@ export declare namespace agentregistry_v1 {
|
|
|
167
167
|
[key: string]: any;
|
|
168
168
|
} | null;
|
|
169
169
|
/**
|
|
170
|
-
* Required. The type of the agent spec content.
|
|
170
|
+
* Required. Immutable. The type of the agent spec content.
|
|
171
171
|
*/
|
|
172
172
|
type?: string | null;
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Represents an AI Application.
|
|
176
|
+
*/
|
|
177
|
+
export interface Schema$AiApplication {
|
|
178
|
+
/**
|
|
179
|
+
* Output only. Properties of an underlying cloud resource that can comprise an AI Application.
|
|
180
|
+
*/
|
|
181
|
+
applicationProperties?: Schema$ApplicationProperties;
|
|
182
|
+
/**
|
|
183
|
+
* Optional. Consumer provided attributes.
|
|
184
|
+
*/
|
|
185
|
+
attributes?: Schema$Attributes;
|
|
186
|
+
/**
|
|
187
|
+
* Output only. Creation time.
|
|
188
|
+
*/
|
|
189
|
+
createTime?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* Optional. User-defined description of the AI Application.
|
|
192
|
+
*/
|
|
193
|
+
description?: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* Optional. User-defined name for the AI Application.
|
|
196
|
+
*/
|
|
197
|
+
displayName?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* Identifier. Resource name of the AI Application. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
200
|
+
*/
|
|
201
|
+
name?: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* Output only. The current state of the AI Application.
|
|
204
|
+
*/
|
|
205
|
+
state?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* Output only. Universally unique identifier (UUID4) for the AI Application.
|
|
208
|
+
*/
|
|
209
|
+
uid?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Output only. Last update time.
|
|
212
|
+
*/
|
|
213
|
+
updateTime?: string | null;
|
|
214
|
+
}
|
|
174
215
|
/**
|
|
175
216
|
* Annotations describing the characteristics and behavior of a tool or operation.
|
|
176
217
|
*/
|
|
@@ -196,6 +237,42 @@ export declare namespace agentregistry_v1 {
|
|
|
196
237
|
*/
|
|
197
238
|
title?: string | null;
|
|
198
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* Additional system properties of an Application.
|
|
242
|
+
*/
|
|
243
|
+
export interface Schema$ApplicationProperties {
|
|
244
|
+
/**
|
|
245
|
+
* Output only. Additional metadata specific to the App Hub application. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType\}`
|
|
246
|
+
*/
|
|
247
|
+
extendedMetadata?: {
|
|
248
|
+
[key: string]: Schema$ExtendedMetadata;
|
|
249
|
+
} | null;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Consumer provided attributes.
|
|
253
|
+
*/
|
|
254
|
+
export interface Schema$Attributes {
|
|
255
|
+
/**
|
|
256
|
+
* Optional. Business team that ensures user needs are met and value is delivered
|
|
257
|
+
*/
|
|
258
|
+
businessOwners?: Schema$ContactInfo[];
|
|
259
|
+
/**
|
|
260
|
+
* Optional. User-defined criticality information.
|
|
261
|
+
*/
|
|
262
|
+
criticality?: Schema$Criticality;
|
|
263
|
+
/**
|
|
264
|
+
* Optional. Developer team that owns development and coding.
|
|
265
|
+
*/
|
|
266
|
+
developerOwners?: Schema$ContactInfo[];
|
|
267
|
+
/**
|
|
268
|
+
* Optional. User-defined environment information.
|
|
269
|
+
*/
|
|
270
|
+
environment?: Schema$Environment;
|
|
271
|
+
/**
|
|
272
|
+
* Optional. Operator team that ensures runtime and operations.
|
|
273
|
+
*/
|
|
274
|
+
operatorOwners?: Schema$ContactInfo[];
|
|
275
|
+
}
|
|
199
276
|
/**
|
|
200
277
|
* The AuthProvider of the Binding.
|
|
201
278
|
*/
|
|
@@ -238,7 +315,7 @@ export declare namespace agentregistry_v1 {
|
|
|
238
315
|
*/
|
|
239
316
|
name?: string | null;
|
|
240
317
|
/**
|
|
241
|
-
*
|
|
318
|
+
* Optional. The source Agent of the Binding.
|
|
242
319
|
*/
|
|
243
320
|
source?: Schema$Source;
|
|
244
321
|
/**
|
|
@@ -270,6 +347,28 @@ export declare namespace agentregistry_v1 {
|
|
|
270
347
|
*/
|
|
271
348
|
type?: string | null;
|
|
272
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* Contact information of stakeholders.
|
|
352
|
+
*/
|
|
353
|
+
export interface Schema$ContactInfo {
|
|
354
|
+
/**
|
|
355
|
+
* Optional. Contact's name. Can have a maximum length of 63 characters.
|
|
356
|
+
*/
|
|
357
|
+
displayName?: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* Required. Email address of the contacts.
|
|
360
|
+
*/
|
|
361
|
+
email?: string | null;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Criticality of the Application, Service, or Workload
|
|
365
|
+
*/
|
|
366
|
+
export interface Schema$Criticality {
|
|
367
|
+
/**
|
|
368
|
+
* Required. Criticality Type.
|
|
369
|
+
*/
|
|
370
|
+
type?: string | null;
|
|
371
|
+
}
|
|
273
372
|
/**
|
|
274
373
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
275
374
|
*/
|
|
@@ -327,7 +426,16 @@ export declare namespace agentregistry_v1 {
|
|
|
327
426
|
[key: string]: any;
|
|
328
427
|
} | null;
|
|
329
428
|
/**
|
|
330
|
-
* Required. The type of the endpoint spec content.
|
|
429
|
+
* Required. Immutable. The type of the endpoint spec content.
|
|
430
|
+
*/
|
|
431
|
+
type?: string | null;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Environment of the Application, Service, or Workload
|
|
435
|
+
*/
|
|
436
|
+
export interface Schema$Environment {
|
|
437
|
+
/**
|
|
438
|
+
* Required. Environment Type.
|
|
331
439
|
*/
|
|
332
440
|
type?: string | null;
|
|
333
441
|
}
|
|
@@ -352,6 +460,17 @@ export declare namespace agentregistry_v1 {
|
|
|
352
460
|
*/
|
|
353
461
|
title?: string | null;
|
|
354
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* Additional metadata for a Service or Workload.
|
|
465
|
+
*/
|
|
466
|
+
export interface Schema$ExtendedMetadata {
|
|
467
|
+
/**
|
|
468
|
+
* Output only. The metadata contents.
|
|
469
|
+
*/
|
|
470
|
+
metadataStruct?: {
|
|
471
|
+
[key: string]: any;
|
|
472
|
+
} | null;
|
|
473
|
+
}
|
|
355
474
|
/**
|
|
356
475
|
* Message for response to fetching available Bindings.
|
|
357
476
|
*/
|
|
@@ -486,6 +605,62 @@ export declare namespace agentregistry_v1 {
|
|
|
486
605
|
*/
|
|
487
606
|
nextPageToken?: string | null;
|
|
488
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* Message for response to listing Agents under an AI Application.
|
|
610
|
+
*/
|
|
611
|
+
export interface Schema$ListAiApplicationAgentsResponse {
|
|
612
|
+
/**
|
|
613
|
+
* The list of Agents.
|
|
614
|
+
*/
|
|
615
|
+
agents?: Schema$Agent[];
|
|
616
|
+
/**
|
|
617
|
+
* A token identifying a page of results the server should return.
|
|
618
|
+
*/
|
|
619
|
+
nextPageToken?: string | null;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Message for response to listing Endpoints under an AI Application.
|
|
623
|
+
*/
|
|
624
|
+
export interface Schema$ListAiApplicationEndpointsResponse {
|
|
625
|
+
/**
|
|
626
|
+
* The list of Endpoints.
|
|
627
|
+
*/
|
|
628
|
+
endpoints?: Schema$Endpoint[];
|
|
629
|
+
/**
|
|
630
|
+
* A token identifying a page of results the server should return.
|
|
631
|
+
*/
|
|
632
|
+
nextPageToken?: string | null;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Message for response to listing McpServers under an AI Application.
|
|
636
|
+
*/
|
|
637
|
+
export interface Schema$ListAiApplicationMcpServersResponse {
|
|
638
|
+
/**
|
|
639
|
+
* The list of McpServers.
|
|
640
|
+
*/
|
|
641
|
+
mcpServers?: Schema$McpServer[];
|
|
642
|
+
/**
|
|
643
|
+
* A token identifying a page of results the server should return.
|
|
644
|
+
*/
|
|
645
|
+
nextPageToken?: string | null;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Message for response to listing AiApplications.
|
|
649
|
+
*/
|
|
650
|
+
export interface Schema$ListAiApplicationsResponse {
|
|
651
|
+
/**
|
|
652
|
+
* The list of AiApplications.
|
|
653
|
+
*/
|
|
654
|
+
aiApplications?: Schema$AiApplication[];
|
|
655
|
+
/**
|
|
656
|
+
* A token identifying a page of results the server should return.
|
|
657
|
+
*/
|
|
658
|
+
nextPageToken?: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* Unordered list. Locations that could not be reached.
|
|
661
|
+
*/
|
|
662
|
+
unreachable?: string[] | null;
|
|
663
|
+
}
|
|
489
664
|
/**
|
|
490
665
|
* Message for response to listing Bindings
|
|
491
666
|
*/
|
|
@@ -653,7 +828,7 @@ export declare namespace agentregistry_v1 {
|
|
|
653
828
|
[key: string]: any;
|
|
654
829
|
} | null;
|
|
655
830
|
/**
|
|
656
|
-
* Required. The type of the MCP Server spec content.
|
|
831
|
+
* Required. Immutable. The type of the MCP Server spec content.
|
|
657
832
|
*/
|
|
658
833
|
type?: string | null;
|
|
659
834
|
}
|
|
@@ -749,7 +924,7 @@ export declare namespace agentregistry_v1 {
|
|
|
749
924
|
*/
|
|
750
925
|
pageToken?: string | null;
|
|
751
926
|
/**
|
|
752
|
-
* Optional. Search criteria used to select the Agents to return. If no search criteria is specified then all accessible Agents will be returned. Search expressions can be used to restrict results based upon searchable fields, where the operators can be used along with the suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | |--------------------|-----|-----|-----|----------------| | agentId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | skills | No | Yes | No | Included | | skills.id | No | Yes | No | Included | | skills.name | No | Yes | No | Included | | skills.description | No | Yes | No | Included | | skills.tags | No | Yes | No | Included | | skills.examples | No | Yes | No | Included | Examples: * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` to find the agent with the specified agent ID. * `name:important` to find agents whose name contains `important` as a word. * `displayName:works*` to find agents whose display name contains words that start with `works`. * `skills.tags:test` to find agents whose skills tags contain `test`. * `planner OR booking` to find agents whose metadata contains the words `planner` or `booking`.
|
|
927
|
+
* Optional. Search criteria used to select the Agents to return. If no search criteria is specified then all accessible Agents will be returned. Search expressions can be used to restrict results based upon searchable fields, where the operators can be used along with the suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | |--------------------|-----|-----|-----|----------------| | agentId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | skills | No | Yes | No | Included | | skills.id | No | Yes | No | Included | | skills.name | No | Yes | No | Included | | skills.description | No | Yes | No | Included | | skills.tags | No | Yes | No | Included | | skills.examples | No | Yes | No | Included | Examples: * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` to find the agent with the specified agent ID. * `name:important` to find agents whose name contains `important` as a word. * `displayName:works*` to find agents whose display name contains words that start with `works`. * `skills.tags:test` to find agents whose skills tags contain `test`. * `planner OR booking` to find agents whose metadata contains the words `planner` or `booking`.
|
|
753
928
|
*/
|
|
754
929
|
searchString?: string | null;
|
|
755
930
|
}
|
|
@@ -1353,7 +1528,83 @@ export declare namespace agentregistry_v1 {
|
|
|
1353
1528
|
}
|
|
1354
1529
|
export class Resource$Projects$Locations$Aiapplications {
|
|
1355
1530
|
context: APIRequestContext;
|
|
1531
|
+
agents: Resource$Projects$Locations$Aiapplications$Agents;
|
|
1532
|
+
endpoints: Resource$Projects$Locations$Aiapplications$Endpoints;
|
|
1533
|
+
mcpServers: Resource$Projects$Locations$Aiapplications$Mcpservers;
|
|
1356
1534
|
constructor(context: APIRequestContext);
|
|
1535
|
+
/**
|
|
1536
|
+
* Gets details of a single AI Application.
|
|
1537
|
+
* @example
|
|
1538
|
+
* ```js
|
|
1539
|
+
* // Before running the sample:
|
|
1540
|
+
* // - Enable the API at:
|
|
1541
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
1542
|
+
* // - Login into gcloud by running:
|
|
1543
|
+
* // ```sh
|
|
1544
|
+
* // $ gcloud auth application-default login
|
|
1545
|
+
* // ```
|
|
1546
|
+
* // - Install the npm module by running:
|
|
1547
|
+
* // ```sh
|
|
1548
|
+
* // $ npm install googleapis
|
|
1549
|
+
* // ```
|
|
1550
|
+
*
|
|
1551
|
+
* const {google} = require('googleapis');
|
|
1552
|
+
* const agentregistry = google.agentregistry('v1');
|
|
1553
|
+
*
|
|
1554
|
+
* async function main() {
|
|
1555
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1556
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1557
|
+
* scopes: [
|
|
1558
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1559
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1560
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1561
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1562
|
+
* ],
|
|
1563
|
+
* });
|
|
1564
|
+
*
|
|
1565
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1566
|
+
* const authClient = await auth.getClient();
|
|
1567
|
+
* google.options({auth: authClient});
|
|
1568
|
+
*
|
|
1569
|
+
* // Do the magic
|
|
1570
|
+
* const res = await agentregistry.projects.locations.aiApplications.get({
|
|
1571
|
+
* // Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
1572
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
1573
|
+
* });
|
|
1574
|
+
* console.log(res.data);
|
|
1575
|
+
*
|
|
1576
|
+
* // Example response
|
|
1577
|
+
* // {
|
|
1578
|
+
* // "applicationProperties": {},
|
|
1579
|
+
* // "attributes": {},
|
|
1580
|
+
* // "createTime": "my_createTime",
|
|
1581
|
+
* // "description": "my_description",
|
|
1582
|
+
* // "displayName": "my_displayName",
|
|
1583
|
+
* // "name": "my_name",
|
|
1584
|
+
* // "state": "my_state",
|
|
1585
|
+
* // "uid": "my_uid",
|
|
1586
|
+
* // "updateTime": "my_updateTime"
|
|
1587
|
+
* // }
|
|
1588
|
+
* }
|
|
1589
|
+
*
|
|
1590
|
+
* main().catch(e => {
|
|
1591
|
+
* console.error(e);
|
|
1592
|
+
* throw e;
|
|
1593
|
+
* });
|
|
1594
|
+
*
|
|
1595
|
+
* ```
|
|
1596
|
+
*
|
|
1597
|
+
* @param params - Parameters for request
|
|
1598
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1599
|
+
* @param callback - Optional callback that handles the response.
|
|
1600
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1601
|
+
*/
|
|
1602
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1603
|
+
get(params?: Params$Resource$Projects$Locations$Aiapplications$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AiApplication>>;
|
|
1604
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1605
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Get, options: MethodOptions | BodyResponseCallback<Schema$AiApplication>, callback: BodyResponseCallback<Schema$AiApplication>): void;
|
|
1606
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Get, callback: BodyResponseCallback<Schema$AiApplication>): void;
|
|
1607
|
+
get(callback: BodyResponseCallback<Schema$AiApplication>): void;
|
|
1357
1608
|
/**
|
|
1358
1609
|
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
|
|
1359
1610
|
* @example
|
|
@@ -1426,6 +1677,81 @@ export declare namespace agentregistry_v1 {
|
|
|
1426
1677
|
getIamPolicy(params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
1427
1678
|
getIamPolicy(params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
1428
1679
|
getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
1680
|
+
/**
|
|
1681
|
+
* Lists AI Applications in a given project and location.
|
|
1682
|
+
* @example
|
|
1683
|
+
* ```js
|
|
1684
|
+
* // Before running the sample:
|
|
1685
|
+
* // - Enable the API at:
|
|
1686
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
1687
|
+
* // - Login into gcloud by running:
|
|
1688
|
+
* // ```sh
|
|
1689
|
+
* // $ gcloud auth application-default login
|
|
1690
|
+
* // ```
|
|
1691
|
+
* // - Install the npm module by running:
|
|
1692
|
+
* // ```sh
|
|
1693
|
+
* // $ npm install googleapis
|
|
1694
|
+
* // ```
|
|
1695
|
+
*
|
|
1696
|
+
* const {google} = require('googleapis');
|
|
1697
|
+
* const agentregistry = google.agentregistry('v1');
|
|
1698
|
+
*
|
|
1699
|
+
* async function main() {
|
|
1700
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1701
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1702
|
+
* scopes: [
|
|
1703
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1704
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1705
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1706
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1707
|
+
* ],
|
|
1708
|
+
* });
|
|
1709
|
+
*
|
|
1710
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1711
|
+
* const authClient = await auth.getClient();
|
|
1712
|
+
* google.options({auth: authClient});
|
|
1713
|
+
*
|
|
1714
|
+
* // Do the magic
|
|
1715
|
+
* const res = await agentregistry.projects.locations.aiApplications.list({
|
|
1716
|
+
* // Optional. Filtering results.
|
|
1717
|
+
* filter: 'placeholder-value',
|
|
1718
|
+
* // Optional. Hint for how to order the results.
|
|
1719
|
+
* orderBy: 'placeholder-value',
|
|
1720
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
1721
|
+
* pageSize: 'placeholder-value',
|
|
1722
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
1723
|
+
* pageToken: 'placeholder-value',
|
|
1724
|
+
* // Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
|
|
1725
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
1726
|
+
* });
|
|
1727
|
+
* console.log(res.data);
|
|
1728
|
+
*
|
|
1729
|
+
* // Example response
|
|
1730
|
+
* // {
|
|
1731
|
+
* // "aiApplications": [],
|
|
1732
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
1733
|
+
* // "unreachable": []
|
|
1734
|
+
* // }
|
|
1735
|
+
* }
|
|
1736
|
+
*
|
|
1737
|
+
* main().catch(e => {
|
|
1738
|
+
* console.error(e);
|
|
1739
|
+
* throw e;
|
|
1740
|
+
* });
|
|
1741
|
+
*
|
|
1742
|
+
* ```
|
|
1743
|
+
*
|
|
1744
|
+
* @param params - Parameters for request
|
|
1745
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1746
|
+
* @param callback - Optional callback that handles the response.
|
|
1747
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1748
|
+
*/
|
|
1749
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1750
|
+
list(params?: Params$Resource$Projects$Locations$Aiapplications$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationsResponse>>;
|
|
1751
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1752
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$List, options: MethodOptions | BodyResponseCallback<Schema$ListAiApplicationsResponse>, callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>): void;
|
|
1753
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$List, callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>): void;
|
|
1754
|
+
list(callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>): void;
|
|
1429
1755
|
/**
|
|
1430
1756
|
* Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
|
1431
1757
|
* @example
|
|
@@ -1579,6 +1905,12 @@ export declare namespace agentregistry_v1 {
|
|
|
1579
1905
|
testIamPermissions(params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions, callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>): void;
|
|
1580
1906
|
testIamPermissions(callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>): void;
|
|
1581
1907
|
}
|
|
1908
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Get extends StandardParameters {
|
|
1909
|
+
/**
|
|
1910
|
+
* Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
1911
|
+
*/
|
|
1912
|
+
name?: string;
|
|
1913
|
+
}
|
|
1582
1914
|
export interface Params$Resource$Projects$Locations$Aiapplications$Getiampolicy extends StandardParameters {
|
|
1583
1915
|
/**
|
|
1584
1916
|
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
@@ -1589,19 +1921,41 @@ export declare namespace agentregistry_v1 {
|
|
|
1589
1921
|
*/
|
|
1590
1922
|
resource?: string;
|
|
1591
1923
|
}
|
|
1592
|
-
export interface Params$Resource$Projects$Locations$Aiapplications$
|
|
1924
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$List extends StandardParameters {
|
|
1593
1925
|
/**
|
|
1594
|
-
*
|
|
1926
|
+
* Optional. Filtering results.
|
|
1595
1927
|
*/
|
|
1596
|
-
|
|
1928
|
+
filter?: string;
|
|
1597
1929
|
/**
|
|
1598
|
-
*
|
|
1930
|
+
* Optional. Hint for how to order the results.
|
|
1599
1931
|
*/
|
|
1600
|
-
|
|
1601
|
-
}
|
|
1602
|
-
export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
|
|
1932
|
+
orderBy?: string;
|
|
1603
1933
|
/**
|
|
1604
|
-
*
|
|
1934
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
1935
|
+
*/
|
|
1936
|
+
pageSize?: number;
|
|
1937
|
+
/**
|
|
1938
|
+
* Optional. A token identifying a page of results the server should return.
|
|
1939
|
+
*/
|
|
1940
|
+
pageToken?: string;
|
|
1941
|
+
/**
|
|
1942
|
+
* Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
|
|
1943
|
+
*/
|
|
1944
|
+
parent?: string;
|
|
1945
|
+
}
|
|
1946
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Setiampolicy extends StandardParameters {
|
|
1947
|
+
/**
|
|
1948
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1949
|
+
*/
|
|
1950
|
+
resource?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* Request body metadata
|
|
1953
|
+
*/
|
|
1954
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
1955
|
+
}
|
|
1956
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
|
|
1957
|
+
/**
|
|
1958
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
1605
1959
|
*/
|
|
1606
1960
|
resource?: string;
|
|
1607
1961
|
/**
|
|
@@ -1609,6 +1963,519 @@ export declare namespace agentregistry_v1 {
|
|
|
1609
1963
|
*/
|
|
1610
1964
|
requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
|
|
1611
1965
|
}
|
|
1966
|
+
export class Resource$Projects$Locations$Aiapplications$Agents {
|
|
1967
|
+
context: APIRequestContext;
|
|
1968
|
+
constructor(context: APIRequestContext);
|
|
1969
|
+
/**
|
|
1970
|
+
* Gets details of a single Agent under an AI Application.
|
|
1971
|
+
* @example
|
|
1972
|
+
* ```js
|
|
1973
|
+
* // Before running the sample:
|
|
1974
|
+
* // - Enable the API at:
|
|
1975
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
1976
|
+
* // - Login into gcloud by running:
|
|
1977
|
+
* // ```sh
|
|
1978
|
+
* // $ gcloud auth application-default login
|
|
1979
|
+
* // ```
|
|
1980
|
+
* // - Install the npm module by running:
|
|
1981
|
+
* // ```sh
|
|
1982
|
+
* // $ npm install googleapis
|
|
1983
|
+
* // ```
|
|
1984
|
+
*
|
|
1985
|
+
* const {google} = require('googleapis');
|
|
1986
|
+
* const agentregistry = google.agentregistry('v1');
|
|
1987
|
+
*
|
|
1988
|
+
* async function main() {
|
|
1989
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1990
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1991
|
+
* scopes: [
|
|
1992
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1993
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1994
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1995
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1996
|
+
* ],
|
|
1997
|
+
* });
|
|
1998
|
+
*
|
|
1999
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2000
|
+
* const authClient = await auth.getClient();
|
|
2001
|
+
* google.options({auth: authClient});
|
|
2002
|
+
*
|
|
2003
|
+
* // Do the magic
|
|
2004
|
+
* const res = await agentregistry.projects.locations.aiApplications.agents.get({
|
|
2005
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
|
|
2006
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/agents/my-agent',
|
|
2007
|
+
* });
|
|
2008
|
+
* console.log(res.data);
|
|
2009
|
+
*
|
|
2010
|
+
* // Example response
|
|
2011
|
+
* // {
|
|
2012
|
+
* // "agentId": "my_agentId",
|
|
2013
|
+
* // "attributes": {},
|
|
2014
|
+
* // "card": {},
|
|
2015
|
+
* // "createTime": "my_createTime",
|
|
2016
|
+
* // "description": "my_description",
|
|
2017
|
+
* // "displayName": "my_displayName",
|
|
2018
|
+
* // "location": "my_location",
|
|
2019
|
+
* // "name": "my_name",
|
|
2020
|
+
* // "protocols": [],
|
|
2021
|
+
* // "skills": [],
|
|
2022
|
+
* // "uid": "my_uid",
|
|
2023
|
+
* // "updateTime": "my_updateTime",
|
|
2024
|
+
* // "version": "my_version"
|
|
2025
|
+
* // }
|
|
2026
|
+
* }
|
|
2027
|
+
*
|
|
2028
|
+
* main().catch(e => {
|
|
2029
|
+
* console.error(e);
|
|
2030
|
+
* throw e;
|
|
2031
|
+
* });
|
|
2032
|
+
*
|
|
2033
|
+
* ```
|
|
2034
|
+
*
|
|
2035
|
+
* @param params - Parameters for request
|
|
2036
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2037
|
+
* @param callback - Optional callback that handles the response.
|
|
2038
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2039
|
+
*/
|
|
2040
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2041
|
+
get(params?: Params$Resource$Projects$Locations$Aiapplications$Agents$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Agent>>;
|
|
2042
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2043
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get, options: MethodOptions | BodyResponseCallback<Schema$Agent>, callback: BodyResponseCallback<Schema$Agent>): void;
|
|
2044
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get, callback: BodyResponseCallback<Schema$Agent>): void;
|
|
2045
|
+
get(callback: BodyResponseCallback<Schema$Agent>): void;
|
|
2046
|
+
/**
|
|
2047
|
+
* Lists Agents under an AI Application.
|
|
2048
|
+
* @example
|
|
2049
|
+
* ```js
|
|
2050
|
+
* // Before running the sample:
|
|
2051
|
+
* // - Enable the API at:
|
|
2052
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2053
|
+
* // - Login into gcloud by running:
|
|
2054
|
+
* // ```sh
|
|
2055
|
+
* // $ gcloud auth application-default login
|
|
2056
|
+
* // ```
|
|
2057
|
+
* // - Install the npm module by running:
|
|
2058
|
+
* // ```sh
|
|
2059
|
+
* // $ npm install googleapis
|
|
2060
|
+
* // ```
|
|
2061
|
+
*
|
|
2062
|
+
* const {google} = require('googleapis');
|
|
2063
|
+
* const agentregistry = google.agentregistry('v1');
|
|
2064
|
+
*
|
|
2065
|
+
* async function main() {
|
|
2066
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2067
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2068
|
+
* scopes: [
|
|
2069
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2070
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2071
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2072
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2073
|
+
* ],
|
|
2074
|
+
* });
|
|
2075
|
+
*
|
|
2076
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2077
|
+
* const authClient = await auth.getClient();
|
|
2078
|
+
* google.options({auth: authClient});
|
|
2079
|
+
*
|
|
2080
|
+
* // Do the magic
|
|
2081
|
+
* const res = await agentregistry.projects.locations.aiApplications.agents.list(
|
|
2082
|
+
* {
|
|
2083
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2084
|
+
* pageSize: 'placeholder-value',
|
|
2085
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
2086
|
+
* pageToken: 'placeholder-value',
|
|
2087
|
+
* // Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2088
|
+
* parent:
|
|
2089
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2090
|
+
* },
|
|
2091
|
+
* );
|
|
2092
|
+
* console.log(res.data);
|
|
2093
|
+
*
|
|
2094
|
+
* // Example response
|
|
2095
|
+
* // {
|
|
2096
|
+
* // "agents": [],
|
|
2097
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2098
|
+
* // }
|
|
2099
|
+
* }
|
|
2100
|
+
*
|
|
2101
|
+
* main().catch(e => {
|
|
2102
|
+
* console.error(e);
|
|
2103
|
+
* throw e;
|
|
2104
|
+
* });
|
|
2105
|
+
*
|
|
2106
|
+
* ```
|
|
2107
|
+
*
|
|
2108
|
+
* @param params - Parameters for request
|
|
2109
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2110
|
+
* @param callback - Optional callback that handles the response.
|
|
2111
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2112
|
+
*/
|
|
2113
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Agents$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2114
|
+
list(params?: Params$Resource$Projects$Locations$Aiapplications$Agents$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationAgentsResponse>>;
|
|
2115
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Agents$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2116
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Agents$List, options: MethodOptions | BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>, callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>): void;
|
|
2117
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Agents$List, callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>): void;
|
|
2118
|
+
list(callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>): void;
|
|
2119
|
+
}
|
|
2120
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Agents$Get extends StandardParameters {
|
|
2121
|
+
/**
|
|
2122
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
|
|
2123
|
+
*/
|
|
2124
|
+
name?: string;
|
|
2125
|
+
}
|
|
2126
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Agents$List extends StandardParameters {
|
|
2127
|
+
/**
|
|
2128
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2129
|
+
*/
|
|
2130
|
+
pageSize?: number;
|
|
2131
|
+
/**
|
|
2132
|
+
* Optional. A token identifying a page of results the server should return.
|
|
2133
|
+
*/
|
|
2134
|
+
pageToken?: string;
|
|
2135
|
+
/**
|
|
2136
|
+
* Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2137
|
+
*/
|
|
2138
|
+
parent?: string;
|
|
2139
|
+
}
|
|
2140
|
+
export class Resource$Projects$Locations$Aiapplications$Endpoints {
|
|
2141
|
+
context: APIRequestContext;
|
|
2142
|
+
constructor(context: APIRequestContext);
|
|
2143
|
+
/**
|
|
2144
|
+
* Gets details of a single Endpoint under an AI Application.
|
|
2145
|
+
* @example
|
|
2146
|
+
* ```js
|
|
2147
|
+
* // Before running the sample:
|
|
2148
|
+
* // - Enable the API at:
|
|
2149
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2150
|
+
* // - Login into gcloud by running:
|
|
2151
|
+
* // ```sh
|
|
2152
|
+
* // $ gcloud auth application-default login
|
|
2153
|
+
* // ```
|
|
2154
|
+
* // - Install the npm module by running:
|
|
2155
|
+
* // ```sh
|
|
2156
|
+
* // $ npm install googleapis
|
|
2157
|
+
* // ```
|
|
2158
|
+
*
|
|
2159
|
+
* const {google} = require('googleapis');
|
|
2160
|
+
* const agentregistry = google.agentregistry('v1');
|
|
2161
|
+
*
|
|
2162
|
+
* async function main() {
|
|
2163
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2164
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2165
|
+
* scopes: [
|
|
2166
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2167
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2168
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2169
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2170
|
+
* ],
|
|
2171
|
+
* });
|
|
2172
|
+
*
|
|
2173
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2174
|
+
* const authClient = await auth.getClient();
|
|
2175
|
+
* google.options({auth: authClient});
|
|
2176
|
+
*
|
|
2177
|
+
* // Do the magic
|
|
2178
|
+
* const res =
|
|
2179
|
+
* await agentregistry.projects.locations.aiApplications.endpoints.get({
|
|
2180
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
|
|
2181
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/endpoints/my-endpoint',
|
|
2182
|
+
* });
|
|
2183
|
+
* console.log(res.data);
|
|
2184
|
+
*
|
|
2185
|
+
* // Example response
|
|
2186
|
+
* // {
|
|
2187
|
+
* // "attributes": {},
|
|
2188
|
+
* // "createTime": "my_createTime",
|
|
2189
|
+
* // "description": "my_description",
|
|
2190
|
+
* // "displayName": "my_displayName",
|
|
2191
|
+
* // "endpointId": "my_endpointId",
|
|
2192
|
+
* // "interfaces": [],
|
|
2193
|
+
* // "name": "my_name",
|
|
2194
|
+
* // "updateTime": "my_updateTime"
|
|
2195
|
+
* // }
|
|
2196
|
+
* }
|
|
2197
|
+
*
|
|
2198
|
+
* main().catch(e => {
|
|
2199
|
+
* console.error(e);
|
|
2200
|
+
* throw e;
|
|
2201
|
+
* });
|
|
2202
|
+
*
|
|
2203
|
+
* ```
|
|
2204
|
+
*
|
|
2205
|
+
* @param params - Parameters for request
|
|
2206
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2207
|
+
* @param callback - Optional callback that handles the response.
|
|
2208
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2209
|
+
*/
|
|
2210
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2211
|
+
get(params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>;
|
|
2212
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2213
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get, options: MethodOptions | BodyResponseCallback<Schema$Endpoint>, callback: BodyResponseCallback<Schema$Endpoint>): void;
|
|
2214
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get, callback: BodyResponseCallback<Schema$Endpoint>): void;
|
|
2215
|
+
get(callback: BodyResponseCallback<Schema$Endpoint>): void;
|
|
2216
|
+
/**
|
|
2217
|
+
* Lists Endpoints under an AI Application.
|
|
2218
|
+
* @example
|
|
2219
|
+
* ```js
|
|
2220
|
+
* // Before running the sample:
|
|
2221
|
+
* // - Enable the API at:
|
|
2222
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2223
|
+
* // - Login into gcloud by running:
|
|
2224
|
+
* // ```sh
|
|
2225
|
+
* // $ gcloud auth application-default login
|
|
2226
|
+
* // ```
|
|
2227
|
+
* // - Install the npm module by running:
|
|
2228
|
+
* // ```sh
|
|
2229
|
+
* // $ npm install googleapis
|
|
2230
|
+
* // ```
|
|
2231
|
+
*
|
|
2232
|
+
* const {google} = require('googleapis');
|
|
2233
|
+
* const agentregistry = google.agentregistry('v1');
|
|
2234
|
+
*
|
|
2235
|
+
* async function main() {
|
|
2236
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2237
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2238
|
+
* scopes: [
|
|
2239
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2240
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2241
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2242
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2243
|
+
* ],
|
|
2244
|
+
* });
|
|
2245
|
+
*
|
|
2246
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2247
|
+
* const authClient = await auth.getClient();
|
|
2248
|
+
* google.options({auth: authClient});
|
|
2249
|
+
*
|
|
2250
|
+
* // Do the magic
|
|
2251
|
+
* const res =
|
|
2252
|
+
* await agentregistry.projects.locations.aiApplications.endpoints.list({
|
|
2253
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2254
|
+
* pageSize: 'placeholder-value',
|
|
2255
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
2256
|
+
* pageToken: 'placeholder-value',
|
|
2257
|
+
* // Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2258
|
+
* parent:
|
|
2259
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2260
|
+
* });
|
|
2261
|
+
* console.log(res.data);
|
|
2262
|
+
*
|
|
2263
|
+
* // Example response
|
|
2264
|
+
* // {
|
|
2265
|
+
* // "endpoints": [],
|
|
2266
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2267
|
+
* // }
|
|
2268
|
+
* }
|
|
2269
|
+
*
|
|
2270
|
+
* main().catch(e => {
|
|
2271
|
+
* console.error(e);
|
|
2272
|
+
* throw e;
|
|
2273
|
+
* });
|
|
2274
|
+
*
|
|
2275
|
+
* ```
|
|
2276
|
+
*
|
|
2277
|
+
* @param params - Parameters for request
|
|
2278
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2279
|
+
* @param callback - Optional callback that handles the response.
|
|
2280
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2281
|
+
*/
|
|
2282
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2283
|
+
list(params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationEndpointsResponse>>;
|
|
2284
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2285
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List, options: MethodOptions | BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>, callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>): void;
|
|
2286
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List, callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>): void;
|
|
2287
|
+
list(callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>): void;
|
|
2288
|
+
}
|
|
2289
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get extends StandardParameters {
|
|
2290
|
+
/**
|
|
2291
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
|
|
2292
|
+
*/
|
|
2293
|
+
name?: string;
|
|
2294
|
+
}
|
|
2295
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$List extends StandardParameters {
|
|
2296
|
+
/**
|
|
2297
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2298
|
+
*/
|
|
2299
|
+
pageSize?: number;
|
|
2300
|
+
/**
|
|
2301
|
+
* Optional. A token identifying a page of results the server should return.
|
|
2302
|
+
*/
|
|
2303
|
+
pageToken?: string;
|
|
2304
|
+
/**
|
|
2305
|
+
* Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2306
|
+
*/
|
|
2307
|
+
parent?: string;
|
|
2308
|
+
}
|
|
2309
|
+
export class Resource$Projects$Locations$Aiapplications$Mcpservers {
|
|
2310
|
+
context: APIRequestContext;
|
|
2311
|
+
constructor(context: APIRequestContext);
|
|
2312
|
+
/**
|
|
2313
|
+
* Gets details of a single McpServer under an AI Application.
|
|
2314
|
+
* @example
|
|
2315
|
+
* ```js
|
|
2316
|
+
* // Before running the sample:
|
|
2317
|
+
* // - Enable the API at:
|
|
2318
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2319
|
+
* // - Login into gcloud by running:
|
|
2320
|
+
* // ```sh
|
|
2321
|
+
* // $ gcloud auth application-default login
|
|
2322
|
+
* // ```
|
|
2323
|
+
* // - Install the npm module by running:
|
|
2324
|
+
* // ```sh
|
|
2325
|
+
* // $ npm install googleapis
|
|
2326
|
+
* // ```
|
|
2327
|
+
*
|
|
2328
|
+
* const {google} = require('googleapis');
|
|
2329
|
+
* const agentregistry = google.agentregistry('v1');
|
|
2330
|
+
*
|
|
2331
|
+
* async function main() {
|
|
2332
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2333
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2334
|
+
* scopes: [
|
|
2335
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2336
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2337
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2338
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2339
|
+
* ],
|
|
2340
|
+
* });
|
|
2341
|
+
*
|
|
2342
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2343
|
+
* const authClient = await auth.getClient();
|
|
2344
|
+
* google.options({auth: authClient});
|
|
2345
|
+
*
|
|
2346
|
+
* // Do the magic
|
|
2347
|
+
* const res =
|
|
2348
|
+
* await agentregistry.projects.locations.aiApplications.mcpServers.get({
|
|
2349
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
|
|
2350
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/mcpServers/my-mcpServer',
|
|
2351
|
+
* });
|
|
2352
|
+
* console.log(res.data);
|
|
2353
|
+
*
|
|
2354
|
+
* // Example response
|
|
2355
|
+
* // {
|
|
2356
|
+
* // "attributes": {},
|
|
2357
|
+
* // "createTime": "my_createTime",
|
|
2358
|
+
* // "description": "my_description",
|
|
2359
|
+
* // "displayName": "my_displayName",
|
|
2360
|
+
* // "interfaces": [],
|
|
2361
|
+
* // "mcpServerId": "my_mcpServerId",
|
|
2362
|
+
* // "name": "my_name",
|
|
2363
|
+
* // "tools": [],
|
|
2364
|
+
* // "updateTime": "my_updateTime"
|
|
2365
|
+
* // }
|
|
2366
|
+
* }
|
|
2367
|
+
*
|
|
2368
|
+
* main().catch(e => {
|
|
2369
|
+
* console.error(e);
|
|
2370
|
+
* throw e;
|
|
2371
|
+
* });
|
|
2372
|
+
*
|
|
2373
|
+
* ```
|
|
2374
|
+
*
|
|
2375
|
+
* @param params - Parameters for request
|
|
2376
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2377
|
+
* @param callback - Optional callback that handles the response.
|
|
2378
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2379
|
+
*/
|
|
2380
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2381
|
+
get(params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>;
|
|
2382
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2383
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get, options: MethodOptions | BodyResponseCallback<Schema$McpServer>, callback: BodyResponseCallback<Schema$McpServer>): void;
|
|
2384
|
+
get(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get, callback: BodyResponseCallback<Schema$McpServer>): void;
|
|
2385
|
+
get(callback: BodyResponseCallback<Schema$McpServer>): void;
|
|
2386
|
+
/**
|
|
2387
|
+
* Lists McpServers under an AI Application.
|
|
2388
|
+
* @example
|
|
2389
|
+
* ```js
|
|
2390
|
+
* // Before running the sample:
|
|
2391
|
+
* // - Enable the API at:
|
|
2392
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2393
|
+
* // - Login into gcloud by running:
|
|
2394
|
+
* // ```sh
|
|
2395
|
+
* // $ gcloud auth application-default login
|
|
2396
|
+
* // ```
|
|
2397
|
+
* // - Install the npm module by running:
|
|
2398
|
+
* // ```sh
|
|
2399
|
+
* // $ npm install googleapis
|
|
2400
|
+
* // ```
|
|
2401
|
+
*
|
|
2402
|
+
* const {google} = require('googleapis');
|
|
2403
|
+
* const agentregistry = google.agentregistry('v1');
|
|
2404
|
+
*
|
|
2405
|
+
* async function main() {
|
|
2406
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2407
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2408
|
+
* scopes: [
|
|
2409
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2410
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2411
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2412
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2413
|
+
* ],
|
|
2414
|
+
* });
|
|
2415
|
+
*
|
|
2416
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2417
|
+
* const authClient = await auth.getClient();
|
|
2418
|
+
* google.options({auth: authClient});
|
|
2419
|
+
*
|
|
2420
|
+
* // Do the magic
|
|
2421
|
+
* const res =
|
|
2422
|
+
* await agentregistry.projects.locations.aiApplications.mcpServers.list({
|
|
2423
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2424
|
+
* pageSize: 'placeholder-value',
|
|
2425
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
2426
|
+
* pageToken: 'placeholder-value',
|
|
2427
|
+
* // Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2428
|
+
* parent:
|
|
2429
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2430
|
+
* });
|
|
2431
|
+
* console.log(res.data);
|
|
2432
|
+
*
|
|
2433
|
+
* // Example response
|
|
2434
|
+
* // {
|
|
2435
|
+
* // "mcpServers": [],
|
|
2436
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2437
|
+
* // }
|
|
2438
|
+
* }
|
|
2439
|
+
*
|
|
2440
|
+
* main().catch(e => {
|
|
2441
|
+
* console.error(e);
|
|
2442
|
+
* throw e;
|
|
2443
|
+
* });
|
|
2444
|
+
*
|
|
2445
|
+
* ```
|
|
2446
|
+
*
|
|
2447
|
+
* @param params - Parameters for request
|
|
2448
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2449
|
+
* @param callback - Optional callback that handles the response.
|
|
2450
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2451
|
+
*/
|
|
2452
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2453
|
+
list(params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationMcpServersResponse>>;
|
|
2454
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2455
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List, options: MethodOptions | BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>, callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>): void;
|
|
2456
|
+
list(params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List, callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>): void;
|
|
2457
|
+
list(callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>): void;
|
|
2458
|
+
}
|
|
2459
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get extends StandardParameters {
|
|
2460
|
+
/**
|
|
2461
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
|
|
2462
|
+
*/
|
|
2463
|
+
name?: string;
|
|
2464
|
+
}
|
|
2465
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List extends StandardParameters {
|
|
2466
|
+
/**
|
|
2467
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2468
|
+
*/
|
|
2469
|
+
pageSize?: number;
|
|
2470
|
+
/**
|
|
2471
|
+
* Optional. A token identifying a page of results the server should return.
|
|
2472
|
+
*/
|
|
2473
|
+
pageToken?: string;
|
|
2474
|
+
/**
|
|
2475
|
+
* Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2476
|
+
*/
|
|
2477
|
+
parent?: string;
|
|
2478
|
+
}
|
|
1612
2479
|
export class Resource$Projects$Locations$Bindings {
|
|
1613
2480
|
context: APIRequestContext;
|
|
1614
2481
|
constructor(context: APIRequestContext);
|