@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/v1alpha.ts
CHANGED
|
@@ -215,10 +215,51 @@ export namespace agentregistry_v1alpha {
|
|
|
215
215
|
*/
|
|
216
216
|
content?: {[key: string]: any} | null;
|
|
217
217
|
/**
|
|
218
|
-
* Required. The type of the agent spec content.
|
|
218
|
+
* Required. Immutable. The type of the agent spec content.
|
|
219
219
|
*/
|
|
220
220
|
type?: string | null;
|
|
221
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* Represents an AI Application.
|
|
224
|
+
*/
|
|
225
|
+
export interface Schema$AiApplication {
|
|
226
|
+
/**
|
|
227
|
+
* Output only. Properties of an underlying cloud resource that can comprise an AI Application.
|
|
228
|
+
*/
|
|
229
|
+
applicationProperties?: Schema$ApplicationProperties;
|
|
230
|
+
/**
|
|
231
|
+
* Optional. Consumer provided attributes.
|
|
232
|
+
*/
|
|
233
|
+
attributes?: Schema$Attributes;
|
|
234
|
+
/**
|
|
235
|
+
* Output only. Creation time.
|
|
236
|
+
*/
|
|
237
|
+
createTime?: string | null;
|
|
238
|
+
/**
|
|
239
|
+
* Optional. User-defined description of the AI Application.
|
|
240
|
+
*/
|
|
241
|
+
description?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Optional. User-defined name for the AI Application.
|
|
244
|
+
*/
|
|
245
|
+
displayName?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Identifier. Resource name of the AI Application. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
248
|
+
*/
|
|
249
|
+
name?: string | null;
|
|
250
|
+
/**
|
|
251
|
+
* Output only. The current state of the AI Application.
|
|
252
|
+
*/
|
|
253
|
+
state?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Output only. Universally unique identifier (UUID4) for the AI Application.
|
|
256
|
+
*/
|
|
257
|
+
uid?: string | null;
|
|
258
|
+
/**
|
|
259
|
+
* Output only. Last update time.
|
|
260
|
+
*/
|
|
261
|
+
updateTime?: string | null;
|
|
262
|
+
}
|
|
222
263
|
/**
|
|
223
264
|
* Annotations describing the characteristics and behavior of a tool or operation.
|
|
224
265
|
*/
|
|
@@ -244,6 +285,15 @@ export namespace agentregistry_v1alpha {
|
|
|
244
285
|
*/
|
|
245
286
|
title?: string | null;
|
|
246
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Additional system properties of an Application.
|
|
290
|
+
*/
|
|
291
|
+
export interface Schema$ApplicationProperties {
|
|
292
|
+
/**
|
|
293
|
+
* 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\}`
|
|
294
|
+
*/
|
|
295
|
+
extendedMetadata?: {[key: string]: Schema$ExtendedMetadata} | null;
|
|
296
|
+
}
|
|
247
297
|
/**
|
|
248
298
|
* Direct write-only raw archive payload upload.
|
|
249
299
|
*/
|
|
@@ -253,6 +303,31 @@ export namespace agentregistry_v1alpha {
|
|
|
253
303
|
*/
|
|
254
304
|
archiveContent?: string | null;
|
|
255
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Consumer provided attributes.
|
|
308
|
+
*/
|
|
309
|
+
export interface Schema$Attributes {
|
|
310
|
+
/**
|
|
311
|
+
* Optional. Business team that ensures user needs are met and value is delivered
|
|
312
|
+
*/
|
|
313
|
+
businessOwners?: Schema$ContactInfo[];
|
|
314
|
+
/**
|
|
315
|
+
* Optional. User-defined criticality information.
|
|
316
|
+
*/
|
|
317
|
+
criticality?: Schema$Criticality;
|
|
318
|
+
/**
|
|
319
|
+
* Optional. Developer team that owns development and coding.
|
|
320
|
+
*/
|
|
321
|
+
developerOwners?: Schema$ContactInfo[];
|
|
322
|
+
/**
|
|
323
|
+
* Optional. User-defined environment information.
|
|
324
|
+
*/
|
|
325
|
+
environment?: Schema$Environment;
|
|
326
|
+
/**
|
|
327
|
+
* Optional. Operator team that ensures runtime and operations.
|
|
328
|
+
*/
|
|
329
|
+
operatorOwners?: Schema$ContactInfo[];
|
|
330
|
+
}
|
|
256
331
|
/**
|
|
257
332
|
* The AuthProvider of the Binding.
|
|
258
333
|
*/
|
|
@@ -295,7 +370,7 @@ export namespace agentregistry_v1alpha {
|
|
|
295
370
|
*/
|
|
296
371
|
name?: string | null;
|
|
297
372
|
/**
|
|
298
|
-
*
|
|
373
|
+
* Optional. The source Agent of the Binding.
|
|
299
374
|
*/
|
|
300
375
|
source?: Schema$Source;
|
|
301
376
|
/**
|
|
@@ -324,6 +399,49 @@ export namespace agentregistry_v1alpha {
|
|
|
324
399
|
*/
|
|
325
400
|
type?: string | null;
|
|
326
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Separate message to accommodate custom formats across IRC and Slack.
|
|
404
|
+
*/
|
|
405
|
+
export interface Schema$Channel {
|
|
406
|
+
/**
|
|
407
|
+
* Required. URI of the channel.
|
|
408
|
+
*/
|
|
409
|
+
uri?: string | null;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Contact information of stakeholders.
|
|
413
|
+
*/
|
|
414
|
+
export interface Schema$ContactInfo {
|
|
415
|
+
/**
|
|
416
|
+
* Optional. Communication channel of the contacts.
|
|
417
|
+
*/
|
|
418
|
+
channel?: Schema$Channel;
|
|
419
|
+
/**
|
|
420
|
+
* Optional. Contact's name. Can have a maximum length of 63 characters.
|
|
421
|
+
*/
|
|
422
|
+
displayName?: string | null;
|
|
423
|
+
/**
|
|
424
|
+
* Required. Email address of the contacts.
|
|
425
|
+
*/
|
|
426
|
+
email?: string | null;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Criticality of the Application, Service, or Workload
|
|
430
|
+
*/
|
|
431
|
+
export interface Schema$Criticality {
|
|
432
|
+
/**
|
|
433
|
+
* Optional. Criticality level. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
|
|
434
|
+
*/
|
|
435
|
+
level?: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* Optional. Indicates mission-critical Application, Service, or Workload. Deprecated: Please refer to type instead.
|
|
438
|
+
*/
|
|
439
|
+
missionCritical?: boolean | null;
|
|
440
|
+
/**
|
|
441
|
+
* Required. Criticality Type.
|
|
442
|
+
*/
|
|
443
|
+
type?: string | null;
|
|
444
|
+
}
|
|
327
445
|
/**
|
|
328
446
|
* 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); \}
|
|
329
447
|
*/
|
|
@@ -374,7 +492,20 @@ export namespace agentregistry_v1alpha {
|
|
|
374
492
|
*/
|
|
375
493
|
content?: {[key: string]: any} | null;
|
|
376
494
|
/**
|
|
377
|
-
* Required. The type of the endpoint spec content.
|
|
495
|
+
* Required. Immutable. The type of the endpoint spec content.
|
|
496
|
+
*/
|
|
497
|
+
type?: string | null;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Environment of the Application, Service, or Workload
|
|
501
|
+
*/
|
|
502
|
+
export interface Schema$Environment {
|
|
503
|
+
/**
|
|
504
|
+
* Optional. Environment name. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
|
|
505
|
+
*/
|
|
506
|
+
environment?: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* Required. Environment Type.
|
|
378
509
|
*/
|
|
379
510
|
type?: string | null;
|
|
380
511
|
}
|
|
@@ -399,6 +530,15 @@ export namespace agentregistry_v1alpha {
|
|
|
399
530
|
*/
|
|
400
531
|
title?: string | null;
|
|
401
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* Additional metadata for a Service or Workload.
|
|
535
|
+
*/
|
|
536
|
+
export interface Schema$ExtendedMetadata {
|
|
537
|
+
/**
|
|
538
|
+
* Output only. The metadata contents.
|
|
539
|
+
*/
|
|
540
|
+
metadataStruct?: {[key: string]: any} | null;
|
|
541
|
+
}
|
|
402
542
|
/**
|
|
403
543
|
* Message for response to fetching available Bindings.
|
|
404
544
|
*/
|
|
@@ -571,6 +711,62 @@ export namespace agentregistry_v1alpha {
|
|
|
571
711
|
*/
|
|
572
712
|
nextPageToken?: string | null;
|
|
573
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* Message for response to listing Agents under an AI Application.
|
|
716
|
+
*/
|
|
717
|
+
export interface Schema$ListAiApplicationAgentsResponse {
|
|
718
|
+
/**
|
|
719
|
+
* The list of Agents.
|
|
720
|
+
*/
|
|
721
|
+
agents?: Schema$Agent[];
|
|
722
|
+
/**
|
|
723
|
+
* A token identifying a page of results the server should return.
|
|
724
|
+
*/
|
|
725
|
+
nextPageToken?: string | null;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Message for response to listing Endpoints under an AI Application.
|
|
729
|
+
*/
|
|
730
|
+
export interface Schema$ListAiApplicationEndpointsResponse {
|
|
731
|
+
/**
|
|
732
|
+
* The list of Endpoints.
|
|
733
|
+
*/
|
|
734
|
+
endpoints?: Schema$Endpoint[];
|
|
735
|
+
/**
|
|
736
|
+
* A token identifying a page of results the server should return.
|
|
737
|
+
*/
|
|
738
|
+
nextPageToken?: string | null;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Message for response to listing McpServers under an AI Application.
|
|
742
|
+
*/
|
|
743
|
+
export interface Schema$ListAiApplicationMcpServersResponse {
|
|
744
|
+
/**
|
|
745
|
+
* The list of McpServers.
|
|
746
|
+
*/
|
|
747
|
+
mcpServers?: Schema$McpServer[];
|
|
748
|
+
/**
|
|
749
|
+
* A token identifying a page of results the server should return.
|
|
750
|
+
*/
|
|
751
|
+
nextPageToken?: string | null;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Message for response to listing AiApplications.
|
|
755
|
+
*/
|
|
756
|
+
export interface Schema$ListAiApplicationsResponse {
|
|
757
|
+
/**
|
|
758
|
+
* The list of AiApplications.
|
|
759
|
+
*/
|
|
760
|
+
aiApplications?: Schema$AiApplication[];
|
|
761
|
+
/**
|
|
762
|
+
* A token identifying a page of results the server should return.
|
|
763
|
+
*/
|
|
764
|
+
nextPageToken?: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* Unordered list. Locations that could not be reached.
|
|
767
|
+
*/
|
|
768
|
+
unreachable?: string[] | null;
|
|
769
|
+
}
|
|
574
770
|
/**
|
|
575
771
|
* Message for response to listing Bindings
|
|
576
772
|
*/
|
|
@@ -771,7 +967,7 @@ export namespace agentregistry_v1alpha {
|
|
|
771
967
|
*/
|
|
772
968
|
content?: {[key: string]: any} | null;
|
|
773
969
|
/**
|
|
774
|
-
* Required. The type of the MCP Server spec content.
|
|
970
|
+
* Required. Immutable. The type of the MCP Server spec content.
|
|
775
971
|
*/
|
|
776
972
|
type?: string | null;
|
|
777
973
|
}
|
|
@@ -892,7 +1088,7 @@ export namespace agentregistry_v1alpha {
|
|
|
892
1088
|
*/
|
|
893
1089
|
pageToken?: string | null;
|
|
894
1090
|
/**
|
|
895
|
-
* 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`.
|
|
1091
|
+
* 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`.
|
|
896
1092
|
*/
|
|
897
1093
|
searchString?: string | null;
|
|
898
1094
|
}
|
|
@@ -2026,12 +2222,23 @@ export namespace agentregistry_v1alpha {
|
|
|
2026
2222
|
|
|
2027
2223
|
export class Resource$Projects$Locations$Aiapplications {
|
|
2028
2224
|
context: APIRequestContext;
|
|
2225
|
+
agents: Resource$Projects$Locations$Aiapplications$Agents;
|
|
2226
|
+
endpoints: Resource$Projects$Locations$Aiapplications$Endpoints;
|
|
2227
|
+
mcpServers: Resource$Projects$Locations$Aiapplications$Mcpservers;
|
|
2029
2228
|
constructor(context: APIRequestContext) {
|
|
2030
2229
|
this.context = context;
|
|
2230
|
+
this.agents = new Resource$Projects$Locations$Aiapplications$Agents(
|
|
2231
|
+
this.context
|
|
2232
|
+
);
|
|
2233
|
+
this.endpoints = new Resource$Projects$Locations$Aiapplications$Endpoints(
|
|
2234
|
+
this.context
|
|
2235
|
+
);
|
|
2236
|
+
this.mcpServers =
|
|
2237
|
+
new Resource$Projects$Locations$Aiapplications$Mcpservers(this.context);
|
|
2031
2238
|
}
|
|
2032
2239
|
|
|
2033
2240
|
/**
|
|
2034
|
-
* Gets
|
|
2241
|
+
* Gets details of a single AI Application.
|
|
2035
2242
|
* @example
|
|
2036
2243
|
* ```js
|
|
2037
2244
|
* // Before running the sample:
|
|
@@ -2065,22 +2272,23 @@ export namespace agentregistry_v1alpha {
|
|
|
2065
2272
|
* google.options({auth: authClient});
|
|
2066
2273
|
*
|
|
2067
2274
|
* // Do the magic
|
|
2068
|
-
* const res =
|
|
2069
|
-
*
|
|
2070
|
-
*
|
|
2071
|
-
*
|
|
2072
|
-
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
2073
|
-
* resource:
|
|
2074
|
-
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2075
|
-
* });
|
|
2275
|
+
* const res = await agentregistry.projects.locations.aiApplications.get({
|
|
2276
|
+
* // Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2277
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2278
|
+
* });
|
|
2076
2279
|
* console.log(res.data);
|
|
2077
2280
|
*
|
|
2078
2281
|
* // Example response
|
|
2079
2282
|
* // {
|
|
2080
|
-
* // "
|
|
2081
|
-
* // "
|
|
2082
|
-
* // "
|
|
2083
|
-
* // "
|
|
2283
|
+
* // "applicationProperties": {},
|
|
2284
|
+
* // "attributes": {},
|
|
2285
|
+
* // "createTime": "my_createTime",
|
|
2286
|
+
* // "description": "my_description",
|
|
2287
|
+
* // "displayName": "my_displayName",
|
|
2288
|
+
* // "name": "my_name",
|
|
2289
|
+
* // "state": "my_state",
|
|
2290
|
+
* // "uid": "my_uid",
|
|
2291
|
+
* // "updateTime": "my_updateTime"
|
|
2084
2292
|
* // }
|
|
2085
2293
|
* }
|
|
2086
2294
|
*
|
|
@@ -2096,56 +2304,53 @@ export namespace agentregistry_v1alpha {
|
|
|
2096
2304
|
* @param callback - Optional callback that handles the response.
|
|
2097
2305
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2098
2306
|
*/
|
|
2099
|
-
|
|
2100
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2307
|
+
get(
|
|
2308
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Get,
|
|
2101
2309
|
options: StreamMethodOptions
|
|
2102
2310
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2103
|
-
|
|
2104
|
-
params?: Params$Resource$Projects$Locations$Aiapplications$
|
|
2311
|
+
get(
|
|
2312
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Get,
|
|
2105
2313
|
options?: MethodOptions
|
|
2106
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
2107
|
-
|
|
2108
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2314
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$AiApplication>>;
|
|
2315
|
+
get(
|
|
2316
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Get,
|
|
2109
2317
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2110
2318
|
callback: BodyResponseCallback<Readable>
|
|
2111
2319
|
): void;
|
|
2112
|
-
|
|
2113
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2114
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2115
|
-
callback: BodyResponseCallback<Schema$
|
|
2116
|
-
): void;
|
|
2117
|
-
getIamPolicy(
|
|
2118
|
-
params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2119
|
-
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2320
|
+
get(
|
|
2321
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Get,
|
|
2322
|
+
options: MethodOptions | BodyResponseCallback<Schema$AiApplication>,
|
|
2323
|
+
callback: BodyResponseCallback<Schema$AiApplication>
|
|
2120
2324
|
): void;
|
|
2121
|
-
|
|
2122
|
-
|
|
2325
|
+
get(
|
|
2326
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Get,
|
|
2327
|
+
callback: BodyResponseCallback<Schema$AiApplication>
|
|
2123
2328
|
): void;
|
|
2124
|
-
|
|
2329
|
+
get(callback: BodyResponseCallback<Schema$AiApplication>): void;
|
|
2330
|
+
get(
|
|
2125
2331
|
paramsOrCallback?:
|
|
2126
|
-
| Params$Resource$Projects$Locations$Aiapplications$
|
|
2127
|
-
| BodyResponseCallback<Schema$
|
|
2332
|
+
| Params$Resource$Projects$Locations$Aiapplications$Get
|
|
2333
|
+
| BodyResponseCallback<Schema$AiApplication>
|
|
2128
2334
|
| BodyResponseCallback<Readable>,
|
|
2129
2335
|
optionsOrCallback?:
|
|
2130
2336
|
| MethodOptions
|
|
2131
2337
|
| StreamMethodOptions
|
|
2132
|
-
| BodyResponseCallback<Schema$
|
|
2338
|
+
| BodyResponseCallback<Schema$AiApplication>
|
|
2133
2339
|
| BodyResponseCallback<Readable>,
|
|
2134
2340
|
callback?:
|
|
2135
|
-
| BodyResponseCallback<Schema$
|
|
2341
|
+
| BodyResponseCallback<Schema$AiApplication>
|
|
2136
2342
|
| BodyResponseCallback<Readable>
|
|
2137
2343
|
):
|
|
2138
2344
|
| void
|
|
2139
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
2345
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$AiApplication>>
|
|
2140
2346
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2141
2347
|
let params = (paramsOrCallback ||
|
|
2142
|
-
{}) as Params$Resource$Projects$Locations$Aiapplications$
|
|
2348
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Get;
|
|
2143
2349
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2144
2350
|
|
|
2145
2351
|
if (typeof paramsOrCallback === 'function') {
|
|
2146
2352
|
callback = paramsOrCallback;
|
|
2147
|
-
params =
|
|
2148
|
-
{} as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
|
|
2353
|
+
params = {} as Params$Resource$Projects$Locations$Aiapplications$Get;
|
|
2149
2354
|
options = {};
|
|
2150
2355
|
}
|
|
2151
2356
|
|
|
@@ -2159,32 +2364,29 @@ export namespace agentregistry_v1alpha {
|
|
|
2159
2364
|
const parameters = {
|
|
2160
2365
|
options: Object.assign(
|
|
2161
2366
|
{
|
|
2162
|
-
url: (rootUrl + '/v1alpha/{+
|
|
2163
|
-
/([^:]\/)\/+/g,
|
|
2164
|
-
'$1'
|
|
2165
|
-
),
|
|
2367
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2166
2368
|
method: 'GET',
|
|
2167
2369
|
apiVersion: '',
|
|
2168
2370
|
},
|
|
2169
2371
|
options
|
|
2170
2372
|
),
|
|
2171
2373
|
params,
|
|
2172
|
-
requiredParams: ['
|
|
2173
|
-
pathParams: ['
|
|
2374
|
+
requiredParams: ['name'],
|
|
2375
|
+
pathParams: ['name'],
|
|
2174
2376
|
context: this.context,
|
|
2175
2377
|
};
|
|
2176
2378
|
if (callback) {
|
|
2177
|
-
createAPIRequest<Schema$
|
|
2379
|
+
createAPIRequest<Schema$AiApplication>(
|
|
2178
2380
|
parameters,
|
|
2179
2381
|
callback as BodyResponseCallback<unknown>
|
|
2180
2382
|
);
|
|
2181
2383
|
} else {
|
|
2182
|
-
return createAPIRequest<Schema$
|
|
2384
|
+
return createAPIRequest<Schema$AiApplication>(parameters);
|
|
2183
2385
|
}
|
|
2184
2386
|
}
|
|
2185
2387
|
|
|
2186
2388
|
/**
|
|
2187
|
-
*
|
|
2389
|
+
* Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
|
|
2188
2390
|
* @example
|
|
2189
2391
|
* ```js
|
|
2190
2392
|
* // Before running the sample:
|
|
@@ -2206,8 +2408,10 @@ export namespace agentregistry_v1alpha {
|
|
|
2206
2408
|
* const auth = new google.auth.GoogleAuth({
|
|
2207
2409
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2208
2410
|
* scopes: [
|
|
2411
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2209
2412
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2210
2413
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2414
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2211
2415
|
* ],
|
|
2212
2416
|
* });
|
|
2213
2417
|
*
|
|
@@ -2217,19 +2421,12 @@ export namespace agentregistry_v1alpha {
|
|
|
2217
2421
|
*
|
|
2218
2422
|
* // Do the magic
|
|
2219
2423
|
* const res =
|
|
2220
|
-
* await agentregistry.projects.locations.aiApplications.
|
|
2221
|
-
* //
|
|
2424
|
+
* await agentregistry.projects.locations.aiApplications.getIamPolicy({
|
|
2425
|
+
* // 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).
|
|
2426
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
2427
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
2222
2428
|
* resource:
|
|
2223
2429
|
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2224
|
-
*
|
|
2225
|
-
* // Request body metadata
|
|
2226
|
-
* requestBody: {
|
|
2227
|
-
* // request body parameters
|
|
2228
|
-
* // {
|
|
2229
|
-
* // "policy": {},
|
|
2230
|
-
* // "updateMask": "my_updateMask"
|
|
2231
|
-
* // }
|
|
2232
|
-
* },
|
|
2233
2430
|
* });
|
|
2234
2431
|
* console.log(res.data);
|
|
2235
2432
|
*
|
|
@@ -2254,34 +2451,34 @@ export namespace agentregistry_v1alpha {
|
|
|
2254
2451
|
* @param callback - Optional callback that handles the response.
|
|
2255
2452
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2256
2453
|
*/
|
|
2257
|
-
|
|
2258
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2454
|
+
getIamPolicy(
|
|
2455
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2259
2456
|
options: StreamMethodOptions
|
|
2260
2457
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2261
|
-
|
|
2262
|
-
params?: Params$Resource$Projects$Locations$Aiapplications$
|
|
2458
|
+
getIamPolicy(
|
|
2459
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2263
2460
|
options?: MethodOptions
|
|
2264
2461
|
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
2265
|
-
|
|
2266
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2462
|
+
getIamPolicy(
|
|
2463
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2267
2464
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2268
2465
|
callback: BodyResponseCallback<Readable>
|
|
2269
2466
|
): void;
|
|
2270
|
-
|
|
2271
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2467
|
+
getIamPolicy(
|
|
2468
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2272
2469
|
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
2273
2470
|
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2274
2471
|
): void;
|
|
2275
|
-
|
|
2276
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2472
|
+
getIamPolicy(
|
|
2473
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
|
|
2277
2474
|
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2278
2475
|
): void;
|
|
2279
|
-
|
|
2476
|
+
getIamPolicy(
|
|
2280
2477
|
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2281
2478
|
): void;
|
|
2282
|
-
|
|
2479
|
+
getIamPolicy(
|
|
2283
2480
|
paramsOrCallback?:
|
|
2284
|
-
| Params$Resource$Projects$Locations$Aiapplications$
|
|
2481
|
+
| Params$Resource$Projects$Locations$Aiapplications$Getiampolicy
|
|
2285
2482
|
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2286
2483
|
| BodyResponseCallback<Readable>,
|
|
2287
2484
|
optionsOrCallback?:
|
|
@@ -2297,13 +2494,13 @@ export namespace agentregistry_v1alpha {
|
|
|
2297
2494
|
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
2298
2495
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2299
2496
|
let params = (paramsOrCallback ||
|
|
2300
|
-
{}) as Params$Resource$Projects$Locations$Aiapplications$
|
|
2497
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
|
|
2301
2498
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2302
2499
|
|
|
2303
2500
|
if (typeof paramsOrCallback === 'function') {
|
|
2304
2501
|
callback = paramsOrCallback;
|
|
2305
2502
|
params =
|
|
2306
|
-
{} as Params$Resource$Projects$Locations$Aiapplications$
|
|
2503
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
|
|
2307
2504
|
options = {};
|
|
2308
2505
|
}
|
|
2309
2506
|
|
|
@@ -2317,11 +2514,11 @@ export namespace agentregistry_v1alpha {
|
|
|
2317
2514
|
const parameters = {
|
|
2318
2515
|
options: Object.assign(
|
|
2319
2516
|
{
|
|
2320
|
-
url: (rootUrl + '/v1alpha/{+resource}:
|
|
2517
|
+
url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(
|
|
2321
2518
|
/([^:]\/)\/+/g,
|
|
2322
2519
|
'$1'
|
|
2323
2520
|
),
|
|
2324
|
-
method: '
|
|
2521
|
+
method: 'GET',
|
|
2325
2522
|
apiVersion: '',
|
|
2326
2523
|
},
|
|
2327
2524
|
options
|
|
@@ -2342,7 +2539,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2342
2539
|
}
|
|
2343
2540
|
|
|
2344
2541
|
/**
|
|
2345
|
-
*
|
|
2542
|
+
* Lists AI Applications in a given project and location.
|
|
2346
2543
|
* @example
|
|
2347
2544
|
* ```js
|
|
2348
2545
|
* // Before running the sample:
|
|
@@ -2376,25 +2573,1245 @@ export namespace agentregistry_v1alpha {
|
|
|
2376
2573
|
* google.options({auth: authClient});
|
|
2377
2574
|
*
|
|
2378
2575
|
* // Do the magic
|
|
2379
|
-
* const res =
|
|
2380
|
-
*
|
|
2381
|
-
*
|
|
2382
|
-
*
|
|
2576
|
+
* const res = await agentregistry.projects.locations.aiApplications.list({
|
|
2577
|
+
* // Optional. Filtering results.
|
|
2578
|
+
* filter: 'placeholder-value',
|
|
2579
|
+
* // Optional. Hint for how to order the results.
|
|
2580
|
+
* orderBy: 'placeholder-value',
|
|
2581
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2582
|
+
* pageSize: 'placeholder-value',
|
|
2583
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
2584
|
+
* pageToken: 'placeholder-value',
|
|
2585
|
+
* // Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
|
|
2586
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2587
|
+
* });
|
|
2588
|
+
* console.log(res.data);
|
|
2589
|
+
*
|
|
2590
|
+
* // Example response
|
|
2591
|
+
* // {
|
|
2592
|
+
* // "aiApplications": [],
|
|
2593
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2594
|
+
* // "unreachable": []
|
|
2595
|
+
* // }
|
|
2596
|
+
* }
|
|
2597
|
+
*
|
|
2598
|
+
* main().catch(e => {
|
|
2599
|
+
* console.error(e);
|
|
2600
|
+
* throw e;
|
|
2601
|
+
* });
|
|
2602
|
+
*
|
|
2603
|
+
* ```
|
|
2604
|
+
*
|
|
2605
|
+
* @param params - Parameters for request
|
|
2606
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2607
|
+
* @param callback - Optional callback that handles the response.
|
|
2608
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2609
|
+
*/
|
|
2610
|
+
list(
|
|
2611
|
+
params: Params$Resource$Projects$Locations$Aiapplications$List,
|
|
2612
|
+
options: StreamMethodOptions
|
|
2613
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2614
|
+
list(
|
|
2615
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$List,
|
|
2616
|
+
options?: MethodOptions
|
|
2617
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationsResponse>>;
|
|
2618
|
+
list(
|
|
2619
|
+
params: Params$Resource$Projects$Locations$Aiapplications$List,
|
|
2620
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2621
|
+
callback: BodyResponseCallback<Readable>
|
|
2622
|
+
): void;
|
|
2623
|
+
list(
|
|
2624
|
+
params: Params$Resource$Projects$Locations$Aiapplications$List,
|
|
2625
|
+
options:
|
|
2626
|
+
MethodOptions | BodyResponseCallback<Schema$ListAiApplicationsResponse>,
|
|
2627
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2628
|
+
): void;
|
|
2629
|
+
list(
|
|
2630
|
+
params: Params$Resource$Projects$Locations$Aiapplications$List,
|
|
2631
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2632
|
+
): void;
|
|
2633
|
+
list(
|
|
2634
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2635
|
+
): void;
|
|
2636
|
+
list(
|
|
2637
|
+
paramsOrCallback?:
|
|
2638
|
+
| Params$Resource$Projects$Locations$Aiapplications$List
|
|
2639
|
+
| BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2640
|
+
| BodyResponseCallback<Readable>,
|
|
2641
|
+
optionsOrCallback?:
|
|
2642
|
+
| MethodOptions
|
|
2643
|
+
| StreamMethodOptions
|
|
2644
|
+
| BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2645
|
+
| BodyResponseCallback<Readable>,
|
|
2646
|
+
callback?:
|
|
2647
|
+
| BodyResponseCallback<Schema$ListAiApplicationsResponse>
|
|
2648
|
+
| BodyResponseCallback<Readable>
|
|
2649
|
+
):
|
|
2650
|
+
| void
|
|
2651
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationsResponse>>
|
|
2652
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2653
|
+
let params = (paramsOrCallback ||
|
|
2654
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$List;
|
|
2655
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2656
|
+
|
|
2657
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2658
|
+
callback = paramsOrCallback;
|
|
2659
|
+
params = {} as Params$Resource$Projects$Locations$Aiapplications$List;
|
|
2660
|
+
options = {};
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2664
|
+
callback = optionsOrCallback;
|
|
2665
|
+
options = {};
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
const rootUrl =
|
|
2669
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
2670
|
+
const parameters = {
|
|
2671
|
+
options: Object.assign(
|
|
2672
|
+
{
|
|
2673
|
+
url: (rootUrl + '/v1alpha/{+parent}/aiApplications').replace(
|
|
2674
|
+
/([^:]\/)\/+/g,
|
|
2675
|
+
'$1'
|
|
2676
|
+
),
|
|
2677
|
+
method: 'GET',
|
|
2678
|
+
apiVersion: '',
|
|
2679
|
+
},
|
|
2680
|
+
options
|
|
2681
|
+
),
|
|
2682
|
+
params,
|
|
2683
|
+
requiredParams: ['parent'],
|
|
2684
|
+
pathParams: ['parent'],
|
|
2685
|
+
context: this.context,
|
|
2686
|
+
};
|
|
2687
|
+
if (callback) {
|
|
2688
|
+
createAPIRequest<Schema$ListAiApplicationsResponse>(
|
|
2689
|
+
parameters,
|
|
2690
|
+
callback as BodyResponseCallback<unknown>
|
|
2691
|
+
);
|
|
2692
|
+
} else {
|
|
2693
|
+
return createAPIRequest<Schema$ListAiApplicationsResponse>(parameters);
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
|
2699
|
+
* @example
|
|
2700
|
+
* ```js
|
|
2701
|
+
* // Before running the sample:
|
|
2702
|
+
* // - Enable the API at:
|
|
2703
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2704
|
+
* // - Login into gcloud by running:
|
|
2705
|
+
* // ```sh
|
|
2706
|
+
* // $ gcloud auth application-default login
|
|
2707
|
+
* // ```
|
|
2708
|
+
* // - Install the npm module by running:
|
|
2709
|
+
* // ```sh
|
|
2710
|
+
* // $ npm install googleapis
|
|
2711
|
+
* // ```
|
|
2712
|
+
*
|
|
2713
|
+
* const {google} = require('googleapis');
|
|
2714
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
2715
|
+
*
|
|
2716
|
+
* async function main() {
|
|
2717
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2718
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2719
|
+
* scopes: [
|
|
2720
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2721
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2722
|
+
* ],
|
|
2723
|
+
* });
|
|
2724
|
+
*
|
|
2725
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2726
|
+
* const authClient = await auth.getClient();
|
|
2727
|
+
* google.options({auth: authClient});
|
|
2728
|
+
*
|
|
2729
|
+
* // Do the magic
|
|
2730
|
+
* const res =
|
|
2731
|
+
* await agentregistry.projects.locations.aiApplications.setIamPolicy({
|
|
2732
|
+
* // 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.
|
|
2733
|
+
* resource:
|
|
2734
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2735
|
+
*
|
|
2736
|
+
* // Request body metadata
|
|
2737
|
+
* requestBody: {
|
|
2738
|
+
* // request body parameters
|
|
2739
|
+
* // {
|
|
2740
|
+
* // "policy": {},
|
|
2741
|
+
* // "updateMask": "my_updateMask"
|
|
2742
|
+
* // }
|
|
2743
|
+
* },
|
|
2744
|
+
* });
|
|
2745
|
+
* console.log(res.data);
|
|
2746
|
+
*
|
|
2747
|
+
* // Example response
|
|
2748
|
+
* // {
|
|
2749
|
+
* // "auditConfigs": [],
|
|
2750
|
+
* // "bindings": [],
|
|
2751
|
+
* // "etag": "my_etag",
|
|
2752
|
+
* // "version": 0
|
|
2753
|
+
* // }
|
|
2754
|
+
* }
|
|
2755
|
+
*
|
|
2756
|
+
* main().catch(e => {
|
|
2757
|
+
* console.error(e);
|
|
2758
|
+
* throw e;
|
|
2759
|
+
* });
|
|
2760
|
+
*
|
|
2761
|
+
* ```
|
|
2762
|
+
*
|
|
2763
|
+
* @param params - Parameters for request
|
|
2764
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2765
|
+
* @param callback - Optional callback that handles the response.
|
|
2766
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2767
|
+
*/
|
|
2768
|
+
setIamPolicy(
|
|
2769
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
|
|
2770
|
+
options: StreamMethodOptions
|
|
2771
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2772
|
+
setIamPolicy(
|
|
2773
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
|
|
2774
|
+
options?: MethodOptions
|
|
2775
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
2776
|
+
setIamPolicy(
|
|
2777
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
|
|
2778
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2779
|
+
callback: BodyResponseCallback<Readable>
|
|
2780
|
+
): void;
|
|
2781
|
+
setIamPolicy(
|
|
2782
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
|
|
2783
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
2784
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2785
|
+
): void;
|
|
2786
|
+
setIamPolicy(
|
|
2787
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
|
|
2788
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2789
|
+
): void;
|
|
2790
|
+
setIamPolicy(
|
|
2791
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2792
|
+
): void;
|
|
2793
|
+
setIamPolicy(
|
|
2794
|
+
paramsOrCallback?:
|
|
2795
|
+
| Params$Resource$Projects$Locations$Aiapplications$Setiampolicy
|
|
2796
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2797
|
+
| BodyResponseCallback<Readable>,
|
|
2798
|
+
optionsOrCallback?:
|
|
2799
|
+
| MethodOptions
|
|
2800
|
+
| StreamMethodOptions
|
|
2801
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2802
|
+
| BodyResponseCallback<Readable>,
|
|
2803
|
+
callback?:
|
|
2804
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
2805
|
+
| BodyResponseCallback<Readable>
|
|
2806
|
+
):
|
|
2807
|
+
| void
|
|
2808
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
2809
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2810
|
+
let params = (paramsOrCallback ||
|
|
2811
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
|
|
2812
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2813
|
+
|
|
2814
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2815
|
+
callback = paramsOrCallback;
|
|
2816
|
+
params =
|
|
2817
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
|
|
2818
|
+
options = {};
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2822
|
+
callback = optionsOrCallback;
|
|
2823
|
+
options = {};
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
const rootUrl =
|
|
2827
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
2828
|
+
const parameters = {
|
|
2829
|
+
options: Object.assign(
|
|
2830
|
+
{
|
|
2831
|
+
url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(
|
|
2832
|
+
/([^:]\/)\/+/g,
|
|
2833
|
+
'$1'
|
|
2834
|
+
),
|
|
2835
|
+
method: 'POST',
|
|
2836
|
+
apiVersion: '',
|
|
2837
|
+
},
|
|
2838
|
+
options
|
|
2839
|
+
),
|
|
2840
|
+
params,
|
|
2841
|
+
requiredParams: ['resource'],
|
|
2842
|
+
pathParams: ['resource'],
|
|
2843
|
+
context: this.context,
|
|
2844
|
+
};
|
|
2845
|
+
if (callback) {
|
|
2846
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
2847
|
+
parameters,
|
|
2848
|
+
callback as BodyResponseCallback<unknown>
|
|
2849
|
+
);
|
|
2850
|
+
} else {
|
|
2851
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
2857
|
+
* @example
|
|
2858
|
+
* ```js
|
|
2859
|
+
* // Before running the sample:
|
|
2860
|
+
* // - Enable the API at:
|
|
2861
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
2862
|
+
* // - Login into gcloud by running:
|
|
2863
|
+
* // ```sh
|
|
2864
|
+
* // $ gcloud auth application-default login
|
|
2865
|
+
* // ```
|
|
2866
|
+
* // - Install the npm module by running:
|
|
2867
|
+
* // ```sh
|
|
2868
|
+
* // $ npm install googleapis
|
|
2869
|
+
* // ```
|
|
2870
|
+
*
|
|
2871
|
+
* const {google} = require('googleapis');
|
|
2872
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
2873
|
+
*
|
|
2874
|
+
* async function main() {
|
|
2875
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2876
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2877
|
+
* scopes: [
|
|
2878
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2879
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2880
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2881
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2882
|
+
* ],
|
|
2883
|
+
* });
|
|
2884
|
+
*
|
|
2885
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2886
|
+
* const authClient = await auth.getClient();
|
|
2887
|
+
* google.options({auth: authClient});
|
|
2888
|
+
*
|
|
2889
|
+
* // Do the magic
|
|
2890
|
+
* const res =
|
|
2891
|
+
* await agentregistry.projects.locations.aiApplications.testIamPermissions({
|
|
2892
|
+
* // 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.
|
|
2893
|
+
* resource:
|
|
2894
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
2895
|
+
*
|
|
2896
|
+
* // Request body metadata
|
|
2897
|
+
* requestBody: {
|
|
2898
|
+
* // request body parameters
|
|
2899
|
+
* // {
|
|
2900
|
+
* // "permissions": []
|
|
2901
|
+
* // }
|
|
2902
|
+
* },
|
|
2903
|
+
* });
|
|
2904
|
+
* console.log(res.data);
|
|
2905
|
+
*
|
|
2906
|
+
* // Example response
|
|
2907
|
+
* // {
|
|
2908
|
+
* // "permissions": []
|
|
2909
|
+
* // }
|
|
2910
|
+
* }
|
|
2911
|
+
*
|
|
2912
|
+
* main().catch(e => {
|
|
2913
|
+
* console.error(e);
|
|
2914
|
+
* throw e;
|
|
2915
|
+
* });
|
|
2916
|
+
*
|
|
2917
|
+
* ```
|
|
2918
|
+
*
|
|
2919
|
+
* @param params - Parameters for request
|
|
2920
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2921
|
+
* @param callback - Optional callback that handles the response.
|
|
2922
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2923
|
+
*/
|
|
2924
|
+
testIamPermissions(
|
|
2925
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
|
|
2926
|
+
options: StreamMethodOptions
|
|
2927
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2928
|
+
testIamPermissions(
|
|
2929
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
|
|
2930
|
+
options?: MethodOptions
|
|
2931
|
+
): Promise<
|
|
2932
|
+
GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2933
|
+
>;
|
|
2934
|
+
testIamPermissions(
|
|
2935
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
|
|
2936
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2937
|
+
callback: BodyResponseCallback<Readable>
|
|
2938
|
+
): void;
|
|
2939
|
+
testIamPermissions(
|
|
2940
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
|
|
2941
|
+
options:
|
|
2942
|
+
| MethodOptions
|
|
2943
|
+
| BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
|
|
2944
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2945
|
+
): void;
|
|
2946
|
+
testIamPermissions(
|
|
2947
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
|
|
2948
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2949
|
+
): void;
|
|
2950
|
+
testIamPermissions(
|
|
2951
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2952
|
+
): void;
|
|
2953
|
+
testIamPermissions(
|
|
2954
|
+
paramsOrCallback?:
|
|
2955
|
+
| Params$Resource$Projects$Locations$Aiapplications$Testiampermissions
|
|
2956
|
+
| BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2957
|
+
| BodyResponseCallback<Readable>,
|
|
2958
|
+
optionsOrCallback?:
|
|
2959
|
+
| MethodOptions
|
|
2960
|
+
| StreamMethodOptions
|
|
2961
|
+
| BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2962
|
+
| BodyResponseCallback<Readable>,
|
|
2963
|
+
callback?:
|
|
2964
|
+
| BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2965
|
+
| BodyResponseCallback<Readable>
|
|
2966
|
+
):
|
|
2967
|
+
| void
|
|
2968
|
+
| Promise<
|
|
2969
|
+
GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
|
|
2970
|
+
>
|
|
2971
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2972
|
+
let params = (paramsOrCallback ||
|
|
2973
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
|
|
2974
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2975
|
+
|
|
2976
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2977
|
+
callback = paramsOrCallback;
|
|
2978
|
+
params =
|
|
2979
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
|
|
2980
|
+
options = {};
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2984
|
+
callback = optionsOrCallback;
|
|
2985
|
+
options = {};
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
const rootUrl =
|
|
2989
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
2990
|
+
const parameters = {
|
|
2991
|
+
options: Object.assign(
|
|
2992
|
+
{
|
|
2993
|
+
url: (rootUrl + '/v1alpha/{+resource}:testIamPermissions').replace(
|
|
2994
|
+
/([^:]\/)\/+/g,
|
|
2995
|
+
'$1'
|
|
2996
|
+
),
|
|
2997
|
+
method: 'POST',
|
|
2998
|
+
apiVersion: '',
|
|
2999
|
+
},
|
|
3000
|
+
options
|
|
3001
|
+
),
|
|
3002
|
+
params,
|
|
3003
|
+
requiredParams: ['resource'],
|
|
3004
|
+
pathParams: ['resource'],
|
|
3005
|
+
context: this.context,
|
|
3006
|
+
};
|
|
3007
|
+
if (callback) {
|
|
3008
|
+
createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
|
|
3009
|
+
parameters,
|
|
3010
|
+
callback as BodyResponseCallback<unknown>
|
|
3011
|
+
);
|
|
3012
|
+
} else {
|
|
3013
|
+
return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
|
|
3014
|
+
parameters
|
|
3015
|
+
);
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
|
|
3020
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Get extends StandardParameters {
|
|
3021
|
+
/**
|
|
3022
|
+
* Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3023
|
+
*/
|
|
3024
|
+
name?: string;
|
|
3025
|
+
}
|
|
3026
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Getiampolicy extends StandardParameters {
|
|
3027
|
+
/**
|
|
3028
|
+
* 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).
|
|
3029
|
+
*/
|
|
3030
|
+
'options.requestedPolicyVersion'?: number;
|
|
3031
|
+
/**
|
|
3032
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
3033
|
+
*/
|
|
3034
|
+
resource?: string;
|
|
3035
|
+
}
|
|
3036
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$List extends StandardParameters {
|
|
3037
|
+
/**
|
|
3038
|
+
* Optional. Filtering results.
|
|
3039
|
+
*/
|
|
3040
|
+
filter?: string;
|
|
3041
|
+
/**
|
|
3042
|
+
* Optional. Hint for how to order the results.
|
|
3043
|
+
*/
|
|
3044
|
+
orderBy?: string;
|
|
3045
|
+
/**
|
|
3046
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3047
|
+
*/
|
|
3048
|
+
pageSize?: number;
|
|
3049
|
+
/**
|
|
3050
|
+
* Optional. A token identifying a page of results the server should return.
|
|
3051
|
+
*/
|
|
3052
|
+
pageToken?: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
|
|
3055
|
+
*/
|
|
3056
|
+
parent?: string;
|
|
3057
|
+
}
|
|
3058
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Setiampolicy extends StandardParameters {
|
|
3059
|
+
/**
|
|
3060
|
+
* 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.
|
|
3061
|
+
*/
|
|
3062
|
+
resource?: string;
|
|
3063
|
+
|
|
3064
|
+
/**
|
|
3065
|
+
* Request body metadata
|
|
3066
|
+
*/
|
|
3067
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
3068
|
+
}
|
|
3069
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
|
|
3070
|
+
/**
|
|
3071
|
+
* 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.
|
|
3072
|
+
*/
|
|
3073
|
+
resource?: string;
|
|
3074
|
+
|
|
3075
|
+
/**
|
|
3076
|
+
* Request body metadata
|
|
3077
|
+
*/
|
|
3078
|
+
requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
export class Resource$Projects$Locations$Aiapplications$Agents {
|
|
3082
|
+
context: APIRequestContext;
|
|
3083
|
+
constructor(context: APIRequestContext) {
|
|
3084
|
+
this.context = context;
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Gets details of a single Agent under an AI Application.
|
|
3089
|
+
* @example
|
|
3090
|
+
* ```js
|
|
3091
|
+
* // Before running the sample:
|
|
3092
|
+
* // - Enable the API at:
|
|
3093
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3094
|
+
* // - Login into gcloud by running:
|
|
3095
|
+
* // ```sh
|
|
3096
|
+
* // $ gcloud auth application-default login
|
|
3097
|
+
* // ```
|
|
3098
|
+
* // - Install the npm module by running:
|
|
3099
|
+
* // ```sh
|
|
3100
|
+
* // $ npm install googleapis
|
|
3101
|
+
* // ```
|
|
3102
|
+
*
|
|
3103
|
+
* const {google} = require('googleapis');
|
|
3104
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3105
|
+
*
|
|
3106
|
+
* async function main() {
|
|
3107
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3108
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3109
|
+
* scopes: [
|
|
3110
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3111
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3112
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3113
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3114
|
+
* ],
|
|
3115
|
+
* });
|
|
3116
|
+
*
|
|
3117
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3118
|
+
* const authClient = await auth.getClient();
|
|
3119
|
+
* google.options({auth: authClient});
|
|
3120
|
+
*
|
|
3121
|
+
* // Do the magic
|
|
3122
|
+
* const res = await agentregistry.projects.locations.aiApplications.agents.get({
|
|
3123
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
|
|
3124
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/agents/my-agent',
|
|
3125
|
+
* });
|
|
3126
|
+
* console.log(res.data);
|
|
3127
|
+
*
|
|
3128
|
+
* // Example response
|
|
3129
|
+
* // {
|
|
3130
|
+
* // "agentId": "my_agentId",
|
|
3131
|
+
* // "attributes": {},
|
|
3132
|
+
* // "card": {},
|
|
3133
|
+
* // "createTime": "my_createTime",
|
|
3134
|
+
* // "description": "my_description",
|
|
3135
|
+
* // "displayName": "my_displayName",
|
|
3136
|
+
* // "location": "my_location",
|
|
3137
|
+
* // "name": "my_name",
|
|
3138
|
+
* // "protocols": [],
|
|
3139
|
+
* // "skills": [],
|
|
3140
|
+
* // "uid": "my_uid",
|
|
3141
|
+
* // "updateTime": "my_updateTime",
|
|
3142
|
+
* // "version": "my_version"
|
|
3143
|
+
* // }
|
|
3144
|
+
* }
|
|
3145
|
+
*
|
|
3146
|
+
* main().catch(e => {
|
|
3147
|
+
* console.error(e);
|
|
3148
|
+
* throw e;
|
|
3149
|
+
* });
|
|
3150
|
+
*
|
|
3151
|
+
* ```
|
|
3152
|
+
*
|
|
3153
|
+
* @param params - Parameters for request
|
|
3154
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3155
|
+
* @param callback - Optional callback that handles the response.
|
|
3156
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3157
|
+
*/
|
|
3158
|
+
get(
|
|
3159
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
|
|
3160
|
+
options: StreamMethodOptions
|
|
3161
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3162
|
+
get(
|
|
3163
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
|
|
3164
|
+
options?: MethodOptions
|
|
3165
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Agent>>;
|
|
3166
|
+
get(
|
|
3167
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
|
|
3168
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3169
|
+
callback: BodyResponseCallback<Readable>
|
|
3170
|
+
): void;
|
|
3171
|
+
get(
|
|
3172
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
|
|
3173
|
+
options: MethodOptions | BodyResponseCallback<Schema$Agent>,
|
|
3174
|
+
callback: BodyResponseCallback<Schema$Agent>
|
|
3175
|
+
): void;
|
|
3176
|
+
get(
|
|
3177
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
|
|
3178
|
+
callback: BodyResponseCallback<Schema$Agent>
|
|
3179
|
+
): void;
|
|
3180
|
+
get(callback: BodyResponseCallback<Schema$Agent>): void;
|
|
3181
|
+
get(
|
|
3182
|
+
paramsOrCallback?:
|
|
3183
|
+
| Params$Resource$Projects$Locations$Aiapplications$Agents$Get
|
|
3184
|
+
| BodyResponseCallback<Schema$Agent>
|
|
3185
|
+
| BodyResponseCallback<Readable>,
|
|
3186
|
+
optionsOrCallback?:
|
|
3187
|
+
| MethodOptions
|
|
3188
|
+
| StreamMethodOptions
|
|
3189
|
+
| BodyResponseCallback<Schema$Agent>
|
|
3190
|
+
| BodyResponseCallback<Readable>,
|
|
3191
|
+
callback?:
|
|
3192
|
+
BodyResponseCallback<Schema$Agent> | BodyResponseCallback<Readable>
|
|
3193
|
+
):
|
|
3194
|
+
| void
|
|
3195
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Agent>>
|
|
3196
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3197
|
+
let params = (paramsOrCallback ||
|
|
3198
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Agents$Get;
|
|
3199
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3200
|
+
|
|
3201
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3202
|
+
callback = paramsOrCallback;
|
|
3203
|
+
params =
|
|
3204
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Agents$Get;
|
|
3205
|
+
options = {};
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3209
|
+
callback = optionsOrCallback;
|
|
3210
|
+
options = {};
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
const rootUrl =
|
|
3214
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
3215
|
+
const parameters = {
|
|
3216
|
+
options: Object.assign(
|
|
3217
|
+
{
|
|
3218
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3219
|
+
method: 'GET',
|
|
3220
|
+
apiVersion: '',
|
|
3221
|
+
},
|
|
3222
|
+
options
|
|
3223
|
+
),
|
|
3224
|
+
params,
|
|
3225
|
+
requiredParams: ['name'],
|
|
3226
|
+
pathParams: ['name'],
|
|
3227
|
+
context: this.context,
|
|
3228
|
+
};
|
|
3229
|
+
if (callback) {
|
|
3230
|
+
createAPIRequest<Schema$Agent>(
|
|
3231
|
+
parameters,
|
|
3232
|
+
callback as BodyResponseCallback<unknown>
|
|
3233
|
+
);
|
|
3234
|
+
} else {
|
|
3235
|
+
return createAPIRequest<Schema$Agent>(parameters);
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* Lists Agents under an AI Application.
|
|
3241
|
+
* @example
|
|
3242
|
+
* ```js
|
|
3243
|
+
* // Before running the sample:
|
|
3244
|
+
* // - Enable the API at:
|
|
3245
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3246
|
+
* // - Login into gcloud by running:
|
|
3247
|
+
* // ```sh
|
|
3248
|
+
* // $ gcloud auth application-default login
|
|
3249
|
+
* // ```
|
|
3250
|
+
* // - Install the npm module by running:
|
|
3251
|
+
* // ```sh
|
|
3252
|
+
* // $ npm install googleapis
|
|
3253
|
+
* // ```
|
|
3254
|
+
*
|
|
3255
|
+
* const {google} = require('googleapis');
|
|
3256
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3257
|
+
*
|
|
3258
|
+
* async function main() {
|
|
3259
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3260
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3261
|
+
* scopes: [
|
|
3262
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3263
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3264
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3265
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3266
|
+
* ],
|
|
3267
|
+
* });
|
|
3268
|
+
*
|
|
3269
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3270
|
+
* const authClient = await auth.getClient();
|
|
3271
|
+
* google.options({auth: authClient});
|
|
3272
|
+
*
|
|
3273
|
+
* // Do the magic
|
|
3274
|
+
* const res = await agentregistry.projects.locations.aiApplications.agents.list(
|
|
3275
|
+
* {
|
|
3276
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3277
|
+
* pageSize: 'placeholder-value',
|
|
3278
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
3279
|
+
* pageToken: 'placeholder-value',
|
|
3280
|
+
* // Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3281
|
+
* parent:
|
|
3282
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
3283
|
+
* },
|
|
3284
|
+
* );
|
|
3285
|
+
* console.log(res.data);
|
|
3286
|
+
*
|
|
3287
|
+
* // Example response
|
|
3288
|
+
* // {
|
|
3289
|
+
* // "agents": [],
|
|
3290
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
3291
|
+
* // }
|
|
3292
|
+
* }
|
|
3293
|
+
*
|
|
3294
|
+
* main().catch(e => {
|
|
3295
|
+
* console.error(e);
|
|
3296
|
+
* throw e;
|
|
3297
|
+
* });
|
|
3298
|
+
*
|
|
3299
|
+
* ```
|
|
3300
|
+
*
|
|
3301
|
+
* @param params - Parameters for request
|
|
3302
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3303
|
+
* @param callback - Optional callback that handles the response.
|
|
3304
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3305
|
+
*/
|
|
3306
|
+
list(
|
|
3307
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
|
|
3308
|
+
options: StreamMethodOptions
|
|
3309
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3310
|
+
list(
|
|
3311
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
|
|
3312
|
+
options?: MethodOptions
|
|
3313
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationAgentsResponse>>;
|
|
3314
|
+
list(
|
|
3315
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
|
|
3316
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3317
|
+
callback: BodyResponseCallback<Readable>
|
|
3318
|
+
): void;
|
|
3319
|
+
list(
|
|
3320
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
|
|
3321
|
+
options:
|
|
3322
|
+
| MethodOptions
|
|
3323
|
+
| BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>,
|
|
3324
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3325
|
+
): void;
|
|
3326
|
+
list(
|
|
3327
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
|
|
3328
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3329
|
+
): void;
|
|
3330
|
+
list(
|
|
3331
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3332
|
+
): void;
|
|
3333
|
+
list(
|
|
3334
|
+
paramsOrCallback?:
|
|
3335
|
+
| Params$Resource$Projects$Locations$Aiapplications$Agents$List
|
|
3336
|
+
| BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3337
|
+
| BodyResponseCallback<Readable>,
|
|
3338
|
+
optionsOrCallback?:
|
|
3339
|
+
| MethodOptions
|
|
3340
|
+
| StreamMethodOptions
|
|
3341
|
+
| BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3342
|
+
| BodyResponseCallback<Readable>,
|
|
3343
|
+
callback?:
|
|
3344
|
+
| BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
|
|
3345
|
+
| BodyResponseCallback<Readable>
|
|
3346
|
+
):
|
|
3347
|
+
| void
|
|
3348
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationAgentsResponse>>
|
|
3349
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3350
|
+
let params = (paramsOrCallback ||
|
|
3351
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Agents$List;
|
|
3352
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3353
|
+
|
|
3354
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3355
|
+
callback = paramsOrCallback;
|
|
3356
|
+
params =
|
|
3357
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Agents$List;
|
|
3358
|
+
options = {};
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3362
|
+
callback = optionsOrCallback;
|
|
3363
|
+
options = {};
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
const rootUrl =
|
|
3367
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
3368
|
+
const parameters = {
|
|
3369
|
+
options: Object.assign(
|
|
3370
|
+
{
|
|
3371
|
+
url: (rootUrl + '/v1alpha/{+parent}/agents').replace(
|
|
3372
|
+
/([^:]\/)\/+/g,
|
|
3373
|
+
'$1'
|
|
3374
|
+
),
|
|
3375
|
+
method: 'GET',
|
|
3376
|
+
apiVersion: '',
|
|
3377
|
+
},
|
|
3378
|
+
options
|
|
3379
|
+
),
|
|
3380
|
+
params,
|
|
3381
|
+
requiredParams: ['parent'],
|
|
3382
|
+
pathParams: ['parent'],
|
|
3383
|
+
context: this.context,
|
|
3384
|
+
};
|
|
3385
|
+
if (callback) {
|
|
3386
|
+
createAPIRequest<Schema$ListAiApplicationAgentsResponse>(
|
|
3387
|
+
parameters,
|
|
3388
|
+
callback as BodyResponseCallback<unknown>
|
|
3389
|
+
);
|
|
3390
|
+
} else {
|
|
3391
|
+
return createAPIRequest<Schema$ListAiApplicationAgentsResponse>(
|
|
3392
|
+
parameters
|
|
3393
|
+
);
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Agents$Get extends StandardParameters {
|
|
3399
|
+
/**
|
|
3400
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
|
|
3401
|
+
*/
|
|
3402
|
+
name?: string;
|
|
3403
|
+
}
|
|
3404
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Agents$List extends StandardParameters {
|
|
3405
|
+
/**
|
|
3406
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3407
|
+
*/
|
|
3408
|
+
pageSize?: number;
|
|
3409
|
+
/**
|
|
3410
|
+
* Optional. A token identifying a page of results the server should return.
|
|
3411
|
+
*/
|
|
3412
|
+
pageToken?: string;
|
|
3413
|
+
/**
|
|
3414
|
+
* Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3415
|
+
*/
|
|
3416
|
+
parent?: string;
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
export class Resource$Projects$Locations$Aiapplications$Endpoints {
|
|
3420
|
+
context: APIRequestContext;
|
|
3421
|
+
constructor(context: APIRequestContext) {
|
|
3422
|
+
this.context = context;
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
/**
|
|
3426
|
+
* Gets details of a single Endpoint under an AI Application.
|
|
3427
|
+
* @example
|
|
3428
|
+
* ```js
|
|
3429
|
+
* // Before running the sample:
|
|
3430
|
+
* // - Enable the API at:
|
|
3431
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3432
|
+
* // - Login into gcloud by running:
|
|
3433
|
+
* // ```sh
|
|
3434
|
+
* // $ gcloud auth application-default login
|
|
3435
|
+
* // ```
|
|
3436
|
+
* // - Install the npm module by running:
|
|
3437
|
+
* // ```sh
|
|
3438
|
+
* // $ npm install googleapis
|
|
3439
|
+
* // ```
|
|
3440
|
+
*
|
|
3441
|
+
* const {google} = require('googleapis');
|
|
3442
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3443
|
+
*
|
|
3444
|
+
* async function main() {
|
|
3445
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3446
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3447
|
+
* scopes: [
|
|
3448
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3449
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3450
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3451
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3452
|
+
* ],
|
|
3453
|
+
* });
|
|
3454
|
+
*
|
|
3455
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3456
|
+
* const authClient = await auth.getClient();
|
|
3457
|
+
* google.options({auth: authClient});
|
|
3458
|
+
*
|
|
3459
|
+
* // Do the magic
|
|
3460
|
+
* const res =
|
|
3461
|
+
* await agentregistry.projects.locations.aiApplications.endpoints.get({
|
|
3462
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
|
|
3463
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/endpoints/my-endpoint',
|
|
3464
|
+
* });
|
|
3465
|
+
* console.log(res.data);
|
|
3466
|
+
*
|
|
3467
|
+
* // Example response
|
|
3468
|
+
* // {
|
|
3469
|
+
* // "attributes": {},
|
|
3470
|
+
* // "createTime": "my_createTime",
|
|
3471
|
+
* // "description": "my_description",
|
|
3472
|
+
* // "displayName": "my_displayName",
|
|
3473
|
+
* // "endpointId": "my_endpointId",
|
|
3474
|
+
* // "interfaces": [],
|
|
3475
|
+
* // "name": "my_name",
|
|
3476
|
+
* // "updateTime": "my_updateTime"
|
|
3477
|
+
* // }
|
|
3478
|
+
* }
|
|
3479
|
+
*
|
|
3480
|
+
* main().catch(e => {
|
|
3481
|
+
* console.error(e);
|
|
3482
|
+
* throw e;
|
|
3483
|
+
* });
|
|
3484
|
+
*
|
|
3485
|
+
* ```
|
|
3486
|
+
*
|
|
3487
|
+
* @param params - Parameters for request
|
|
3488
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3489
|
+
* @param callback - Optional callback that handles the response.
|
|
3490
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3491
|
+
*/
|
|
3492
|
+
get(
|
|
3493
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
|
|
3494
|
+
options: StreamMethodOptions
|
|
3495
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3496
|
+
get(
|
|
3497
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
|
|
3498
|
+
options?: MethodOptions
|
|
3499
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>;
|
|
3500
|
+
get(
|
|
3501
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
|
|
3502
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3503
|
+
callback: BodyResponseCallback<Readable>
|
|
3504
|
+
): void;
|
|
3505
|
+
get(
|
|
3506
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
|
|
3507
|
+
options: MethodOptions | BodyResponseCallback<Schema$Endpoint>,
|
|
3508
|
+
callback: BodyResponseCallback<Schema$Endpoint>
|
|
3509
|
+
): void;
|
|
3510
|
+
get(
|
|
3511
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
|
|
3512
|
+
callback: BodyResponseCallback<Schema$Endpoint>
|
|
3513
|
+
): void;
|
|
3514
|
+
get(callback: BodyResponseCallback<Schema$Endpoint>): void;
|
|
3515
|
+
get(
|
|
3516
|
+
paramsOrCallback?:
|
|
3517
|
+
| Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get
|
|
3518
|
+
| BodyResponseCallback<Schema$Endpoint>
|
|
3519
|
+
| BodyResponseCallback<Readable>,
|
|
3520
|
+
optionsOrCallback?:
|
|
3521
|
+
| MethodOptions
|
|
3522
|
+
| StreamMethodOptions
|
|
3523
|
+
| BodyResponseCallback<Schema$Endpoint>
|
|
3524
|
+
| BodyResponseCallback<Readable>,
|
|
3525
|
+
callback?:
|
|
3526
|
+
BodyResponseCallback<Schema$Endpoint> | BodyResponseCallback<Readable>
|
|
3527
|
+
):
|
|
3528
|
+
| void
|
|
3529
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>
|
|
3530
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3531
|
+
let params = (paramsOrCallback ||
|
|
3532
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get;
|
|
3533
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3534
|
+
|
|
3535
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3536
|
+
callback = paramsOrCallback;
|
|
3537
|
+
params =
|
|
3538
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get;
|
|
3539
|
+
options = {};
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3543
|
+
callback = optionsOrCallback;
|
|
3544
|
+
options = {};
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
const rootUrl =
|
|
3548
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
3549
|
+
const parameters = {
|
|
3550
|
+
options: Object.assign(
|
|
3551
|
+
{
|
|
3552
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3553
|
+
method: 'GET',
|
|
3554
|
+
apiVersion: '',
|
|
3555
|
+
},
|
|
3556
|
+
options
|
|
3557
|
+
),
|
|
3558
|
+
params,
|
|
3559
|
+
requiredParams: ['name'],
|
|
3560
|
+
pathParams: ['name'],
|
|
3561
|
+
context: this.context,
|
|
3562
|
+
};
|
|
3563
|
+
if (callback) {
|
|
3564
|
+
createAPIRequest<Schema$Endpoint>(
|
|
3565
|
+
parameters,
|
|
3566
|
+
callback as BodyResponseCallback<unknown>
|
|
3567
|
+
);
|
|
3568
|
+
} else {
|
|
3569
|
+
return createAPIRequest<Schema$Endpoint>(parameters);
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* Lists Endpoints under an AI Application.
|
|
3575
|
+
* @example
|
|
3576
|
+
* ```js
|
|
3577
|
+
* // Before running the sample:
|
|
3578
|
+
* // - Enable the API at:
|
|
3579
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3580
|
+
* // - Login into gcloud by running:
|
|
3581
|
+
* // ```sh
|
|
3582
|
+
* // $ gcloud auth application-default login
|
|
3583
|
+
* // ```
|
|
3584
|
+
* // - Install the npm module by running:
|
|
3585
|
+
* // ```sh
|
|
3586
|
+
* // $ npm install googleapis
|
|
3587
|
+
* // ```
|
|
3588
|
+
*
|
|
3589
|
+
* const {google} = require('googleapis');
|
|
3590
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3591
|
+
*
|
|
3592
|
+
* async function main() {
|
|
3593
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3594
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3595
|
+
* scopes: [
|
|
3596
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3597
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3598
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3599
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3600
|
+
* ],
|
|
3601
|
+
* });
|
|
3602
|
+
*
|
|
3603
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3604
|
+
* const authClient = await auth.getClient();
|
|
3605
|
+
* google.options({auth: authClient});
|
|
3606
|
+
*
|
|
3607
|
+
* // Do the magic
|
|
3608
|
+
* const res =
|
|
3609
|
+
* await agentregistry.projects.locations.aiApplications.endpoints.list({
|
|
3610
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3611
|
+
* pageSize: 'placeholder-value',
|
|
3612
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
3613
|
+
* pageToken: 'placeholder-value',
|
|
3614
|
+
* // Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3615
|
+
* parent:
|
|
2383
3616
|
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
3617
|
+
* });
|
|
3618
|
+
* console.log(res.data);
|
|
3619
|
+
*
|
|
3620
|
+
* // Example response
|
|
3621
|
+
* // {
|
|
3622
|
+
* // "endpoints": [],
|
|
3623
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
3624
|
+
* // }
|
|
3625
|
+
* }
|
|
3626
|
+
*
|
|
3627
|
+
* main().catch(e => {
|
|
3628
|
+
* console.error(e);
|
|
3629
|
+
* throw e;
|
|
3630
|
+
* });
|
|
3631
|
+
*
|
|
3632
|
+
* ```
|
|
3633
|
+
*
|
|
3634
|
+
* @param params - Parameters for request
|
|
3635
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3636
|
+
* @param callback - Optional callback that handles the response.
|
|
3637
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3638
|
+
*/
|
|
3639
|
+
list(
|
|
3640
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
|
|
3641
|
+
options: StreamMethodOptions
|
|
3642
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3643
|
+
list(
|
|
3644
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
|
|
3645
|
+
options?: MethodOptions
|
|
3646
|
+
): Promise<
|
|
3647
|
+
GaxiosResponseWithHTTP2<Schema$ListAiApplicationEndpointsResponse>
|
|
3648
|
+
>;
|
|
3649
|
+
list(
|
|
3650
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
|
|
3651
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3652
|
+
callback: BodyResponseCallback<Readable>
|
|
3653
|
+
): void;
|
|
3654
|
+
list(
|
|
3655
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
|
|
3656
|
+
options:
|
|
3657
|
+
| MethodOptions
|
|
3658
|
+
| BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>,
|
|
3659
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3660
|
+
): void;
|
|
3661
|
+
list(
|
|
3662
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
|
|
3663
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3664
|
+
): void;
|
|
3665
|
+
list(
|
|
3666
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3667
|
+
): void;
|
|
3668
|
+
list(
|
|
3669
|
+
paramsOrCallback?:
|
|
3670
|
+
| Params$Resource$Projects$Locations$Aiapplications$Endpoints$List
|
|
3671
|
+
| BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3672
|
+
| BodyResponseCallback<Readable>,
|
|
3673
|
+
optionsOrCallback?:
|
|
3674
|
+
| MethodOptions
|
|
3675
|
+
| StreamMethodOptions
|
|
3676
|
+
| BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3677
|
+
| BodyResponseCallback<Readable>,
|
|
3678
|
+
callback?:
|
|
3679
|
+
| BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
|
|
3680
|
+
| BodyResponseCallback<Readable>
|
|
3681
|
+
):
|
|
3682
|
+
| void
|
|
3683
|
+
| Promise<
|
|
3684
|
+
GaxiosResponseWithHTTP2<Schema$ListAiApplicationEndpointsResponse>
|
|
3685
|
+
>
|
|
3686
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3687
|
+
let params = (paramsOrCallback ||
|
|
3688
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Endpoints$List;
|
|
3689
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3690
|
+
|
|
3691
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3692
|
+
callback = paramsOrCallback;
|
|
3693
|
+
params =
|
|
3694
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Endpoints$List;
|
|
3695
|
+
options = {};
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3699
|
+
callback = optionsOrCallback;
|
|
3700
|
+
options = {};
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3703
|
+
const rootUrl =
|
|
3704
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
3705
|
+
const parameters = {
|
|
3706
|
+
options: Object.assign(
|
|
3707
|
+
{
|
|
3708
|
+
url: (rootUrl + '/v1alpha/{+parent}/endpoints').replace(
|
|
3709
|
+
/([^:]\/)\/+/g,
|
|
3710
|
+
'$1'
|
|
3711
|
+
),
|
|
3712
|
+
method: 'GET',
|
|
3713
|
+
apiVersion: '',
|
|
3714
|
+
},
|
|
3715
|
+
options
|
|
3716
|
+
),
|
|
3717
|
+
params,
|
|
3718
|
+
requiredParams: ['parent'],
|
|
3719
|
+
pathParams: ['parent'],
|
|
3720
|
+
context: this.context,
|
|
3721
|
+
};
|
|
3722
|
+
if (callback) {
|
|
3723
|
+
createAPIRequest<Schema$ListAiApplicationEndpointsResponse>(
|
|
3724
|
+
parameters,
|
|
3725
|
+
callback as BodyResponseCallback<unknown>
|
|
3726
|
+
);
|
|
3727
|
+
} else {
|
|
3728
|
+
return createAPIRequest<Schema$ListAiApplicationEndpointsResponse>(
|
|
3729
|
+
parameters
|
|
3730
|
+
);
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get extends StandardParameters {
|
|
3736
|
+
/**
|
|
3737
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
|
|
3738
|
+
*/
|
|
3739
|
+
name?: string;
|
|
3740
|
+
}
|
|
3741
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$List extends StandardParameters {
|
|
3742
|
+
/**
|
|
3743
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3744
|
+
*/
|
|
3745
|
+
pageSize?: number;
|
|
3746
|
+
/**
|
|
3747
|
+
* Optional. A token identifying a page of results the server should return.
|
|
3748
|
+
*/
|
|
3749
|
+
pageToken?: string;
|
|
3750
|
+
/**
|
|
3751
|
+
* Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3752
|
+
*/
|
|
3753
|
+
parent?: string;
|
|
3754
|
+
}
|
|
3755
|
+
|
|
3756
|
+
export class Resource$Projects$Locations$Aiapplications$Mcpservers {
|
|
3757
|
+
context: APIRequestContext;
|
|
3758
|
+
constructor(context: APIRequestContext) {
|
|
3759
|
+
this.context = context;
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
/**
|
|
3763
|
+
* Gets details of a single McpServer under an AI Application.
|
|
3764
|
+
* @example
|
|
3765
|
+
* ```js
|
|
3766
|
+
* // Before running the sample:
|
|
3767
|
+
* // - Enable the API at:
|
|
3768
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3769
|
+
* // - Login into gcloud by running:
|
|
3770
|
+
* // ```sh
|
|
3771
|
+
* // $ gcloud auth application-default login
|
|
3772
|
+
* // ```
|
|
3773
|
+
* // - Install the npm module by running:
|
|
3774
|
+
* // ```sh
|
|
3775
|
+
* // $ npm install googleapis
|
|
3776
|
+
* // ```
|
|
2384
3777
|
*
|
|
2385
|
-
*
|
|
2386
|
-
*
|
|
2387
|
-
*
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2390
|
-
*
|
|
2391
|
-
*
|
|
3778
|
+
* const {google} = require('googleapis');
|
|
3779
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3780
|
+
*
|
|
3781
|
+
* async function main() {
|
|
3782
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3783
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3784
|
+
* scopes: [
|
|
3785
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3786
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3787
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3788
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3789
|
+
* ],
|
|
3790
|
+
* });
|
|
3791
|
+
*
|
|
3792
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3793
|
+
* const authClient = await auth.getClient();
|
|
3794
|
+
* google.options({auth: authClient});
|
|
3795
|
+
*
|
|
3796
|
+
* // Do the magic
|
|
3797
|
+
* const res =
|
|
3798
|
+
* await agentregistry.projects.locations.aiApplications.mcpServers.get({
|
|
3799
|
+
* // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
|
|
3800
|
+
* name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/mcpServers/my-mcpServer',
|
|
2392
3801
|
* });
|
|
2393
3802
|
* console.log(res.data);
|
|
2394
3803
|
*
|
|
2395
3804
|
* // Example response
|
|
2396
3805
|
* // {
|
|
2397
|
-
* // "
|
|
3806
|
+
* // "attributes": {},
|
|
3807
|
+
* // "createTime": "my_createTime",
|
|
3808
|
+
* // "description": "my_description",
|
|
3809
|
+
* // "displayName": "my_displayName",
|
|
3810
|
+
* // "interfaces": [],
|
|
3811
|
+
* // "mcpServerId": "my_mcpServerId",
|
|
3812
|
+
* // "name": "my_name",
|
|
3813
|
+
* // "tools": [],
|
|
3814
|
+
* // "updateTime": "my_updateTime"
|
|
2398
3815
|
* // }
|
|
2399
3816
|
* }
|
|
2400
3817
|
*
|
|
@@ -2410,62 +3827,209 @@ export namespace agentregistry_v1alpha {
|
|
|
2410
3827
|
* @param callback - Optional callback that handles the response.
|
|
2411
3828
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2412
3829
|
*/
|
|
2413
|
-
|
|
2414
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
3830
|
+
get(
|
|
3831
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
|
|
2415
3832
|
options: StreamMethodOptions
|
|
2416
3833
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2417
|
-
|
|
2418
|
-
params?: Params$Resource$Projects$Locations$Aiapplications$
|
|
3834
|
+
get(
|
|
3835
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
|
|
3836
|
+
options?: MethodOptions
|
|
3837
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>;
|
|
3838
|
+
get(
|
|
3839
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
|
|
3840
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3841
|
+
callback: BodyResponseCallback<Readable>
|
|
3842
|
+
): void;
|
|
3843
|
+
get(
|
|
3844
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
|
|
3845
|
+
options: MethodOptions | BodyResponseCallback<Schema$McpServer>,
|
|
3846
|
+
callback: BodyResponseCallback<Schema$McpServer>
|
|
3847
|
+
): void;
|
|
3848
|
+
get(
|
|
3849
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
|
|
3850
|
+
callback: BodyResponseCallback<Schema$McpServer>
|
|
3851
|
+
): void;
|
|
3852
|
+
get(callback: BodyResponseCallback<Schema$McpServer>): void;
|
|
3853
|
+
get(
|
|
3854
|
+
paramsOrCallback?:
|
|
3855
|
+
| Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get
|
|
3856
|
+
| BodyResponseCallback<Schema$McpServer>
|
|
3857
|
+
| BodyResponseCallback<Readable>,
|
|
3858
|
+
optionsOrCallback?:
|
|
3859
|
+
| MethodOptions
|
|
3860
|
+
| StreamMethodOptions
|
|
3861
|
+
| BodyResponseCallback<Schema$McpServer>
|
|
3862
|
+
| BodyResponseCallback<Readable>,
|
|
3863
|
+
callback?:
|
|
3864
|
+
BodyResponseCallback<Schema$McpServer> | BodyResponseCallback<Readable>
|
|
3865
|
+
):
|
|
3866
|
+
| void
|
|
3867
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>
|
|
3868
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3869
|
+
let params = (paramsOrCallback ||
|
|
3870
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get;
|
|
3871
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3872
|
+
|
|
3873
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3874
|
+
callback = paramsOrCallback;
|
|
3875
|
+
params =
|
|
3876
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get;
|
|
3877
|
+
options = {};
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3881
|
+
callback = optionsOrCallback;
|
|
3882
|
+
options = {};
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
const rootUrl =
|
|
3886
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
3887
|
+
const parameters = {
|
|
3888
|
+
options: Object.assign(
|
|
3889
|
+
{
|
|
3890
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3891
|
+
method: 'GET',
|
|
3892
|
+
apiVersion: '',
|
|
3893
|
+
},
|
|
3894
|
+
options
|
|
3895
|
+
),
|
|
3896
|
+
params,
|
|
3897
|
+
requiredParams: ['name'],
|
|
3898
|
+
pathParams: ['name'],
|
|
3899
|
+
context: this.context,
|
|
3900
|
+
};
|
|
3901
|
+
if (callback) {
|
|
3902
|
+
createAPIRequest<Schema$McpServer>(
|
|
3903
|
+
parameters,
|
|
3904
|
+
callback as BodyResponseCallback<unknown>
|
|
3905
|
+
);
|
|
3906
|
+
} else {
|
|
3907
|
+
return createAPIRequest<Schema$McpServer>(parameters);
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* Lists McpServers under an AI Application.
|
|
3913
|
+
* @example
|
|
3914
|
+
* ```js
|
|
3915
|
+
* // Before running the sample:
|
|
3916
|
+
* // - Enable the API at:
|
|
3917
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3918
|
+
* // - Login into gcloud by running:
|
|
3919
|
+
* // ```sh
|
|
3920
|
+
* // $ gcloud auth application-default login
|
|
3921
|
+
* // ```
|
|
3922
|
+
* // - Install the npm module by running:
|
|
3923
|
+
* // ```sh
|
|
3924
|
+
* // $ npm install googleapis
|
|
3925
|
+
* // ```
|
|
3926
|
+
*
|
|
3927
|
+
* const {google} = require('googleapis');
|
|
3928
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3929
|
+
*
|
|
3930
|
+
* async function main() {
|
|
3931
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3932
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3933
|
+
* scopes: [
|
|
3934
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3935
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3936
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3937
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3938
|
+
* ],
|
|
3939
|
+
* });
|
|
3940
|
+
*
|
|
3941
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3942
|
+
* const authClient = await auth.getClient();
|
|
3943
|
+
* google.options({auth: authClient});
|
|
3944
|
+
*
|
|
3945
|
+
* // Do the magic
|
|
3946
|
+
* const res =
|
|
3947
|
+
* await agentregistry.projects.locations.aiApplications.mcpServers.list({
|
|
3948
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3949
|
+
* pageSize: 'placeholder-value',
|
|
3950
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
3951
|
+
* pageToken: 'placeholder-value',
|
|
3952
|
+
* // Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
3953
|
+
* parent:
|
|
3954
|
+
* 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
|
|
3955
|
+
* });
|
|
3956
|
+
* console.log(res.data);
|
|
3957
|
+
*
|
|
3958
|
+
* // Example response
|
|
3959
|
+
* // {
|
|
3960
|
+
* // "mcpServers": [],
|
|
3961
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
3962
|
+
* // }
|
|
3963
|
+
* }
|
|
3964
|
+
*
|
|
3965
|
+
* main().catch(e => {
|
|
3966
|
+
* console.error(e);
|
|
3967
|
+
* throw e;
|
|
3968
|
+
* });
|
|
3969
|
+
*
|
|
3970
|
+
* ```
|
|
3971
|
+
*
|
|
3972
|
+
* @param params - Parameters for request
|
|
3973
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3974
|
+
* @param callback - Optional callback that handles the response.
|
|
3975
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3976
|
+
*/
|
|
3977
|
+
list(
|
|
3978
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
|
|
3979
|
+
options: StreamMethodOptions
|
|
3980
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3981
|
+
list(
|
|
3982
|
+
params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
|
|
2419
3983
|
options?: MethodOptions
|
|
2420
3984
|
): Promise<
|
|
2421
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
3985
|
+
GaxiosResponseWithHTTP2<Schema$ListAiApplicationMcpServersResponse>
|
|
2422
3986
|
>;
|
|
2423
|
-
|
|
2424
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
3987
|
+
list(
|
|
3988
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
|
|
2425
3989
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2426
3990
|
callback: BodyResponseCallback<Readable>
|
|
2427
3991
|
): void;
|
|
2428
|
-
|
|
2429
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
3992
|
+
list(
|
|
3993
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
|
|
2430
3994
|
options:
|
|
2431
3995
|
| MethodOptions
|
|
2432
|
-
| BodyResponseCallback<Schema$
|
|
2433
|
-
callback: BodyResponseCallback<Schema$
|
|
3996
|
+
| BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>,
|
|
3997
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2434
3998
|
): void;
|
|
2435
|
-
|
|
2436
|
-
params: Params$Resource$Projects$Locations$Aiapplications$
|
|
2437
|
-
callback: BodyResponseCallback<Schema$
|
|
3999
|
+
list(
|
|
4000
|
+
params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
|
|
4001
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2438
4002
|
): void;
|
|
2439
|
-
|
|
2440
|
-
callback: BodyResponseCallback<Schema$
|
|
4003
|
+
list(
|
|
4004
|
+
callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2441
4005
|
): void;
|
|
2442
|
-
|
|
4006
|
+
list(
|
|
2443
4007
|
paramsOrCallback?:
|
|
2444
|
-
| Params$Resource$Projects$Locations$Aiapplications$
|
|
2445
|
-
| BodyResponseCallback<Schema$
|
|
4008
|
+
| Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List
|
|
4009
|
+
| BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2446
4010
|
| BodyResponseCallback<Readable>,
|
|
2447
4011
|
optionsOrCallback?:
|
|
2448
4012
|
| MethodOptions
|
|
2449
4013
|
| StreamMethodOptions
|
|
2450
|
-
| BodyResponseCallback<Schema$
|
|
4014
|
+
| BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2451
4015
|
| BodyResponseCallback<Readable>,
|
|
2452
4016
|
callback?:
|
|
2453
|
-
| BodyResponseCallback<Schema$
|
|
4017
|
+
| BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
|
|
2454
4018
|
| BodyResponseCallback<Readable>
|
|
2455
4019
|
):
|
|
2456
4020
|
| void
|
|
2457
4021
|
| Promise<
|
|
2458
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
4022
|
+
GaxiosResponseWithHTTP2<Schema$ListAiApplicationMcpServersResponse>
|
|
2459
4023
|
>
|
|
2460
4024
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2461
4025
|
let params = (paramsOrCallback ||
|
|
2462
|
-
{}) as Params$Resource$Projects$Locations$Aiapplications$
|
|
4026
|
+
{}) as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List;
|
|
2463
4027
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2464
4028
|
|
|
2465
4029
|
if (typeof paramsOrCallback === 'function') {
|
|
2466
4030
|
callback = paramsOrCallback;
|
|
2467
4031
|
params =
|
|
2468
|
-
{} as Params$Resource$Projects$Locations$Aiapplications$
|
|
4032
|
+
{} as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List;
|
|
2469
4033
|
options = {};
|
|
2470
4034
|
}
|
|
2471
4035
|
|
|
@@ -2479,64 +4043,52 @@ export namespace agentregistry_v1alpha {
|
|
|
2479
4043
|
const parameters = {
|
|
2480
4044
|
options: Object.assign(
|
|
2481
4045
|
{
|
|
2482
|
-
url: (rootUrl + '/v1alpha/{+
|
|
4046
|
+
url: (rootUrl + '/v1alpha/{+parent}/mcpServers').replace(
|
|
2483
4047
|
/([^:]\/)\/+/g,
|
|
2484
4048
|
'$1'
|
|
2485
4049
|
),
|
|
2486
|
-
method: '
|
|
4050
|
+
method: 'GET',
|
|
2487
4051
|
apiVersion: '',
|
|
2488
4052
|
},
|
|
2489
4053
|
options
|
|
2490
4054
|
),
|
|
2491
4055
|
params,
|
|
2492
|
-
requiredParams: ['
|
|
2493
|
-
pathParams: ['
|
|
4056
|
+
requiredParams: ['parent'],
|
|
4057
|
+
pathParams: ['parent'],
|
|
2494
4058
|
context: this.context,
|
|
2495
4059
|
};
|
|
2496
4060
|
if (callback) {
|
|
2497
|
-
createAPIRequest<Schema$
|
|
4061
|
+
createAPIRequest<Schema$ListAiApplicationMcpServersResponse>(
|
|
2498
4062
|
parameters,
|
|
2499
4063
|
callback as BodyResponseCallback<unknown>
|
|
2500
4064
|
);
|
|
2501
4065
|
} else {
|
|
2502
|
-
return createAPIRequest<Schema$
|
|
4066
|
+
return createAPIRequest<Schema$ListAiApplicationMcpServersResponse>(
|
|
2503
4067
|
parameters
|
|
2504
4068
|
);
|
|
2505
4069
|
}
|
|
2506
4070
|
}
|
|
2507
4071
|
}
|
|
2508
4072
|
|
|
2509
|
-
export interface Params$Resource$Projects$Locations$Aiapplications$
|
|
2510
|
-
/**
|
|
2511
|
-
* 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).
|
|
2512
|
-
*/
|
|
2513
|
-
'options.requestedPolicyVersion'?: number;
|
|
4073
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get extends StandardParameters {
|
|
2514
4074
|
/**
|
|
2515
|
-
*
|
|
4075
|
+
* Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
|
|
2516
4076
|
*/
|
|
2517
|
-
|
|
4077
|
+
name?: string;
|
|
2518
4078
|
}
|
|
2519
|
-
export interface Params$Resource$Projects$Locations$Aiapplications$
|
|
2520
|
-
/**
|
|
2521
|
-
* 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.
|
|
2522
|
-
*/
|
|
2523
|
-
resource?: string;
|
|
2524
|
-
|
|
4079
|
+
export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List extends StandardParameters {
|
|
2525
4080
|
/**
|
|
2526
|
-
*
|
|
4081
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
2527
4082
|
*/
|
|
2528
|
-
|
|
2529
|
-
}
|
|
2530
|
-
export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
|
|
4083
|
+
pageSize?: number;
|
|
2531
4084
|
/**
|
|
2532
|
-
*
|
|
4085
|
+
* Optional. A token identifying a page of results the server should return.
|
|
2533
4086
|
*/
|
|
2534
|
-
|
|
2535
|
-
|
|
4087
|
+
pageToken?: string;
|
|
2536
4088
|
/**
|
|
2537
|
-
*
|
|
4089
|
+
* Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
|
|
2538
4090
|
*/
|
|
2539
|
-
|
|
4091
|
+
parent?: string;
|
|
2540
4092
|
}
|
|
2541
4093
|
|
|
2542
4094
|
export class Resource$Projects$Locations$Bindings {
|