@googleapis/agentregistry 1.0.0 → 2.0.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/build/v1.d.ts ADDED
@@ -0,0 +1,3027 @@
1
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { Readable } from 'stream';
3
+ export declare namespace agentregistry_v1 {
4
+ export interface Options extends GlobalOptions {
5
+ version: 'v1';
6
+ }
7
+ interface StandardParameters {
8
+ /**
9
+ * Auth client or API Key for the request
10
+ */
11
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
12
+ /**
13
+ * V1 error format.
14
+ */
15
+ '$.xgafv'?: string;
16
+ /**
17
+ * OAuth access token.
18
+ */
19
+ access_token?: string;
20
+ /**
21
+ * Data format for response.
22
+ */
23
+ alt?: string;
24
+ /**
25
+ * JSONP
26
+ */
27
+ callback?: string;
28
+ /**
29
+ * Selector specifying which fields to include in a partial response.
30
+ */
31
+ fields?: string;
32
+ /**
33
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
34
+ */
35
+ key?: string;
36
+ /**
37
+ * OAuth 2.0 token for the current user.
38
+ */
39
+ oauth_token?: string;
40
+ /**
41
+ * Returns response with indentations and line breaks.
42
+ */
43
+ prettyPrint?: boolean;
44
+ /**
45
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ */
47
+ quotaUser?: string;
48
+ /**
49
+ * Legacy upload protocol for media (e.g. "media", "multipart").
50
+ */
51
+ uploadType?: string;
52
+ /**
53
+ * Upload protocol for media (e.g. "raw", "multipart").
54
+ */
55
+ upload_protocol?: string;
56
+ }
57
+ /**
58
+ * Agent Registry API
59
+ *
60
+ * Agent Registry is a centralized, unified catalog that lets you store, discover, and govern Model Context Protocol (MCP) servers, tools, and AI agents within Google Cloud.
61
+ *
62
+ * @example
63
+ * ```js
64
+ * const {google} = require('googleapis');
65
+ * const agentregistry = google.agentregistry('v1');
66
+ * ```
67
+ */
68
+ export class Agentregistry {
69
+ context: APIRequestContext;
70
+ projects: Resource$Projects;
71
+ constructor(options: GlobalOptions, google?: GoogleConfigurable);
72
+ }
73
+ /**
74
+ * Represents the skills of an Agent.
75
+ */
76
+ export interface Schema$A2ASkill {
77
+ /**
78
+ * Output only. A more detailed description of the skill.
79
+ */
80
+ description?: string | null;
81
+ /**
82
+ * Output only. Example prompts or scenarios this skill can handle.
83
+ */
84
+ examples?: string[] | null;
85
+ /**
86
+ * Output only. A unique identifier for the agent's skill.
87
+ */
88
+ id?: string | null;
89
+ /**
90
+ * Output only. A human-readable name for the agent's skill.
91
+ */
92
+ name?: string | null;
93
+ /**
94
+ * Output only. Keywords describing the skill.
95
+ */
96
+ tags?: string[] | null;
97
+ }
98
+ /**
99
+ * Represents an Agent. "A2A" below refers to the Agent-to-Agent protocol.
100
+ */
101
+ export interface Schema$Agent {
102
+ /**
103
+ * Output only. A stable, globally unique identifier for agents.
104
+ */
105
+ agentId?: string | null;
106
+ /**
107
+ * Output only. Attributes of the Agent. Valid values: * `agentregistry.googleapis.com/system/Framework`: {"framework": "google-adk"\} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom". * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": "principal://..."\} - the runtime identity associated with the Agent. * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."\} - the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.
108
+ */
109
+ attributes?: {
110
+ [key: string]: {
111
+ [key: string]: any;
112
+ };
113
+ } | null;
114
+ /**
115
+ * Output only. Full Agent Card payload, when available.
116
+ */
117
+ card?: Schema$Card;
118
+ /**
119
+ * Output only. Create time.
120
+ */
121
+ createTime?: string | null;
122
+ /**
123
+ * Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.
124
+ */
125
+ description?: string | null;
126
+ /**
127
+ * Output only. The display name of the agent, often obtained from the A2A Agent Card.
128
+ */
129
+ displayName?: string | null;
130
+ /**
131
+ * Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).
132
+ */
133
+ location?: string | null;
134
+ /**
135
+ * Identifier. The resource name of an Agent. Format: `projects/{project\}/locations/{location\}/agents/{agent\}`.
136
+ */
137
+ name?: string | null;
138
+ /**
139
+ * Output only. The connection details for the Agent.
140
+ */
141
+ protocols?: Schema$Protocol[];
142
+ /**
143
+ * Output only. Skills the agent possesses, often obtained from the A2A Agent Card.
144
+ */
145
+ skills?: Schema$A2ASkill[];
146
+ /**
147
+ * Output only. A universally unique identifier for the Agent.
148
+ */
149
+ uid?: string | null;
150
+ /**
151
+ * Output only. Update time.
152
+ */
153
+ updateTime?: string | null;
154
+ /**
155
+ * Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.
156
+ */
157
+ version?: string | null;
158
+ }
159
+ /**
160
+ * The spec of the agent.
161
+ */
162
+ export interface Schema$AgentSpec {
163
+ /**
164
+ * Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
165
+ */
166
+ content?: {
167
+ [key: string]: any;
168
+ } | null;
169
+ /**
170
+ * Required. The type of the agent spec content.
171
+ */
172
+ type?: string | null;
173
+ }
174
+ /**
175
+ * Annotations describing the characteristics and behavior of a tool or operation.
176
+ */
177
+ export interface Schema$Annotations {
178
+ /**
179
+ * Output only. If true, the tool may perform destructive updates to its environment. If false, the tool performs only additive updates. NOTE: This property is meaningful only when `read_only_hint == false` Default: true
180
+ */
181
+ destructiveHint?: boolean | null;
182
+ /**
183
+ * Output only. If true, calling the tool repeatedly with the same arguments will have no additional effect on its environment. NOTE: This property is meaningful only when `read_only_hint == false` Default: false
184
+ */
185
+ idempotentHint?: boolean | null;
186
+ /**
187
+ * Output only. If true, this tool may interact with an "open world" of external entities. If false, the tool's domain of interaction is closed. For example, the world of a web search tool is open, whereas that of a memory tool is not. Default: true
188
+ */
189
+ openWorldHint?: boolean | null;
190
+ /**
191
+ * Output only. If true, the tool does not modify its environment. Default: false
192
+ */
193
+ readOnlyHint?: boolean | null;
194
+ /**
195
+ * Output only. A human-readable title for the tool.
196
+ */
197
+ title?: string | null;
198
+ }
199
+ /**
200
+ * The AuthProvider of the Binding.
201
+ */
202
+ export interface Schema$AuthProviderBinding {
203
+ /**
204
+ * Required. The resource name of the target AuthProvider. Format: * `projects/{project\}/locations/{location\}/authProviders/{auth_provider\}`
205
+ */
206
+ authProvider?: string | null;
207
+ /**
208
+ * Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow.
209
+ */
210
+ continueUri?: string | null;
211
+ /**
212
+ * Optional. The list of OAuth2 scopes of the AuthProvider.
213
+ */
214
+ scopes?: string[] | null;
215
+ }
216
+ /**
217
+ * Represents a user-defined Binding.
218
+ */
219
+ export interface Schema$Binding {
220
+ /**
221
+ * The binding for AuthProvider.
222
+ */
223
+ authProviderBinding?: Schema$AuthProviderBinding;
224
+ /**
225
+ * Output only. Timestamp when this binding was created.
226
+ */
227
+ createTime?: string | null;
228
+ /**
229
+ * Optional. User-defined description of a Binding. Can have a maximum length of `2048` characters.
230
+ */
231
+ description?: string | null;
232
+ /**
233
+ * Optional. User-defined display name for the Binding. Can have a maximum length of `63` characters.
234
+ */
235
+ displayName?: string | null;
236
+ /**
237
+ * Required. Identifier. The resource name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
238
+ */
239
+ name?: string | null;
240
+ /**
241
+ * Required. The target Agent of the Binding.
242
+ */
243
+ source?: Schema$Source;
244
+ /**
245
+ * Required. The target Agent Registry Resource of the Binding.
246
+ */
247
+ target?: Schema$Target;
248
+ /**
249
+ * Output only. Timestamp when this binding was last updated.
250
+ */
251
+ updateTime?: string | null;
252
+ }
253
+ /**
254
+ * The request message for Operations.CancelOperation.
255
+ */
256
+ export interface Schema$CancelOperationRequest {
257
+ }
258
+ /**
259
+ * Full Agent Card payload, often obtained from the A2A Agent Card.
260
+ */
261
+ export interface Schema$Card {
262
+ /**
263
+ * Output only. The content of the agent card.
264
+ */
265
+ content?: {
266
+ [key: string]: any;
267
+ } | null;
268
+ /**
269
+ * Output only. The type of agent card.
270
+ */
271
+ type?: string | null;
272
+ }
273
+ /**
274
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
275
+ */
276
+ export interface Schema$Empty {
277
+ }
278
+ /**
279
+ * Represents an Endpoint.
280
+ */
281
+ export interface Schema$Endpoint {
282
+ /**
283
+ * Output only. Attributes of the Endpoint. Valid values: * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."\} - the URI of the underlying resource hosting the Endpoint, for example, the GKE Deployment.
284
+ */
285
+ attributes?: {
286
+ [key: string]: {
287
+ [key: string]: any;
288
+ };
289
+ } | null;
290
+ /**
291
+ * Output only. Create time.
292
+ */
293
+ createTime?: string | null;
294
+ /**
295
+ * Output only. Description of an Endpoint.
296
+ */
297
+ description?: string | null;
298
+ /**
299
+ * Output only. Display name for the Endpoint.
300
+ */
301
+ displayName?: string | null;
302
+ /**
303
+ * Output only. A stable, globally unique identifier for Endpoint.
304
+ */
305
+ endpointId?: string | null;
306
+ /**
307
+ * Required. The connection details for the Endpoint.
308
+ */
309
+ interfaces?: Schema$Interface[];
310
+ /**
311
+ * Identifier. The resource name of the Endpoint. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}`.
312
+ */
313
+ name?: string | null;
314
+ /**
315
+ * Output only. Update time.
316
+ */
317
+ updateTime?: string | null;
318
+ }
319
+ /**
320
+ * The spec of the endpoint.
321
+ */
322
+ export interface Schema$EndpointSpec {
323
+ /**
324
+ * Optional. The content of the endpoint spec. Reserved for future use.
325
+ */
326
+ content?: {
327
+ [key: string]: any;
328
+ } | null;
329
+ /**
330
+ * Required. The type of the endpoint spec content.
331
+ */
332
+ type?: string | null;
333
+ }
334
+ /**
335
+ * Message for response to fetching available Bindings.
336
+ */
337
+ export interface Schema$FetchAvailableBindingsResponse {
338
+ /**
339
+ * The list of Bindings.
340
+ */
341
+ bindings?: Schema$Binding[];
342
+ /**
343
+ * A token identifying a page of results the server should return.
344
+ */
345
+ nextPageToken?: string | null;
346
+ }
347
+ /**
348
+ * Represents the connection details for an Agent or MCP Server.
349
+ */
350
+ export interface Schema$Interface {
351
+ /**
352
+ * Required. The protocol binding of the interface.
353
+ */
354
+ protocolBinding?: string | null;
355
+ /**
356
+ * Required. The destination URL.
357
+ */
358
+ url?: string | null;
359
+ }
360
+ /**
361
+ * Message for response to listing Agents
362
+ */
363
+ export interface Schema$ListAgentsResponse {
364
+ /**
365
+ * The list of Agents.
366
+ */
367
+ agents?: Schema$Agent[];
368
+ /**
369
+ * A token identifying a page of results the server should return.
370
+ */
371
+ nextPageToken?: string | null;
372
+ }
373
+ /**
374
+ * Message for response to listing Bindings
375
+ */
376
+ export interface Schema$ListBindingsResponse {
377
+ /**
378
+ * The list of Binding resources matching the parent and filter criteria in the request. Each Binding resource follows the format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
379
+ */
380
+ bindings?: Schema$Binding[];
381
+ /**
382
+ * A token identifying a page of results the server should return. Used in page_token.
383
+ */
384
+ nextPageToken?: string | null;
385
+ }
386
+ /**
387
+ * Message for response to listing Endpoints
388
+ */
389
+ export interface Schema$ListEndpointsResponse {
390
+ /**
391
+ * The list of Endpoint resources matching the parent and filter criteria in the request. Each Endpoint resource follows the format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}`.
392
+ */
393
+ endpoints?: Schema$Endpoint[];
394
+ /**
395
+ * A token identifying a page of results the server should return. Used in page_token.
396
+ */
397
+ nextPageToken?: string | null;
398
+ }
399
+ /**
400
+ * The response message for Locations.ListLocations.
401
+ */
402
+ export interface Schema$ListLocationsResponse {
403
+ /**
404
+ * A list of locations that matches the specified filter in the request.
405
+ */
406
+ locations?: Schema$Location[];
407
+ /**
408
+ * The standard List next-page token.
409
+ */
410
+ nextPageToken?: string | null;
411
+ }
412
+ /**
413
+ * Message for response to listing McpServers
414
+ */
415
+ export interface Schema$ListMcpServersResponse {
416
+ /**
417
+ * The list of McpServers.
418
+ */
419
+ mcpServers?: Schema$McpServer[];
420
+ /**
421
+ * A token identifying a page of results the server should return.
422
+ */
423
+ nextPageToken?: string | null;
424
+ }
425
+ /**
426
+ * The response message for Operations.ListOperations.
427
+ */
428
+ export interface Schema$ListOperationsResponse {
429
+ /**
430
+ * The standard List next-page token.
431
+ */
432
+ nextPageToken?: string | null;
433
+ /**
434
+ * A list of operations that matches the specified filter in the request.
435
+ */
436
+ operations?: Schema$Operation[];
437
+ /**
438
+ * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.
439
+ */
440
+ unreachable?: string[] | null;
441
+ }
442
+ /**
443
+ * Message for response to listing Services
444
+ */
445
+ export interface Schema$ListServicesResponse {
446
+ /**
447
+ * A token identifying a page of results the server should return. Used in page_token.
448
+ */
449
+ nextPageToken?: string | null;
450
+ /**
451
+ * The list of Service resources matching the parent and filter criteria in the request. Each Service resource follows the format: `projects/{project\}/locations/{location\}/services/{service\}`.
452
+ */
453
+ services?: Schema$Service[];
454
+ }
455
+ /**
456
+ * A resource that represents a Google Cloud location.
457
+ */
458
+ export interface Schema$Location {
459
+ /**
460
+ * The friendly name for this location, typically a nearby city name. For example, "Tokyo".
461
+ */
462
+ displayName?: string | null;
463
+ /**
464
+ * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\}
465
+ */
466
+ labels?: {
467
+ [key: string]: string;
468
+ } | null;
469
+ /**
470
+ * The canonical id for this location. For example: `"us-east1"`.
471
+ */
472
+ locationId?: string | null;
473
+ /**
474
+ * Service-specific metadata. For example the available capacity at the given location.
475
+ */
476
+ metadata?: {
477
+ [key: string]: any;
478
+ } | null;
479
+ /**
480
+ * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
481
+ */
482
+ name?: string | null;
483
+ }
484
+ /**
485
+ * Represents an MCP (Model Context Protocol) Server.
486
+ */
487
+ export interface Schema$McpServer {
488
+ /**
489
+ * Output only. Attributes of the MCP Server. Valid values: * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": "principal://..."\} - the runtime identity associated with the MCP Server. * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."\} - the URI of the underlying resource hosting the MCP Server, for example, the GKE Deployment.
490
+ */
491
+ attributes?: {
492
+ [key: string]: {
493
+ [key: string]: any;
494
+ };
495
+ } | null;
496
+ /**
497
+ * Output only. Create time.
498
+ */
499
+ createTime?: string | null;
500
+ /**
501
+ * Output only. The description of the MCP Server.
502
+ */
503
+ description?: string | null;
504
+ /**
505
+ * Output only. The display name of the MCP Server.
506
+ */
507
+ displayName?: string | null;
508
+ /**
509
+ * Output only. The connection details for the MCP Server.
510
+ */
511
+ interfaces?: Schema$Interface[];
512
+ /**
513
+ * Output only. A stable, globally unique identifier for MCP Servers.
514
+ */
515
+ mcpServerId?: string | null;
516
+ /**
517
+ * Identifier. The resource name of the MCP Server. Format: `projects/{project\}/locations/{location\}/mcpServers/{mcp_server\}`.
518
+ */
519
+ name?: string | null;
520
+ /**
521
+ * Output only. Tools provided by the MCP Server.
522
+ */
523
+ tools?: Schema$Tool[];
524
+ /**
525
+ * Output only. Update time.
526
+ */
527
+ updateTime?: string | null;
528
+ }
529
+ /**
530
+ * The spec of the MCP Server.
531
+ */
532
+ export interface Schema$McpServerSpec {
533
+ /**
534
+ * Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
535
+ */
536
+ content?: {
537
+ [key: string]: any;
538
+ } | null;
539
+ /**
540
+ * Required. The type of the MCP Server spec content.
541
+ */
542
+ type?: string | null;
543
+ }
544
+ /**
545
+ * This resource represents a long-running operation that is the result of a network API call.
546
+ */
547
+ export interface Schema$Operation {
548
+ /**
549
+ * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
550
+ */
551
+ done?: boolean | null;
552
+ /**
553
+ * The error result of the operation in case of failure or cancellation.
554
+ */
555
+ error?: Schema$Status;
556
+ /**
557
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
558
+ */
559
+ metadata?: {
560
+ [key: string]: any;
561
+ } | null;
562
+ /**
563
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
564
+ */
565
+ name?: string | null;
566
+ /**
567
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
568
+ */
569
+ response?: {
570
+ [key: string]: any;
571
+ } | null;
572
+ }
573
+ /**
574
+ * Represents the metadata of the long-running operation.
575
+ */
576
+ export interface Schema$OperationMetadata {
577
+ /**
578
+ * Output only. API version used to start the operation.
579
+ */
580
+ apiVersion?: string | null;
581
+ /**
582
+ * Output only. The time the operation was created.
583
+ */
584
+ createTime?: string | null;
585
+ /**
586
+ * Output only. The time the operation finished running.
587
+ */
588
+ endTime?: string | null;
589
+ /**
590
+ * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
591
+ */
592
+ requestedCancellation?: boolean | null;
593
+ /**
594
+ * Output only. Human-readable status of the operation, if any.
595
+ */
596
+ statusMessage?: string | null;
597
+ /**
598
+ * Output only. Server-defined resource path for the target of the operation.
599
+ */
600
+ target?: string | null;
601
+ /**
602
+ * Output only. Name of the verb executed by the operation.
603
+ */
604
+ verb?: string | null;
605
+ }
606
+ /**
607
+ * Represents the protocol of an Agent.
608
+ */
609
+ export interface Schema$Protocol {
610
+ /**
611
+ * Output only. The connection details for the Agent.
612
+ */
613
+ interfaces?: Schema$Interface[];
614
+ /**
615
+ * Output only. The version of the protocol, for example, the A2A Agent Card version.
616
+ */
617
+ protocolVersion?: string | null;
618
+ /**
619
+ * Output only. The type of the protocol.
620
+ */
621
+ type?: string | null;
622
+ }
623
+ /**
624
+ * Message for searching Agents
625
+ */
626
+ export interface Schema$SearchAgentsRequest {
627
+ /**
628
+ * Optional. The maximum number of search results to return per page. The page size is capped at `100`, even if a larger value is specified. A negative value will result in an `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. The server may return fewer results than requested.
629
+ */
630
+ pageSize?: number | null;
631
+ /**
632
+ * Optional. If present, retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
633
+ */
634
+ pageToken?: string | null;
635
+ /**
636
+ * 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`.
637
+ */
638
+ searchString?: string | null;
639
+ }
640
+ /**
641
+ * Message for response to searching Agents
642
+ */
643
+ export interface Schema$SearchAgentsResponse {
644
+ /**
645
+ * A list of Agents that match the `search_string`.
646
+ */
647
+ agents?: Schema$Agent[];
648
+ /**
649
+ * If there are more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
650
+ */
651
+ nextPageToken?: string | null;
652
+ }
653
+ /**
654
+ * Message for searching MCP Servers
655
+ */
656
+ export interface Schema$SearchMcpServersRequest {
657
+ /**
658
+ * Optional. The maximum number of search results to return per page. The page size is capped at `100`, even if a larger value is specified. A negative value will result in an `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. The server may return fewer results than requested.
659
+ */
660
+ pageSize?: number | null;
661
+ /**
662
+ * Optional. If present, retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
663
+ */
664
+ pageToken?: string | null;
665
+ /**
666
+ * Optional. Search criteria used to select the MCP Servers to return. If no search criteria is specified then all accessible MCP Servers 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 | |--------------------|-----|-----|-----|----------------| | mcpServerId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | Examples: * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"` to find the MCP Server with the specified MCP Server ID. * `name:important` to find MCP Servers whose name contains `important` as a word. * `displayName:works*` to find MCP Servers whose display name contains words that start with `works`. * `planner OR booking` to find MCP Servers whose metadata contains the words `planner` or `booking`. * `mcpServerId:service-id AND (displayName:planner OR displayName:booking)` to find MCP Servers whose MCP Server ID contains `service-id` and whose display name contains `planner` or `booking`.
667
+ */
668
+ searchString?: string | null;
669
+ }
670
+ /**
671
+ * Message for response to searching MCP Servers
672
+ */
673
+ export interface Schema$SearchMcpServersResponse {
674
+ /**
675
+ * A list of McpServers that match the `search_string`.
676
+ */
677
+ mcpServers?: Schema$McpServer[];
678
+ /**
679
+ * If there are more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
680
+ */
681
+ nextPageToken?: string | null;
682
+ }
683
+ /**
684
+ * Represents a user-defined Service.
685
+ */
686
+ export interface Schema$Service {
687
+ /**
688
+ * Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
689
+ */
690
+ agentSpec?: Schema$AgentSpec;
691
+ /**
692
+ * Output only. Create time.
693
+ */
694
+ createTime?: string | null;
695
+ /**
696
+ * Optional. User-defined description of an Service. Can have a maximum length of `2048` characters.
697
+ */
698
+ description?: string | null;
699
+ /**
700
+ * Optional. User-defined display name for the Service. Can have a maximum length of `63` characters.
701
+ */
702
+ displayName?: string | null;
703
+ /**
704
+ * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
705
+ */
706
+ endpointSpec?: Schema$EndpointSpec;
707
+ /**
708
+ * Optional. The connection details for the Service.
709
+ */
710
+ interfaces?: Schema$Interface[];
711
+ /**
712
+ * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
713
+ */
714
+ mcpServerSpec?: Schema$McpServerSpec;
715
+ /**
716
+ * Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
717
+ */
718
+ name?: string | null;
719
+ /**
720
+ * Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * `projects/{project\}/locations/{location\}/mcpServers/{mcp_server\}` * `projects/{project\}/locations/{location\}/agents/{agent\}` * `projects/{project\}/locations/{location\}/endpoints/{endpoint\}`
721
+ */
722
+ registryResource?: string | null;
723
+ /**
724
+ * Output only. Update time.
725
+ */
726
+ updateTime?: string | null;
727
+ }
728
+ /**
729
+ * The source of the Binding.
730
+ */
731
+ export interface Schema$Source {
732
+ /**
733
+ * The identifier of the source Agent. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}`
734
+ */
735
+ identifier?: string | null;
736
+ }
737
+ /**
738
+ * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
739
+ */
740
+ export interface Schema$Status {
741
+ /**
742
+ * The status code, which should be an enum value of google.rpc.Code.
743
+ */
744
+ code?: number | null;
745
+ /**
746
+ * A list of messages that carry the error details. There is a common set of message types for APIs to use.
747
+ */
748
+ details?: Array<{
749
+ [key: string]: any;
750
+ }> | null;
751
+ /**
752
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
753
+ */
754
+ message?: string | null;
755
+ }
756
+ /**
757
+ * The target of the Binding.
758
+ */
759
+ export interface Schema$Target {
760
+ /**
761
+ * The identifier of the target Agent, MCP Server, or Endpoint. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}` * `urn:mcp:{publisher\}:{namespace\}:{name\}` * `urn:endpoint:{publisher\}:{namespace\}:{name\}`
762
+ */
763
+ identifier?: string | null;
764
+ }
765
+ /**
766
+ * Represents a single tool provided by an MCP Server.
767
+ */
768
+ export interface Schema$Tool {
769
+ /**
770
+ * Output only. Annotations associated with the tool.
771
+ */
772
+ annotations?: Schema$Annotations;
773
+ /**
774
+ * Output only. Description of what the tool does.
775
+ */
776
+ description?: string | null;
777
+ /**
778
+ * Output only. Human-readable name of the tool.
779
+ */
780
+ name?: string | null;
781
+ }
782
+ export class Resource$Projects {
783
+ context: APIRequestContext;
784
+ locations: Resource$Projects$Locations;
785
+ constructor(context: APIRequestContext);
786
+ }
787
+ export class Resource$Projects$Locations {
788
+ context: APIRequestContext;
789
+ agents: Resource$Projects$Locations$Agents;
790
+ bindings: Resource$Projects$Locations$Bindings;
791
+ endpoints: Resource$Projects$Locations$Endpoints;
792
+ mcpServers: Resource$Projects$Locations$Mcpservers;
793
+ operations: Resource$Projects$Locations$Operations;
794
+ services: Resource$Projects$Locations$Services;
795
+ constructor(context: APIRequestContext);
796
+ /**
797
+ * Gets information about a location.
798
+ * @example
799
+ * ```js
800
+ * // Before running the sample:
801
+ * // - Enable the API at:
802
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
803
+ * // - Login into gcloud by running:
804
+ * // ```sh
805
+ * // $ gcloud auth application-default login
806
+ * // ```
807
+ * // - Install the npm module by running:
808
+ * // ```sh
809
+ * // $ npm install googleapis
810
+ * // ```
811
+ *
812
+ * const {google} = require('googleapis');
813
+ * const agentregistry = google.agentregistry('v1');
814
+ *
815
+ * async function main() {
816
+ * const auth = new google.auth.GoogleAuth({
817
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
818
+ * scopes: [
819
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
820
+ * 'https://www.googleapis.com/auth/cloud-platform',
821
+ * ],
822
+ * });
823
+ *
824
+ * // Acquire an auth client, and bind it to all future calls
825
+ * const authClient = await auth.getClient();
826
+ * google.options({auth: authClient});
827
+ *
828
+ * // Do the magic
829
+ * const res = await agentregistry.projects.locations.get({
830
+ * // Resource name for the location.
831
+ * name: 'projects/my-project/locations/my-location',
832
+ * });
833
+ * console.log(res.data);
834
+ *
835
+ * // Example response
836
+ * // {
837
+ * // "displayName": "my_displayName",
838
+ * // "labels": {},
839
+ * // "locationId": "my_locationId",
840
+ * // "metadata": {},
841
+ * // "name": "my_name"
842
+ * // }
843
+ * }
844
+ *
845
+ * main().catch(e => {
846
+ * console.error(e);
847
+ * throw e;
848
+ * });
849
+ *
850
+ * ```
851
+ *
852
+ * @param params - Parameters for request
853
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
854
+ * @param callback - Optional callback that handles the response.
855
+ * @returns A promise if used with async/await, or void if used with a callback.
856
+ */
857
+ get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
858
+ get(params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
859
+ get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
860
+ get(params: Params$Resource$Projects$Locations$Get, options: MethodOptions | BodyResponseCallback<Schema$Location>, callback: BodyResponseCallback<Schema$Location>): void;
861
+ get(params: Params$Resource$Projects$Locations$Get, callback: BodyResponseCallback<Schema$Location>): void;
862
+ get(callback: BodyResponseCallback<Schema$Location>): void;
863
+ /**
864
+ * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
865
+ * @example
866
+ * ```js
867
+ * // Before running the sample:
868
+ * // - Enable the API at:
869
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
870
+ * // - Login into gcloud by running:
871
+ * // ```sh
872
+ * // $ gcloud auth application-default login
873
+ * // ```
874
+ * // - Install the npm module by running:
875
+ * // ```sh
876
+ * // $ npm install googleapis
877
+ * // ```
878
+ *
879
+ * const {google} = require('googleapis');
880
+ * const agentregistry = google.agentregistry('v1');
881
+ *
882
+ * async function main() {
883
+ * const auth = new google.auth.GoogleAuth({
884
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
885
+ * scopes: [
886
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
887
+ * 'https://www.googleapis.com/auth/cloud-platform',
888
+ * ],
889
+ * });
890
+ *
891
+ * // Acquire an auth client, and bind it to all future calls
892
+ * const authClient = await auth.getClient();
893
+ * google.options({auth: authClient});
894
+ *
895
+ * // Do the magic
896
+ * const res = await agentregistry.projects.locations.list({
897
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
898
+ * extraLocationTypes: 'placeholder-value',
899
+ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
900
+ * filter: 'placeholder-value',
901
+ * // The resource that owns the locations collection, if applicable.
902
+ * name: 'projects/my-project',
903
+ * // The maximum number of results to return. If not set, the service selects a default.
904
+ * pageSize: 'placeholder-value',
905
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
906
+ * pageToken: 'placeholder-value',
907
+ * });
908
+ * console.log(res.data);
909
+ *
910
+ * // Example response
911
+ * // {
912
+ * // "locations": [],
913
+ * // "nextPageToken": "my_nextPageToken"
914
+ * // }
915
+ * }
916
+ *
917
+ * main().catch(e => {
918
+ * console.error(e);
919
+ * throw e;
920
+ * });
921
+ *
922
+ * ```
923
+ *
924
+ * @param params - Parameters for request
925
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
926
+ * @param callback - Optional callback that handles the response.
927
+ * @returns A promise if used with async/await, or void if used with a callback.
928
+ */
929
+ list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
930
+ list(params?: Params$Resource$Projects$Locations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
931
+ list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
932
+ list(params: Params$Resource$Projects$Locations$List, options: MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>, callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
933
+ list(params: Params$Resource$Projects$Locations$List, callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
934
+ list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
935
+ }
936
+ export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
937
+ /**
938
+ * Resource name for the location.
939
+ */
940
+ name?: string;
941
+ }
942
+ export interface Params$Resource$Projects$Locations$List extends StandardParameters {
943
+ /**
944
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
945
+ */
946
+ extraLocationTypes?: string[];
947
+ /**
948
+ * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
949
+ */
950
+ filter?: string;
951
+ /**
952
+ * The resource that owns the locations collection, if applicable.
953
+ */
954
+ name?: string;
955
+ /**
956
+ * The maximum number of results to return. If not set, the service selects a default.
957
+ */
958
+ pageSize?: number;
959
+ /**
960
+ * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
961
+ */
962
+ pageToken?: string;
963
+ }
964
+ export class Resource$Projects$Locations$Agents {
965
+ context: APIRequestContext;
966
+ constructor(context: APIRequestContext);
967
+ /**
968
+ * Gets details of a single Agent.
969
+ * @example
970
+ * ```js
971
+ * // Before running the sample:
972
+ * // - Enable the API at:
973
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
974
+ * // - Login into gcloud by running:
975
+ * // ```sh
976
+ * // $ gcloud auth application-default login
977
+ * // ```
978
+ * // - Install the npm module by running:
979
+ * // ```sh
980
+ * // $ npm install googleapis
981
+ * // ```
982
+ *
983
+ * const {google} = require('googleapis');
984
+ * const agentregistry = google.agentregistry('v1');
985
+ *
986
+ * async function main() {
987
+ * const auth = new google.auth.GoogleAuth({
988
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
989
+ * scopes: [
990
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
991
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
992
+ * 'https://www.googleapis.com/auth/cloud-platform',
993
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
994
+ * ],
995
+ * });
996
+ *
997
+ * // Acquire an auth client, and bind it to all future calls
998
+ * const authClient = await auth.getClient();
999
+ * google.options({auth: authClient});
1000
+ *
1001
+ * // Do the magic
1002
+ * const res = await agentregistry.projects.locations.agents.get({
1003
+ * // Required. Name of the resource
1004
+ * name: 'projects/my-project/locations/my-location/agents/my-agent',
1005
+ * });
1006
+ * console.log(res.data);
1007
+ *
1008
+ * // Example response
1009
+ * // {
1010
+ * // "agentId": "my_agentId",
1011
+ * // "attributes": {},
1012
+ * // "card": {},
1013
+ * // "createTime": "my_createTime",
1014
+ * // "description": "my_description",
1015
+ * // "displayName": "my_displayName",
1016
+ * // "location": "my_location",
1017
+ * // "name": "my_name",
1018
+ * // "protocols": [],
1019
+ * // "skills": [],
1020
+ * // "uid": "my_uid",
1021
+ * // "updateTime": "my_updateTime",
1022
+ * // "version": "my_version"
1023
+ * // }
1024
+ * }
1025
+ *
1026
+ * main().catch(e => {
1027
+ * console.error(e);
1028
+ * throw e;
1029
+ * });
1030
+ *
1031
+ * ```
1032
+ *
1033
+ * @param params - Parameters for request
1034
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1035
+ * @param callback - Optional callback that handles the response.
1036
+ * @returns A promise if used with async/await, or void if used with a callback.
1037
+ */
1038
+ get(params: Params$Resource$Projects$Locations$Agents$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1039
+ get(params?: Params$Resource$Projects$Locations$Agents$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Agent>>;
1040
+ get(params: Params$Resource$Projects$Locations$Agents$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1041
+ get(params: Params$Resource$Projects$Locations$Agents$Get, options: MethodOptions | BodyResponseCallback<Schema$Agent>, callback: BodyResponseCallback<Schema$Agent>): void;
1042
+ get(params: Params$Resource$Projects$Locations$Agents$Get, callback: BodyResponseCallback<Schema$Agent>): void;
1043
+ get(callback: BodyResponseCallback<Schema$Agent>): void;
1044
+ /**
1045
+ * Lists Agents in a given project and location.
1046
+ * @example
1047
+ * ```js
1048
+ * // Before running the sample:
1049
+ * // - Enable the API at:
1050
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1051
+ * // - Login into gcloud by running:
1052
+ * // ```sh
1053
+ * // $ gcloud auth application-default login
1054
+ * // ```
1055
+ * // - Install the npm module by running:
1056
+ * // ```sh
1057
+ * // $ npm install googleapis
1058
+ * // ```
1059
+ *
1060
+ * const {google} = require('googleapis');
1061
+ * const agentregistry = google.agentregistry('v1');
1062
+ *
1063
+ * async function main() {
1064
+ * const auth = new google.auth.GoogleAuth({
1065
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1066
+ * scopes: [
1067
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1068
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1069
+ * 'https://www.googleapis.com/auth/cloud-platform',
1070
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1071
+ * ],
1072
+ * });
1073
+ *
1074
+ * // Acquire an auth client, and bind it to all future calls
1075
+ * const authClient = await auth.getClient();
1076
+ * google.options({auth: authClient});
1077
+ *
1078
+ * // Do the magic
1079
+ * const res = await agentregistry.projects.locations.agents.list({
1080
+ * // Optional. Filtering results
1081
+ * filter: 'placeholder-value',
1082
+ * // Optional. Hint for how to order the results
1083
+ * orderBy: 'placeholder-value',
1084
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
1085
+ * pageSize: 'placeholder-value',
1086
+ * // Optional. A token identifying a page of results the server should return.
1087
+ * pageToken: 'placeholder-value',
1088
+ * // Required. Parent value for ListAgentsRequest
1089
+ * parent: 'projects/my-project/locations/my-location',
1090
+ * });
1091
+ * console.log(res.data);
1092
+ *
1093
+ * // Example response
1094
+ * // {
1095
+ * // "agents": [],
1096
+ * // "nextPageToken": "my_nextPageToken"
1097
+ * // }
1098
+ * }
1099
+ *
1100
+ * main().catch(e => {
1101
+ * console.error(e);
1102
+ * throw e;
1103
+ * });
1104
+ *
1105
+ * ```
1106
+ *
1107
+ * @param params - Parameters for request
1108
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1109
+ * @param callback - Optional callback that handles the response.
1110
+ * @returns A promise if used with async/await, or void if used with a callback.
1111
+ */
1112
+ list(params: Params$Resource$Projects$Locations$Agents$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1113
+ list(params?: Params$Resource$Projects$Locations$Agents$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAgentsResponse>>;
1114
+ list(params: Params$Resource$Projects$Locations$Agents$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1115
+ list(params: Params$Resource$Projects$Locations$Agents$List, options: MethodOptions | BodyResponseCallback<Schema$ListAgentsResponse>, callback: BodyResponseCallback<Schema$ListAgentsResponse>): void;
1116
+ list(params: Params$Resource$Projects$Locations$Agents$List, callback: BodyResponseCallback<Schema$ListAgentsResponse>): void;
1117
+ list(callback: BodyResponseCallback<Schema$ListAgentsResponse>): void;
1118
+ /**
1119
+ * Searches Agents in a given project and location.
1120
+ * @example
1121
+ * ```js
1122
+ * // Before running the sample:
1123
+ * // - Enable the API at:
1124
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1125
+ * // - Login into gcloud by running:
1126
+ * // ```sh
1127
+ * // $ gcloud auth application-default login
1128
+ * // ```
1129
+ * // - Install the npm module by running:
1130
+ * // ```sh
1131
+ * // $ npm install googleapis
1132
+ * // ```
1133
+ *
1134
+ * const {google} = require('googleapis');
1135
+ * const agentregistry = google.agentregistry('v1');
1136
+ *
1137
+ * async function main() {
1138
+ * const auth = new google.auth.GoogleAuth({
1139
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1140
+ * scopes: [
1141
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1142
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1143
+ * 'https://www.googleapis.com/auth/cloud-platform',
1144
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1145
+ * ],
1146
+ * });
1147
+ *
1148
+ * // Acquire an auth client, and bind it to all future calls
1149
+ * const authClient = await auth.getClient();
1150
+ * google.options({auth: authClient});
1151
+ *
1152
+ * // Do the magic
1153
+ * const res = await agentregistry.projects.locations.agents.search({
1154
+ * // Required. Parent value for SearchAgentsRequest. Format: `projects/{project\}/locations/{location\}`.
1155
+ * parent: 'projects/my-project/locations/my-location',
1156
+ *
1157
+ * // Request body metadata
1158
+ * requestBody: {
1159
+ * // request body parameters
1160
+ * // {
1161
+ * // "pageSize": 0,
1162
+ * // "pageToken": "my_pageToken",
1163
+ * // "searchString": "my_searchString"
1164
+ * // }
1165
+ * },
1166
+ * });
1167
+ * console.log(res.data);
1168
+ *
1169
+ * // Example response
1170
+ * // {
1171
+ * // "agents": [],
1172
+ * // "nextPageToken": "my_nextPageToken"
1173
+ * // }
1174
+ * }
1175
+ *
1176
+ * main().catch(e => {
1177
+ * console.error(e);
1178
+ * throw e;
1179
+ * });
1180
+ *
1181
+ * ```
1182
+ *
1183
+ * @param params - Parameters for request
1184
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1185
+ * @param callback - Optional callback that handles the response.
1186
+ * @returns A promise if used with async/await, or void if used with a callback.
1187
+ */
1188
+ search(params: Params$Resource$Projects$Locations$Agents$Search, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1189
+ search(params?: Params$Resource$Projects$Locations$Agents$Search, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SearchAgentsResponse>>;
1190
+ search(params: Params$Resource$Projects$Locations$Agents$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1191
+ search(params: Params$Resource$Projects$Locations$Agents$Search, options: MethodOptions | BodyResponseCallback<Schema$SearchAgentsResponse>, callback: BodyResponseCallback<Schema$SearchAgentsResponse>): void;
1192
+ search(params: Params$Resource$Projects$Locations$Agents$Search, callback: BodyResponseCallback<Schema$SearchAgentsResponse>): void;
1193
+ search(callback: BodyResponseCallback<Schema$SearchAgentsResponse>): void;
1194
+ }
1195
+ export interface Params$Resource$Projects$Locations$Agents$Get extends StandardParameters {
1196
+ /**
1197
+ * Required. Name of the resource
1198
+ */
1199
+ name?: string;
1200
+ }
1201
+ export interface Params$Resource$Projects$Locations$Agents$List extends StandardParameters {
1202
+ /**
1203
+ * Optional. Filtering results
1204
+ */
1205
+ filter?: string;
1206
+ /**
1207
+ * Optional. Hint for how to order the results
1208
+ */
1209
+ orderBy?: string;
1210
+ /**
1211
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
1212
+ */
1213
+ pageSize?: number;
1214
+ /**
1215
+ * Optional. A token identifying a page of results the server should return.
1216
+ */
1217
+ pageToken?: string;
1218
+ /**
1219
+ * Required. Parent value for ListAgentsRequest
1220
+ */
1221
+ parent?: string;
1222
+ }
1223
+ export interface Params$Resource$Projects$Locations$Agents$Search extends StandardParameters {
1224
+ /**
1225
+ * Required. Parent value for SearchAgentsRequest. Format: `projects/{project\}/locations/{location\}`.
1226
+ */
1227
+ parent?: string;
1228
+ /**
1229
+ * Request body metadata
1230
+ */
1231
+ requestBody?: Schema$SearchAgentsRequest;
1232
+ }
1233
+ export class Resource$Projects$Locations$Bindings {
1234
+ context: APIRequestContext;
1235
+ constructor(context: APIRequestContext);
1236
+ /**
1237
+ * Creates a new Binding in a given project and location.
1238
+ * @example
1239
+ * ```js
1240
+ * // Before running the sample:
1241
+ * // - Enable the API at:
1242
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1243
+ * // - Login into gcloud by running:
1244
+ * // ```sh
1245
+ * // $ gcloud auth application-default login
1246
+ * // ```
1247
+ * // - Install the npm module by running:
1248
+ * // ```sh
1249
+ * // $ npm install googleapis
1250
+ * // ```
1251
+ *
1252
+ * const {google} = require('googleapis');
1253
+ * const agentregistry = google.agentregistry('v1');
1254
+ *
1255
+ * async function main() {
1256
+ * const auth = new google.auth.GoogleAuth({
1257
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1258
+ * scopes: [
1259
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1260
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1261
+ * 'https://www.googleapis.com/auth/cloud-platform',
1262
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1263
+ * ],
1264
+ * });
1265
+ *
1266
+ * // Acquire an auth client, and bind it to all future calls
1267
+ * const authClient = await auth.getClient();
1268
+ * google.options({auth: authClient});
1269
+ *
1270
+ * // Do the magic
1271
+ * const res = await agentregistry.projects.locations.bindings.create({
1272
+ * // Required. The ID to use for the binding, which will become the final component of the binding's resource name. This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it must match the regular expression `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`.
1273
+ * bindingId: 'placeholder-value',
1274
+ * // Required. The project and location to create the Binding in. Expected format: `projects/{project\}/locations/{location\}`.
1275
+ * parent: 'projects/my-project/locations/my-location',
1276
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1277
+ * requestId: 'placeholder-value',
1278
+ *
1279
+ * // Request body metadata
1280
+ * requestBody: {
1281
+ * // request body parameters
1282
+ * // {
1283
+ * // "authProviderBinding": {},
1284
+ * // "createTime": "my_createTime",
1285
+ * // "description": "my_description",
1286
+ * // "displayName": "my_displayName",
1287
+ * // "name": "my_name",
1288
+ * // "source": {},
1289
+ * // "target": {},
1290
+ * // "updateTime": "my_updateTime"
1291
+ * // }
1292
+ * },
1293
+ * });
1294
+ * console.log(res.data);
1295
+ *
1296
+ * // Example response
1297
+ * // {
1298
+ * // "done": false,
1299
+ * // "error": {},
1300
+ * // "metadata": {},
1301
+ * // "name": "my_name",
1302
+ * // "response": {}
1303
+ * // }
1304
+ * }
1305
+ *
1306
+ * main().catch(e => {
1307
+ * console.error(e);
1308
+ * throw e;
1309
+ * });
1310
+ *
1311
+ * ```
1312
+ *
1313
+ * @param params - Parameters for request
1314
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1315
+ * @param callback - Optional callback that handles the response.
1316
+ * @returns A promise if used with async/await, or void if used with a callback.
1317
+ */
1318
+ create(params: Params$Resource$Projects$Locations$Bindings$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1319
+ create(params?: Params$Resource$Projects$Locations$Bindings$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1320
+ create(params: Params$Resource$Projects$Locations$Bindings$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1321
+ create(params: Params$Resource$Projects$Locations$Bindings$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
1322
+ create(params: Params$Resource$Projects$Locations$Bindings$Create, callback: BodyResponseCallback<Schema$Operation>): void;
1323
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
1324
+ /**
1325
+ * Deletes a single Binding.
1326
+ * @example
1327
+ * ```js
1328
+ * // Before running the sample:
1329
+ * // - Enable the API at:
1330
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1331
+ * // - Login into gcloud by running:
1332
+ * // ```sh
1333
+ * // $ gcloud auth application-default login
1334
+ * // ```
1335
+ * // - Install the npm module by running:
1336
+ * // ```sh
1337
+ * // $ npm install googleapis
1338
+ * // ```
1339
+ *
1340
+ * const {google} = require('googleapis');
1341
+ * const agentregistry = google.agentregistry('v1');
1342
+ *
1343
+ * async function main() {
1344
+ * const auth = new google.auth.GoogleAuth({
1345
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1346
+ * scopes: [
1347
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1348
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1349
+ * 'https://www.googleapis.com/auth/cloud-platform',
1350
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1351
+ * ],
1352
+ * });
1353
+ *
1354
+ * // Acquire an auth client, and bind it to all future calls
1355
+ * const authClient = await auth.getClient();
1356
+ * google.options({auth: authClient});
1357
+ *
1358
+ * // Do the magic
1359
+ * const res = await agentregistry.projects.locations.bindings.delete({
1360
+ * // Required. The name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1361
+ * name: 'projects/my-project/locations/my-location/bindings/my-binding',
1362
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1363
+ * requestId: 'placeholder-value',
1364
+ * });
1365
+ * console.log(res.data);
1366
+ *
1367
+ * // Example response
1368
+ * // {
1369
+ * // "done": false,
1370
+ * // "error": {},
1371
+ * // "metadata": {},
1372
+ * // "name": "my_name",
1373
+ * // "response": {}
1374
+ * // }
1375
+ * }
1376
+ *
1377
+ * main().catch(e => {
1378
+ * console.error(e);
1379
+ * throw e;
1380
+ * });
1381
+ *
1382
+ * ```
1383
+ *
1384
+ * @param params - Parameters for request
1385
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1386
+ * @param callback - Optional callback that handles the response.
1387
+ * @returns A promise if used with async/await, or void if used with a callback.
1388
+ */
1389
+ delete(params: Params$Resource$Projects$Locations$Bindings$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1390
+ delete(params?: Params$Resource$Projects$Locations$Bindings$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1391
+ delete(params: Params$Resource$Projects$Locations$Bindings$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1392
+ delete(params: Params$Resource$Projects$Locations$Bindings$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
1393
+ delete(params: Params$Resource$Projects$Locations$Bindings$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
1394
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
1395
+ /**
1396
+ * Fetches available Bindings.
1397
+ * @example
1398
+ * ```js
1399
+ * // Before running the sample:
1400
+ * // - Enable the API at:
1401
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1402
+ * // - Login into gcloud by running:
1403
+ * // ```sh
1404
+ * // $ gcloud auth application-default login
1405
+ * // ```
1406
+ * // - Install the npm module by running:
1407
+ * // ```sh
1408
+ * // $ npm install googleapis
1409
+ * // ```
1410
+ *
1411
+ * const {google} = require('googleapis');
1412
+ * const agentregistry = google.agentregistry('v1');
1413
+ *
1414
+ * async function main() {
1415
+ * const auth = new google.auth.GoogleAuth({
1416
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1417
+ * scopes: [
1418
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1419
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1420
+ * 'https://www.googleapis.com/auth/cloud-platform',
1421
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1422
+ * ],
1423
+ * });
1424
+ *
1425
+ * // Acquire an auth client, and bind it to all future calls
1426
+ * const authClient = await auth.getClient();
1427
+ * google.options({auth: authClient});
1428
+ *
1429
+ * // Do the magic
1430
+ * const res = await agentregistry.projects.locations.bindings.fetchAvailable({
1431
+ * // Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at `500` even if a larger value is given.
1432
+ * pageSize: 'placeholder-value',
1433
+ * // Optional. A token identifying a page of results the server should return.
1434
+ * pageToken: 'placeholder-value',
1435
+ * // Required. The parent, in the format `projects/{project\}/locations/{location\}`.
1436
+ * parent: 'projects/my-project/locations/my-location',
1437
+ * // The identifier of the source Agent. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}`
1438
+ * sourceIdentifier: 'placeholder-value',
1439
+ * // Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}` * `urn:mcp:{publisher\}:{namespace\}:{name\}` * `urn:endpoint:{publisher\}:{namespace\}:{name\}`
1440
+ * targetIdentifier: 'placeholder-value',
1441
+ * });
1442
+ * console.log(res.data);
1443
+ *
1444
+ * // Example response
1445
+ * // {
1446
+ * // "bindings": [],
1447
+ * // "nextPageToken": "my_nextPageToken"
1448
+ * // }
1449
+ * }
1450
+ *
1451
+ * main().catch(e => {
1452
+ * console.error(e);
1453
+ * throw e;
1454
+ * });
1455
+ *
1456
+ * ```
1457
+ *
1458
+ * @param params - Parameters for request
1459
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1460
+ * @param callback - Optional callback that handles the response.
1461
+ * @returns A promise if used with async/await, or void if used with a callback.
1462
+ */
1463
+ fetchAvailable(params: Params$Resource$Projects$Locations$Bindings$Fetchavailable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1464
+ fetchAvailable(params?: Params$Resource$Projects$Locations$Bindings$Fetchavailable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchAvailableBindingsResponse>>;
1465
+ fetchAvailable(params: Params$Resource$Projects$Locations$Bindings$Fetchavailable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1466
+ fetchAvailable(params: Params$Resource$Projects$Locations$Bindings$Fetchavailable, options: MethodOptions | BodyResponseCallback<Schema$FetchAvailableBindingsResponse>, callback: BodyResponseCallback<Schema$FetchAvailableBindingsResponse>): void;
1467
+ fetchAvailable(params: Params$Resource$Projects$Locations$Bindings$Fetchavailable, callback: BodyResponseCallback<Schema$FetchAvailableBindingsResponse>): void;
1468
+ fetchAvailable(callback: BodyResponseCallback<Schema$FetchAvailableBindingsResponse>): void;
1469
+ /**
1470
+ * Gets details of a single Binding.
1471
+ * @example
1472
+ * ```js
1473
+ * // Before running the sample:
1474
+ * // - Enable the API at:
1475
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1476
+ * // - Login into gcloud by running:
1477
+ * // ```sh
1478
+ * // $ gcloud auth application-default login
1479
+ * // ```
1480
+ * // - Install the npm module by running:
1481
+ * // ```sh
1482
+ * // $ npm install googleapis
1483
+ * // ```
1484
+ *
1485
+ * const {google} = require('googleapis');
1486
+ * const agentregistry = google.agentregistry('v1');
1487
+ *
1488
+ * async function main() {
1489
+ * const auth = new google.auth.GoogleAuth({
1490
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1491
+ * scopes: [
1492
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1493
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1494
+ * 'https://www.googleapis.com/auth/cloud-platform',
1495
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1496
+ * ],
1497
+ * });
1498
+ *
1499
+ * // Acquire an auth client, and bind it to all future calls
1500
+ * const authClient = await auth.getClient();
1501
+ * google.options({auth: authClient});
1502
+ *
1503
+ * // Do the magic
1504
+ * const res = await agentregistry.projects.locations.bindings.get({
1505
+ * // Required. The name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1506
+ * name: 'projects/my-project/locations/my-location/bindings/my-binding',
1507
+ * });
1508
+ * console.log(res.data);
1509
+ *
1510
+ * // Example response
1511
+ * // {
1512
+ * // "authProviderBinding": {},
1513
+ * // "createTime": "my_createTime",
1514
+ * // "description": "my_description",
1515
+ * // "displayName": "my_displayName",
1516
+ * // "name": "my_name",
1517
+ * // "source": {},
1518
+ * // "target": {},
1519
+ * // "updateTime": "my_updateTime"
1520
+ * // }
1521
+ * }
1522
+ *
1523
+ * main().catch(e => {
1524
+ * console.error(e);
1525
+ * throw e;
1526
+ * });
1527
+ *
1528
+ * ```
1529
+ *
1530
+ * @param params - Parameters for request
1531
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1532
+ * @param callback - Optional callback that handles the response.
1533
+ * @returns A promise if used with async/await, or void if used with a callback.
1534
+ */
1535
+ get(params: Params$Resource$Projects$Locations$Bindings$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1536
+ get(params?: Params$Resource$Projects$Locations$Bindings$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Binding>>;
1537
+ get(params: Params$Resource$Projects$Locations$Bindings$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1538
+ get(params: Params$Resource$Projects$Locations$Bindings$Get, options: MethodOptions | BodyResponseCallback<Schema$Binding>, callback: BodyResponseCallback<Schema$Binding>): void;
1539
+ get(params: Params$Resource$Projects$Locations$Bindings$Get, callback: BodyResponseCallback<Schema$Binding>): void;
1540
+ get(callback: BodyResponseCallback<Schema$Binding>): void;
1541
+ /**
1542
+ * Lists Bindings in a given project and location.
1543
+ * @example
1544
+ * ```js
1545
+ * // Before running the sample:
1546
+ * // - Enable the API at:
1547
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1548
+ * // - Login into gcloud by running:
1549
+ * // ```sh
1550
+ * // $ gcloud auth application-default login
1551
+ * // ```
1552
+ * // - Install the npm module by running:
1553
+ * // ```sh
1554
+ * // $ npm install googleapis
1555
+ * // ```
1556
+ *
1557
+ * const {google} = require('googleapis');
1558
+ * const agentregistry = google.agentregistry('v1');
1559
+ *
1560
+ * async function main() {
1561
+ * const auth = new google.auth.GoogleAuth({
1562
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1563
+ * scopes: [
1564
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1565
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1566
+ * 'https://www.googleapis.com/auth/cloud-platform',
1567
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1568
+ * ],
1569
+ * });
1570
+ *
1571
+ * // Acquire an auth client, and bind it to all future calls
1572
+ * const authClient = await auth.getClient();
1573
+ * google.options({auth: authClient});
1574
+ *
1575
+ * // Do the magic
1576
+ * const res = await agentregistry.projects.locations.bindings.list({
1577
+ * // Optional. A query string used to filter the list of bindings returned. The filter expression must follow AIP-160 syntax.
1578
+ * filter: 'placeholder-value',
1579
+ * // Optional. Hint for how to order the results
1580
+ * orderBy: 'placeholder-value',
1581
+ * // Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at `500` even if a larger value is given.
1582
+ * pageSize: 'placeholder-value',
1583
+ * // Optional. A token identifying a page of results the server should return.
1584
+ * pageToken: 'placeholder-value',
1585
+ * // Required. The project and location to list bindings in. Expected format: `projects/{project\}/locations/{location\}`.
1586
+ * parent: 'projects/my-project/locations/my-location',
1587
+ * });
1588
+ * console.log(res.data);
1589
+ *
1590
+ * // Example response
1591
+ * // {
1592
+ * // "bindings": [],
1593
+ * // "nextPageToken": "my_nextPageToken"
1594
+ * // }
1595
+ * }
1596
+ *
1597
+ * main().catch(e => {
1598
+ * console.error(e);
1599
+ * throw e;
1600
+ * });
1601
+ *
1602
+ * ```
1603
+ *
1604
+ * @param params - Parameters for request
1605
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1606
+ * @param callback - Optional callback that handles the response.
1607
+ * @returns A promise if used with async/await, or void if used with a callback.
1608
+ */
1609
+ list(params: Params$Resource$Projects$Locations$Bindings$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1610
+ list(params?: Params$Resource$Projects$Locations$Bindings$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListBindingsResponse>>;
1611
+ list(params: Params$Resource$Projects$Locations$Bindings$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1612
+ list(params: Params$Resource$Projects$Locations$Bindings$List, options: MethodOptions | BodyResponseCallback<Schema$ListBindingsResponse>, callback: BodyResponseCallback<Schema$ListBindingsResponse>): void;
1613
+ list(params: Params$Resource$Projects$Locations$Bindings$List, callback: BodyResponseCallback<Schema$ListBindingsResponse>): void;
1614
+ list(callback: BodyResponseCallback<Schema$ListBindingsResponse>): void;
1615
+ /**
1616
+ * Updates the parameters of a single Binding.
1617
+ * @example
1618
+ * ```js
1619
+ * // Before running the sample:
1620
+ * // - Enable the API at:
1621
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1622
+ * // - Login into gcloud by running:
1623
+ * // ```sh
1624
+ * // $ gcloud auth application-default login
1625
+ * // ```
1626
+ * // - Install the npm module by running:
1627
+ * // ```sh
1628
+ * // $ npm install googleapis
1629
+ * // ```
1630
+ *
1631
+ * const {google} = require('googleapis');
1632
+ * const agentregistry = google.agentregistry('v1');
1633
+ *
1634
+ * async function main() {
1635
+ * const auth = new google.auth.GoogleAuth({
1636
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1637
+ * scopes: [
1638
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1639
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1640
+ * 'https://www.googleapis.com/auth/cloud-platform',
1641
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1642
+ * ],
1643
+ * });
1644
+ *
1645
+ * // Acquire an auth client, and bind it to all future calls
1646
+ * const authClient = await auth.getClient();
1647
+ * google.options({auth: authClient});
1648
+ *
1649
+ * // Do the magic
1650
+ * const res = await agentregistry.projects.locations.bindings.patch({
1651
+ * // Required. Identifier. The resource name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1652
+ * name: 'projects/my-project/locations/my-location/bindings/my-binding',
1653
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1654
+ * requestId: 'placeholder-value',
1655
+ * // Optional. Field mask is used to specify the fields to be overwritten in the Binding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
1656
+ * updateMask: 'placeholder-value',
1657
+ *
1658
+ * // Request body metadata
1659
+ * requestBody: {
1660
+ * // request body parameters
1661
+ * // {
1662
+ * // "authProviderBinding": {},
1663
+ * // "createTime": "my_createTime",
1664
+ * // "description": "my_description",
1665
+ * // "displayName": "my_displayName",
1666
+ * // "name": "my_name",
1667
+ * // "source": {},
1668
+ * // "target": {},
1669
+ * // "updateTime": "my_updateTime"
1670
+ * // }
1671
+ * },
1672
+ * });
1673
+ * console.log(res.data);
1674
+ *
1675
+ * // Example response
1676
+ * // {
1677
+ * // "done": false,
1678
+ * // "error": {},
1679
+ * // "metadata": {},
1680
+ * // "name": "my_name",
1681
+ * // "response": {}
1682
+ * // }
1683
+ * }
1684
+ *
1685
+ * main().catch(e => {
1686
+ * console.error(e);
1687
+ * throw e;
1688
+ * });
1689
+ *
1690
+ * ```
1691
+ *
1692
+ * @param params - Parameters for request
1693
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1694
+ * @param callback - Optional callback that handles the response.
1695
+ * @returns A promise if used with async/await, or void if used with a callback.
1696
+ */
1697
+ patch(params: Params$Resource$Projects$Locations$Bindings$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1698
+ patch(params?: Params$Resource$Projects$Locations$Bindings$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1699
+ patch(params: Params$Resource$Projects$Locations$Bindings$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1700
+ patch(params: Params$Resource$Projects$Locations$Bindings$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
1701
+ patch(params: Params$Resource$Projects$Locations$Bindings$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
1702
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
1703
+ }
1704
+ export interface Params$Resource$Projects$Locations$Bindings$Create extends StandardParameters {
1705
+ /**
1706
+ * Required. The ID to use for the binding, which will become the final component of the binding's resource name. This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it must match the regular expression `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`.
1707
+ */
1708
+ bindingId?: string;
1709
+ /**
1710
+ * Required. The project and location to create the Binding in. Expected format: `projects/{project\}/locations/{location\}`.
1711
+ */
1712
+ parent?: string;
1713
+ /**
1714
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1715
+ */
1716
+ requestId?: string;
1717
+ /**
1718
+ * Request body metadata
1719
+ */
1720
+ requestBody?: Schema$Binding;
1721
+ }
1722
+ export interface Params$Resource$Projects$Locations$Bindings$Delete extends StandardParameters {
1723
+ /**
1724
+ * Required. The name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1725
+ */
1726
+ name?: string;
1727
+ /**
1728
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1729
+ */
1730
+ requestId?: string;
1731
+ }
1732
+ export interface Params$Resource$Projects$Locations$Bindings$Fetchavailable extends StandardParameters {
1733
+ /**
1734
+ * Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at `500` even if a larger value is given.
1735
+ */
1736
+ pageSize?: number;
1737
+ /**
1738
+ * Optional. A token identifying a page of results the server should return.
1739
+ */
1740
+ pageToken?: string;
1741
+ /**
1742
+ * Required. The parent, in the format `projects/{project\}/locations/{location\}`.
1743
+ */
1744
+ parent?: string;
1745
+ /**
1746
+ * The identifier of the source Agent. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}`
1747
+ */
1748
+ sourceIdentifier?: string;
1749
+ /**
1750
+ * Optional. The identifier of the target Agent, MCP Server, or Endpoint. Format: * `urn:agent:{publisher\}:{namespace\}:{name\}` * `urn:mcp:{publisher\}:{namespace\}:{name\}` * `urn:endpoint:{publisher\}:{namespace\}:{name\}`
1751
+ */
1752
+ targetIdentifier?: string;
1753
+ }
1754
+ export interface Params$Resource$Projects$Locations$Bindings$Get extends StandardParameters {
1755
+ /**
1756
+ * Required. The name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1757
+ */
1758
+ name?: string;
1759
+ }
1760
+ export interface Params$Resource$Projects$Locations$Bindings$List extends StandardParameters {
1761
+ /**
1762
+ * Optional. A query string used to filter the list of bindings returned. The filter expression must follow AIP-160 syntax.
1763
+ */
1764
+ filter?: string;
1765
+ /**
1766
+ * Optional. Hint for how to order the results
1767
+ */
1768
+ orderBy?: string;
1769
+ /**
1770
+ * Optional. Requested page size. Server may return fewer items than requested. Page size is 500 if unspecified and is capped at `500` even if a larger value is given.
1771
+ */
1772
+ pageSize?: number;
1773
+ /**
1774
+ * Optional. A token identifying a page of results the server should return.
1775
+ */
1776
+ pageToken?: string;
1777
+ /**
1778
+ * Required. The project and location to list bindings in. Expected format: `projects/{project\}/locations/{location\}`.
1779
+ */
1780
+ parent?: string;
1781
+ }
1782
+ export interface Params$Resource$Projects$Locations$Bindings$Patch extends StandardParameters {
1783
+ /**
1784
+ * Required. Identifier. The resource name of the Binding. Format: `projects/{project\}/locations/{location\}/bindings/{binding\}`.
1785
+ */
1786
+ name?: string;
1787
+ /**
1788
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1789
+ */
1790
+ requestId?: string;
1791
+ /**
1792
+ * Optional. Field mask is used to specify the fields to be overwritten in the Binding resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
1793
+ */
1794
+ updateMask?: string;
1795
+ /**
1796
+ * Request body metadata
1797
+ */
1798
+ requestBody?: Schema$Binding;
1799
+ }
1800
+ export class Resource$Projects$Locations$Endpoints {
1801
+ context: APIRequestContext;
1802
+ constructor(context: APIRequestContext);
1803
+ /**
1804
+ * Gets details of a single Endpoint.
1805
+ * @example
1806
+ * ```js
1807
+ * // Before running the sample:
1808
+ * // - Enable the API at:
1809
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1810
+ * // - Login into gcloud by running:
1811
+ * // ```sh
1812
+ * // $ gcloud auth application-default login
1813
+ * // ```
1814
+ * // - Install the npm module by running:
1815
+ * // ```sh
1816
+ * // $ npm install googleapis
1817
+ * // ```
1818
+ *
1819
+ * const {google} = require('googleapis');
1820
+ * const agentregistry = google.agentregistry('v1');
1821
+ *
1822
+ * async function main() {
1823
+ * const auth = new google.auth.GoogleAuth({
1824
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1825
+ * scopes: [
1826
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1827
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1828
+ * 'https://www.googleapis.com/auth/cloud-platform',
1829
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1830
+ * ],
1831
+ * });
1832
+ *
1833
+ * // Acquire an auth client, and bind it to all future calls
1834
+ * const authClient = await auth.getClient();
1835
+ * google.options({auth: authClient});
1836
+ *
1837
+ * // Do the magic
1838
+ * const res = await agentregistry.projects.locations.endpoints.get({
1839
+ * // Required. The name of the endpoint to retrieve. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}`
1840
+ * name: 'projects/my-project/locations/my-location/endpoints/my-endpoint',
1841
+ * });
1842
+ * console.log(res.data);
1843
+ *
1844
+ * // Example response
1845
+ * // {
1846
+ * // "attributes": {},
1847
+ * // "createTime": "my_createTime",
1848
+ * // "description": "my_description",
1849
+ * // "displayName": "my_displayName",
1850
+ * // "endpointId": "my_endpointId",
1851
+ * // "interfaces": [],
1852
+ * // "name": "my_name",
1853
+ * // "updateTime": "my_updateTime"
1854
+ * // }
1855
+ * }
1856
+ *
1857
+ * main().catch(e => {
1858
+ * console.error(e);
1859
+ * throw e;
1860
+ * });
1861
+ *
1862
+ * ```
1863
+ *
1864
+ * @param params - Parameters for request
1865
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1866
+ * @param callback - Optional callback that handles the response.
1867
+ * @returns A promise if used with async/await, or void if used with a callback.
1868
+ */
1869
+ get(params: Params$Resource$Projects$Locations$Endpoints$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1870
+ get(params?: Params$Resource$Projects$Locations$Endpoints$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>;
1871
+ get(params: Params$Resource$Projects$Locations$Endpoints$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1872
+ get(params: Params$Resource$Projects$Locations$Endpoints$Get, options: MethodOptions | BodyResponseCallback<Schema$Endpoint>, callback: BodyResponseCallback<Schema$Endpoint>): void;
1873
+ get(params: Params$Resource$Projects$Locations$Endpoints$Get, callback: BodyResponseCallback<Schema$Endpoint>): void;
1874
+ get(callback: BodyResponseCallback<Schema$Endpoint>): void;
1875
+ /**
1876
+ * Lists Endpoints in a given project and location.
1877
+ * @example
1878
+ * ```js
1879
+ * // Before running the sample:
1880
+ * // - Enable the API at:
1881
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1882
+ * // - Login into gcloud by running:
1883
+ * // ```sh
1884
+ * // $ gcloud auth application-default login
1885
+ * // ```
1886
+ * // - Install the npm module by running:
1887
+ * // ```sh
1888
+ * // $ npm install googleapis
1889
+ * // ```
1890
+ *
1891
+ * const {google} = require('googleapis');
1892
+ * const agentregistry = google.agentregistry('v1');
1893
+ *
1894
+ * async function main() {
1895
+ * const auth = new google.auth.GoogleAuth({
1896
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1897
+ * scopes: [
1898
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1899
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
1900
+ * 'https://www.googleapis.com/auth/cloud-platform',
1901
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1902
+ * ],
1903
+ * });
1904
+ *
1905
+ * // Acquire an auth client, and bind it to all future calls
1906
+ * const authClient = await auth.getClient();
1907
+ * google.options({auth: authClient});
1908
+ *
1909
+ * // Do the magic
1910
+ * const res = await agentregistry.projects.locations.endpoints.list({
1911
+ * // Optional. A query string used to filter the list of endpoints returned. The filter expression must follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, `version`, and `interfaces` fields. Some examples: * `name = "projects/p1/locations/l1/endpoints/e1"` * `display_name = "my-endpoint"` * `description = "my-endpoint-description"` * `version = "v1"` * `interfaces.transport = "HTTP_JSON"`
1912
+ * filter: 'placeholder-value',
1913
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
1914
+ * pageSize: 'placeholder-value',
1915
+ * // Optional. A token identifying a page of results the server should return.
1916
+ * pageToken: 'placeholder-value',
1917
+ * // Required. The project and location to list endpoints in. Expected format: `projects/{project\}/locations/{location\}`.
1918
+ * parent: 'projects/my-project/locations/my-location',
1919
+ * });
1920
+ * console.log(res.data);
1921
+ *
1922
+ * // Example response
1923
+ * // {
1924
+ * // "endpoints": [],
1925
+ * // "nextPageToken": "my_nextPageToken"
1926
+ * // }
1927
+ * }
1928
+ *
1929
+ * main().catch(e => {
1930
+ * console.error(e);
1931
+ * throw e;
1932
+ * });
1933
+ *
1934
+ * ```
1935
+ *
1936
+ * @param params - Parameters for request
1937
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1938
+ * @param callback - Optional callback that handles the response.
1939
+ * @returns A promise if used with async/await, or void if used with a callback.
1940
+ */
1941
+ list(params: Params$Resource$Projects$Locations$Endpoints$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1942
+ list(params?: Params$Resource$Projects$Locations$Endpoints$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListEndpointsResponse>>;
1943
+ list(params: Params$Resource$Projects$Locations$Endpoints$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1944
+ list(params: Params$Resource$Projects$Locations$Endpoints$List, options: MethodOptions | BodyResponseCallback<Schema$ListEndpointsResponse>, callback: BodyResponseCallback<Schema$ListEndpointsResponse>): void;
1945
+ list(params: Params$Resource$Projects$Locations$Endpoints$List, callback: BodyResponseCallback<Schema$ListEndpointsResponse>): void;
1946
+ list(callback: BodyResponseCallback<Schema$ListEndpointsResponse>): void;
1947
+ }
1948
+ export interface Params$Resource$Projects$Locations$Endpoints$Get extends StandardParameters {
1949
+ /**
1950
+ * Required. The name of the endpoint to retrieve. Format: `projects/{project\}/locations/{location\}/endpoints/{endpoint\}`
1951
+ */
1952
+ name?: string;
1953
+ }
1954
+ export interface Params$Resource$Projects$Locations$Endpoints$List extends StandardParameters {
1955
+ /**
1956
+ * Optional. A query string used to filter the list of endpoints returned. The filter expression must follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, `version`, and `interfaces` fields. Some examples: * `name = "projects/p1/locations/l1/endpoints/e1"` * `display_name = "my-endpoint"` * `description = "my-endpoint-description"` * `version = "v1"` * `interfaces.transport = "HTTP_JSON"`
1957
+ */
1958
+ filter?: string;
1959
+ /**
1960
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
1961
+ */
1962
+ pageSize?: number;
1963
+ /**
1964
+ * Optional. A token identifying a page of results the server should return.
1965
+ */
1966
+ pageToken?: string;
1967
+ /**
1968
+ * Required. The project and location to list endpoints in. Expected format: `projects/{project\}/locations/{location\}`.
1969
+ */
1970
+ parent?: string;
1971
+ }
1972
+ export class Resource$Projects$Locations$Mcpservers {
1973
+ context: APIRequestContext;
1974
+ constructor(context: APIRequestContext);
1975
+ /**
1976
+ * Gets details of a single McpServer.
1977
+ * @example
1978
+ * ```js
1979
+ * // Before running the sample:
1980
+ * // - Enable the API at:
1981
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
1982
+ * // - Login into gcloud by running:
1983
+ * // ```sh
1984
+ * // $ gcloud auth application-default login
1985
+ * // ```
1986
+ * // - Install the npm module by running:
1987
+ * // ```sh
1988
+ * // $ npm install googleapis
1989
+ * // ```
1990
+ *
1991
+ * const {google} = require('googleapis');
1992
+ * const agentregistry = google.agentregistry('v1');
1993
+ *
1994
+ * async function main() {
1995
+ * const auth = new google.auth.GoogleAuth({
1996
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1997
+ * scopes: [
1998
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1999
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2000
+ * 'https://www.googleapis.com/auth/cloud-platform',
2001
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2002
+ * ],
2003
+ * });
2004
+ *
2005
+ * // Acquire an auth client, and bind it to all future calls
2006
+ * const authClient = await auth.getClient();
2007
+ * google.options({auth: authClient});
2008
+ *
2009
+ * // Do the magic
2010
+ * const res = await agentregistry.projects.locations.mcpServers.get({
2011
+ * // Required. Name of the resource
2012
+ * name: 'projects/my-project/locations/my-location/mcpServers/my-mcpServer',
2013
+ * });
2014
+ * console.log(res.data);
2015
+ *
2016
+ * // Example response
2017
+ * // {
2018
+ * // "attributes": {},
2019
+ * // "createTime": "my_createTime",
2020
+ * // "description": "my_description",
2021
+ * // "displayName": "my_displayName",
2022
+ * // "interfaces": [],
2023
+ * // "mcpServerId": "my_mcpServerId",
2024
+ * // "name": "my_name",
2025
+ * // "tools": [],
2026
+ * // "updateTime": "my_updateTime"
2027
+ * // }
2028
+ * }
2029
+ *
2030
+ * main().catch(e => {
2031
+ * console.error(e);
2032
+ * throw e;
2033
+ * });
2034
+ *
2035
+ * ```
2036
+ *
2037
+ * @param params - Parameters for request
2038
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2039
+ * @param callback - Optional callback that handles the response.
2040
+ * @returns A promise if used with async/await, or void if used with a callback.
2041
+ */
2042
+ get(params: Params$Resource$Projects$Locations$Mcpservers$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2043
+ get(params?: Params$Resource$Projects$Locations$Mcpservers$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>;
2044
+ get(params: Params$Resource$Projects$Locations$Mcpservers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2045
+ get(params: Params$Resource$Projects$Locations$Mcpservers$Get, options: MethodOptions | BodyResponseCallback<Schema$McpServer>, callback: BodyResponseCallback<Schema$McpServer>): void;
2046
+ get(params: Params$Resource$Projects$Locations$Mcpservers$Get, callback: BodyResponseCallback<Schema$McpServer>): void;
2047
+ get(callback: BodyResponseCallback<Schema$McpServer>): void;
2048
+ /**
2049
+ * Lists McpServers in a given project and location.
2050
+ * @example
2051
+ * ```js
2052
+ * // Before running the sample:
2053
+ * // - Enable the API at:
2054
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2055
+ * // - Login into gcloud by running:
2056
+ * // ```sh
2057
+ * // $ gcloud auth application-default login
2058
+ * // ```
2059
+ * // - Install the npm module by running:
2060
+ * // ```sh
2061
+ * // $ npm install googleapis
2062
+ * // ```
2063
+ *
2064
+ * const {google} = require('googleapis');
2065
+ * const agentregistry = google.agentregistry('v1');
2066
+ *
2067
+ * async function main() {
2068
+ * const auth = new google.auth.GoogleAuth({
2069
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2070
+ * scopes: [
2071
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2072
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2073
+ * 'https://www.googleapis.com/auth/cloud-platform',
2074
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2075
+ * ],
2076
+ * });
2077
+ *
2078
+ * // Acquire an auth client, and bind it to all future calls
2079
+ * const authClient = await auth.getClient();
2080
+ * google.options({auth: authClient});
2081
+ *
2082
+ * // Do the magic
2083
+ * const res = await agentregistry.projects.locations.mcpServers.list({
2084
+ * // Optional. Filtering results
2085
+ * filter: 'placeholder-value',
2086
+ * // Optional. Hint for how to order the results
2087
+ * orderBy: 'placeholder-value',
2088
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2089
+ * pageSize: 'placeholder-value',
2090
+ * // Optional. A token identifying a page of results the server should return.
2091
+ * pageToken: 'placeholder-value',
2092
+ * // Required. Parent value for ListMcpServersRequest. Format: `projects/{project\}/locations/{location\}`.
2093
+ * parent: 'projects/my-project/locations/my-location',
2094
+ * });
2095
+ * console.log(res.data);
2096
+ *
2097
+ * // Example response
2098
+ * // {
2099
+ * // "mcpServers": [],
2100
+ * // "nextPageToken": "my_nextPageToken"
2101
+ * // }
2102
+ * }
2103
+ *
2104
+ * main().catch(e => {
2105
+ * console.error(e);
2106
+ * throw e;
2107
+ * });
2108
+ *
2109
+ * ```
2110
+ *
2111
+ * @param params - Parameters for request
2112
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2113
+ * @param callback - Optional callback that handles the response.
2114
+ * @returns A promise if used with async/await, or void if used with a callback.
2115
+ */
2116
+ list(params: Params$Resource$Projects$Locations$Mcpservers$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2117
+ list(params?: Params$Resource$Projects$Locations$Mcpservers$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListMcpServersResponse>>;
2118
+ list(params: Params$Resource$Projects$Locations$Mcpservers$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2119
+ list(params: Params$Resource$Projects$Locations$Mcpservers$List, options: MethodOptions | BodyResponseCallback<Schema$ListMcpServersResponse>, callback: BodyResponseCallback<Schema$ListMcpServersResponse>): void;
2120
+ list(params: Params$Resource$Projects$Locations$Mcpservers$List, callback: BodyResponseCallback<Schema$ListMcpServersResponse>): void;
2121
+ list(callback: BodyResponseCallback<Schema$ListMcpServersResponse>): void;
2122
+ /**
2123
+ * Searches McpServers in a given project and location.
2124
+ * @example
2125
+ * ```js
2126
+ * // Before running the sample:
2127
+ * // - Enable the API at:
2128
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2129
+ * // - Login into gcloud by running:
2130
+ * // ```sh
2131
+ * // $ gcloud auth application-default login
2132
+ * // ```
2133
+ * // - Install the npm module by running:
2134
+ * // ```sh
2135
+ * // $ npm install googleapis
2136
+ * // ```
2137
+ *
2138
+ * const {google} = require('googleapis');
2139
+ * const agentregistry = google.agentregistry('v1');
2140
+ *
2141
+ * async function main() {
2142
+ * const auth = new google.auth.GoogleAuth({
2143
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2144
+ * scopes: [
2145
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2146
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2147
+ * 'https://www.googleapis.com/auth/cloud-platform',
2148
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2149
+ * ],
2150
+ * });
2151
+ *
2152
+ * // Acquire an auth client, and bind it to all future calls
2153
+ * const authClient = await auth.getClient();
2154
+ * google.options({auth: authClient});
2155
+ *
2156
+ * // Do the magic
2157
+ * const res = await agentregistry.projects.locations.mcpServers.search({
2158
+ * // Required. Parent value for SearchMcpServersRequest. Format: `projects/{project\}/locations/{location\}`.
2159
+ * parent: 'projects/my-project/locations/my-location',
2160
+ *
2161
+ * // Request body metadata
2162
+ * requestBody: {
2163
+ * // request body parameters
2164
+ * // {
2165
+ * // "pageSize": 0,
2166
+ * // "pageToken": "my_pageToken",
2167
+ * // "searchString": "my_searchString"
2168
+ * // }
2169
+ * },
2170
+ * });
2171
+ * console.log(res.data);
2172
+ *
2173
+ * // Example response
2174
+ * // {
2175
+ * // "mcpServers": [],
2176
+ * // "nextPageToken": "my_nextPageToken"
2177
+ * // }
2178
+ * }
2179
+ *
2180
+ * main().catch(e => {
2181
+ * console.error(e);
2182
+ * throw e;
2183
+ * });
2184
+ *
2185
+ * ```
2186
+ *
2187
+ * @param params - Parameters for request
2188
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2189
+ * @param callback - Optional callback that handles the response.
2190
+ * @returns A promise if used with async/await, or void if used with a callback.
2191
+ */
2192
+ search(params: Params$Resource$Projects$Locations$Mcpservers$Search, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2193
+ search(params?: Params$Resource$Projects$Locations$Mcpservers$Search, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SearchMcpServersResponse>>;
2194
+ search(params: Params$Resource$Projects$Locations$Mcpservers$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2195
+ search(params: Params$Resource$Projects$Locations$Mcpservers$Search, options: MethodOptions | BodyResponseCallback<Schema$SearchMcpServersResponse>, callback: BodyResponseCallback<Schema$SearchMcpServersResponse>): void;
2196
+ search(params: Params$Resource$Projects$Locations$Mcpservers$Search, callback: BodyResponseCallback<Schema$SearchMcpServersResponse>): void;
2197
+ search(callback: BodyResponseCallback<Schema$SearchMcpServersResponse>): void;
2198
+ }
2199
+ export interface Params$Resource$Projects$Locations$Mcpservers$Get extends StandardParameters {
2200
+ /**
2201
+ * Required. Name of the resource
2202
+ */
2203
+ name?: string;
2204
+ }
2205
+ export interface Params$Resource$Projects$Locations$Mcpservers$List extends StandardParameters {
2206
+ /**
2207
+ * Optional. Filtering results
2208
+ */
2209
+ filter?: string;
2210
+ /**
2211
+ * Optional. Hint for how to order the results
2212
+ */
2213
+ orderBy?: string;
2214
+ /**
2215
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2216
+ */
2217
+ pageSize?: number;
2218
+ /**
2219
+ * Optional. A token identifying a page of results the server should return.
2220
+ */
2221
+ pageToken?: string;
2222
+ /**
2223
+ * Required. Parent value for ListMcpServersRequest. Format: `projects/{project\}/locations/{location\}`.
2224
+ */
2225
+ parent?: string;
2226
+ }
2227
+ export interface Params$Resource$Projects$Locations$Mcpservers$Search extends StandardParameters {
2228
+ /**
2229
+ * Required. Parent value for SearchMcpServersRequest. Format: `projects/{project\}/locations/{location\}`.
2230
+ */
2231
+ parent?: string;
2232
+ /**
2233
+ * Request body metadata
2234
+ */
2235
+ requestBody?: Schema$SearchMcpServersRequest;
2236
+ }
2237
+ export class Resource$Projects$Locations$Operations {
2238
+ context: APIRequestContext;
2239
+ constructor(context: APIRequestContext);
2240
+ /**
2241
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
2242
+ * @example
2243
+ * ```js
2244
+ * // Before running the sample:
2245
+ * // - Enable the API at:
2246
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2247
+ * // - Login into gcloud by running:
2248
+ * // ```sh
2249
+ * // $ gcloud auth application-default login
2250
+ * // ```
2251
+ * // - Install the npm module by running:
2252
+ * // ```sh
2253
+ * // $ npm install googleapis
2254
+ * // ```
2255
+ *
2256
+ * const {google} = require('googleapis');
2257
+ * const agentregistry = google.agentregistry('v1');
2258
+ *
2259
+ * async function main() {
2260
+ * const auth = new google.auth.GoogleAuth({
2261
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2262
+ * scopes: [
2263
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2264
+ * 'https://www.googleapis.com/auth/cloud-platform',
2265
+ * ],
2266
+ * });
2267
+ *
2268
+ * // Acquire an auth client, and bind it to all future calls
2269
+ * const authClient = await auth.getClient();
2270
+ * google.options({auth: authClient});
2271
+ *
2272
+ * // Do the magic
2273
+ * const res = await agentregistry.projects.locations.operations.cancel({
2274
+ * // The name of the operation resource to be cancelled.
2275
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2276
+ *
2277
+ * // Request body metadata
2278
+ * requestBody: {
2279
+ * // request body parameters
2280
+ * // {}
2281
+ * },
2282
+ * });
2283
+ * console.log(res.data);
2284
+ *
2285
+ * // Example response
2286
+ * // {}
2287
+ * }
2288
+ *
2289
+ * main().catch(e => {
2290
+ * console.error(e);
2291
+ * throw e;
2292
+ * });
2293
+ *
2294
+ * ```
2295
+ *
2296
+ * @param params - Parameters for request
2297
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2298
+ * @param callback - Optional callback that handles the response.
2299
+ * @returns A promise if used with async/await, or void if used with a callback.
2300
+ */
2301
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2302
+ cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2303
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2304
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2305
+ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
2306
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
2307
+ /**
2308
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2309
+ * @example
2310
+ * ```js
2311
+ * // Before running the sample:
2312
+ * // - Enable the API at:
2313
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2314
+ * // - Login into gcloud by running:
2315
+ * // ```sh
2316
+ * // $ gcloud auth application-default login
2317
+ * // ```
2318
+ * // - Install the npm module by running:
2319
+ * // ```sh
2320
+ * // $ npm install googleapis
2321
+ * // ```
2322
+ *
2323
+ * const {google} = require('googleapis');
2324
+ * const agentregistry = google.agentregistry('v1');
2325
+ *
2326
+ * async function main() {
2327
+ * const auth = new google.auth.GoogleAuth({
2328
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2329
+ * scopes: [
2330
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2331
+ * 'https://www.googleapis.com/auth/cloud-platform',
2332
+ * ],
2333
+ * });
2334
+ *
2335
+ * // Acquire an auth client, and bind it to all future calls
2336
+ * const authClient = await auth.getClient();
2337
+ * google.options({auth: authClient});
2338
+ *
2339
+ * // Do the magic
2340
+ * const res = await agentregistry.projects.locations.operations.delete({
2341
+ * // The name of the operation resource to be deleted.
2342
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2343
+ * });
2344
+ * console.log(res.data);
2345
+ *
2346
+ * // Example response
2347
+ * // {}
2348
+ * }
2349
+ *
2350
+ * main().catch(e => {
2351
+ * console.error(e);
2352
+ * throw e;
2353
+ * });
2354
+ *
2355
+ * ```
2356
+ *
2357
+ * @param params - Parameters for request
2358
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2359
+ * @param callback - Optional callback that handles the response.
2360
+ * @returns A promise if used with async/await, or void if used with a callback.
2361
+ */
2362
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2363
+ delete(params?: Params$Resource$Projects$Locations$Operations$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2364
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2365
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2366
+ delete(params: Params$Resource$Projects$Locations$Operations$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
2367
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
2368
+ /**
2369
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
2370
+ * @example
2371
+ * ```js
2372
+ * // Before running the sample:
2373
+ * // - Enable the API at:
2374
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2375
+ * // - Login into gcloud by running:
2376
+ * // ```sh
2377
+ * // $ gcloud auth application-default login
2378
+ * // ```
2379
+ * // - Install the npm module by running:
2380
+ * // ```sh
2381
+ * // $ npm install googleapis
2382
+ * // ```
2383
+ *
2384
+ * const {google} = require('googleapis');
2385
+ * const agentregistry = google.agentregistry('v1');
2386
+ *
2387
+ * async function main() {
2388
+ * const auth = new google.auth.GoogleAuth({
2389
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2390
+ * scopes: [
2391
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2392
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2393
+ * 'https://www.googleapis.com/auth/cloud-platform',
2394
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2395
+ * ],
2396
+ * });
2397
+ *
2398
+ * // Acquire an auth client, and bind it to all future calls
2399
+ * const authClient = await auth.getClient();
2400
+ * google.options({auth: authClient});
2401
+ *
2402
+ * // Do the magic
2403
+ * const res = await agentregistry.projects.locations.operations.get({
2404
+ * // The name of the operation resource.
2405
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2406
+ * });
2407
+ * console.log(res.data);
2408
+ *
2409
+ * // Example response
2410
+ * // {
2411
+ * // "done": false,
2412
+ * // "error": {},
2413
+ * // "metadata": {},
2414
+ * // "name": "my_name",
2415
+ * // "response": {}
2416
+ * // }
2417
+ * }
2418
+ *
2419
+ * main().catch(e => {
2420
+ * console.error(e);
2421
+ * throw e;
2422
+ * });
2423
+ *
2424
+ * ```
2425
+ *
2426
+ * @param params - Parameters for request
2427
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2428
+ * @param callback - Optional callback that handles the response.
2429
+ * @returns A promise if used with async/await, or void if used with a callback.
2430
+ */
2431
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2432
+ get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2433
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2434
+ get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2435
+ get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
2436
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
2437
+ /**
2438
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2439
+ * @example
2440
+ * ```js
2441
+ * // Before running the sample:
2442
+ * // - Enable the API at:
2443
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2444
+ * // - Login into gcloud by running:
2445
+ * // ```sh
2446
+ * // $ gcloud auth application-default login
2447
+ * // ```
2448
+ * // - Install the npm module by running:
2449
+ * // ```sh
2450
+ * // $ npm install googleapis
2451
+ * // ```
2452
+ *
2453
+ * const {google} = require('googleapis');
2454
+ * const agentregistry = google.agentregistry('v1');
2455
+ *
2456
+ * async function main() {
2457
+ * const auth = new google.auth.GoogleAuth({
2458
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2459
+ * scopes: [
2460
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2461
+ * 'https://www.googleapis.com/auth/cloud-platform',
2462
+ * ],
2463
+ * });
2464
+ *
2465
+ * // Acquire an auth client, and bind it to all future calls
2466
+ * const authClient = await auth.getClient();
2467
+ * google.options({auth: authClient});
2468
+ *
2469
+ * // Do the magic
2470
+ * const res = await agentregistry.projects.locations.operations.list({
2471
+ * // The standard list filter.
2472
+ * filter: 'placeholder-value',
2473
+ * // The name of the operation's parent resource.
2474
+ * name: 'projects/my-project/locations/my-location',
2475
+ * // The standard list page size.
2476
+ * pageSize: 'placeholder-value',
2477
+ * // The standard list page token.
2478
+ * pageToken: 'placeholder-value',
2479
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
2480
+ * returnPartialSuccess: 'placeholder-value',
2481
+ * });
2482
+ * console.log(res.data);
2483
+ *
2484
+ * // Example response
2485
+ * // {
2486
+ * // "nextPageToken": "my_nextPageToken",
2487
+ * // "operations": [],
2488
+ * // "unreachable": []
2489
+ * // }
2490
+ * }
2491
+ *
2492
+ * main().catch(e => {
2493
+ * console.error(e);
2494
+ * throw e;
2495
+ * });
2496
+ *
2497
+ * ```
2498
+ *
2499
+ * @param params - Parameters for request
2500
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2501
+ * @param callback - Optional callback that handles the response.
2502
+ * @returns A promise if used with async/await, or void if used with a callback.
2503
+ */
2504
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2505
+ list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
2506
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2507
+ list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2508
+ list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2509
+ list(callback: BodyResponseCallback<Schema$ListOperationsResponse>): void;
2510
+ }
2511
+ export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters {
2512
+ /**
2513
+ * The name of the operation resource to be cancelled.
2514
+ */
2515
+ name?: string;
2516
+ /**
2517
+ * Request body metadata
2518
+ */
2519
+ requestBody?: Schema$CancelOperationRequest;
2520
+ }
2521
+ export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters {
2522
+ /**
2523
+ * The name of the operation resource to be deleted.
2524
+ */
2525
+ name?: string;
2526
+ }
2527
+ export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters {
2528
+ /**
2529
+ * The name of the operation resource.
2530
+ */
2531
+ name?: string;
2532
+ }
2533
+ export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters {
2534
+ /**
2535
+ * The standard list filter.
2536
+ */
2537
+ filter?: string;
2538
+ /**
2539
+ * The name of the operation's parent resource.
2540
+ */
2541
+ name?: string;
2542
+ /**
2543
+ * The standard list page size.
2544
+ */
2545
+ pageSize?: number;
2546
+ /**
2547
+ * The standard list page token.
2548
+ */
2549
+ pageToken?: string;
2550
+ /**
2551
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
2552
+ */
2553
+ returnPartialSuccess?: boolean;
2554
+ }
2555
+ export class Resource$Projects$Locations$Services {
2556
+ context: APIRequestContext;
2557
+ constructor(context: APIRequestContext);
2558
+ /**
2559
+ * Creates a new Service in a given project and location.
2560
+ * @example
2561
+ * ```js
2562
+ * // Before running the sample:
2563
+ * // - Enable the API at:
2564
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2565
+ * // - Login into gcloud by running:
2566
+ * // ```sh
2567
+ * // $ gcloud auth application-default login
2568
+ * // ```
2569
+ * // - Install the npm module by running:
2570
+ * // ```sh
2571
+ * // $ npm install googleapis
2572
+ * // ```
2573
+ *
2574
+ * const {google} = require('googleapis');
2575
+ * const agentregistry = google.agentregistry('v1');
2576
+ *
2577
+ * async function main() {
2578
+ * const auth = new google.auth.GoogleAuth({
2579
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2580
+ * scopes: [
2581
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2582
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2583
+ * 'https://www.googleapis.com/auth/cloud-platform',
2584
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2585
+ * ],
2586
+ * });
2587
+ *
2588
+ * // Acquire an auth client, and bind it to all future calls
2589
+ * const authClient = await auth.getClient();
2590
+ * google.options({auth: authClient});
2591
+ *
2592
+ * // Do the magic
2593
+ * const res = await agentregistry.projects.locations.services.create({
2594
+ * // Required. The project and location to create the Service in. Expected format: `projects/{project\}/locations/{location\}`.
2595
+ * parent: 'projects/my-project/locations/my-location',
2596
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2597
+ * requestId: 'placeholder-value',
2598
+ * // Required. The ID to use for the service, which will become the final component of the service's resource name. This value should be 4-63 characters, and valid characters are `/a-z-/`.
2599
+ * serviceId: 'placeholder-value',
2600
+ *
2601
+ * // Request body metadata
2602
+ * requestBody: {
2603
+ * // request body parameters
2604
+ * // {
2605
+ * // "agentSpec": {},
2606
+ * // "createTime": "my_createTime",
2607
+ * // "description": "my_description",
2608
+ * // "displayName": "my_displayName",
2609
+ * // "endpointSpec": {},
2610
+ * // "interfaces": [],
2611
+ * // "mcpServerSpec": {},
2612
+ * // "name": "my_name",
2613
+ * // "registryResource": "my_registryResource",
2614
+ * // "updateTime": "my_updateTime"
2615
+ * // }
2616
+ * },
2617
+ * });
2618
+ * console.log(res.data);
2619
+ *
2620
+ * // Example response
2621
+ * // {
2622
+ * // "done": false,
2623
+ * // "error": {},
2624
+ * // "metadata": {},
2625
+ * // "name": "my_name",
2626
+ * // "response": {}
2627
+ * // }
2628
+ * }
2629
+ *
2630
+ * main().catch(e => {
2631
+ * console.error(e);
2632
+ * throw e;
2633
+ * });
2634
+ *
2635
+ * ```
2636
+ *
2637
+ * @param params - Parameters for request
2638
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2639
+ * @param callback - Optional callback that handles the response.
2640
+ * @returns A promise if used with async/await, or void if used with a callback.
2641
+ */
2642
+ create(params: Params$Resource$Projects$Locations$Services$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2643
+ create(params?: Params$Resource$Projects$Locations$Services$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2644
+ create(params: Params$Resource$Projects$Locations$Services$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2645
+ create(params: Params$Resource$Projects$Locations$Services$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2646
+ create(params: Params$Resource$Projects$Locations$Services$Create, callback: BodyResponseCallback<Schema$Operation>): void;
2647
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
2648
+ /**
2649
+ * Deletes a single Service.
2650
+ * @example
2651
+ * ```js
2652
+ * // Before running the sample:
2653
+ * // - Enable the API at:
2654
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2655
+ * // - Login into gcloud by running:
2656
+ * // ```sh
2657
+ * // $ gcloud auth application-default login
2658
+ * // ```
2659
+ * // - Install the npm module by running:
2660
+ * // ```sh
2661
+ * // $ npm install googleapis
2662
+ * // ```
2663
+ *
2664
+ * const {google} = require('googleapis');
2665
+ * const agentregistry = google.agentregistry('v1');
2666
+ *
2667
+ * async function main() {
2668
+ * const auth = new google.auth.GoogleAuth({
2669
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2670
+ * scopes: [
2671
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2672
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2673
+ * 'https://www.googleapis.com/auth/cloud-platform',
2674
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2675
+ * ],
2676
+ * });
2677
+ *
2678
+ * // Acquire an auth client, and bind it to all future calls
2679
+ * const authClient = await auth.getClient();
2680
+ * google.options({auth: authClient});
2681
+ *
2682
+ * // Do the magic
2683
+ * const res = await agentregistry.projects.locations.services.delete({
2684
+ * // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
2685
+ * name: 'projects/my-project/locations/my-location/services/my-service',
2686
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2687
+ * requestId: 'placeholder-value',
2688
+ * });
2689
+ * console.log(res.data);
2690
+ *
2691
+ * // Example response
2692
+ * // {
2693
+ * // "done": false,
2694
+ * // "error": {},
2695
+ * // "metadata": {},
2696
+ * // "name": "my_name",
2697
+ * // "response": {}
2698
+ * // }
2699
+ * }
2700
+ *
2701
+ * main().catch(e => {
2702
+ * console.error(e);
2703
+ * throw e;
2704
+ * });
2705
+ *
2706
+ * ```
2707
+ *
2708
+ * @param params - Parameters for request
2709
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2710
+ * @param callback - Optional callback that handles the response.
2711
+ * @returns A promise if used with async/await, or void if used with a callback.
2712
+ */
2713
+ delete(params: Params$Resource$Projects$Locations$Services$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2714
+ delete(params?: Params$Resource$Projects$Locations$Services$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2715
+ delete(params: Params$Resource$Projects$Locations$Services$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2716
+ delete(params: Params$Resource$Projects$Locations$Services$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2717
+ delete(params: Params$Resource$Projects$Locations$Services$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
2718
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
2719
+ /**
2720
+ * Gets details of a single Service.
2721
+ * @example
2722
+ * ```js
2723
+ * // Before running the sample:
2724
+ * // - Enable the API at:
2725
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2726
+ * // - Login into gcloud by running:
2727
+ * // ```sh
2728
+ * // $ gcloud auth application-default login
2729
+ * // ```
2730
+ * // - Install the npm module by running:
2731
+ * // ```sh
2732
+ * // $ npm install googleapis
2733
+ * // ```
2734
+ *
2735
+ * const {google} = require('googleapis');
2736
+ * const agentregistry = google.agentregistry('v1');
2737
+ *
2738
+ * async function main() {
2739
+ * const auth = new google.auth.GoogleAuth({
2740
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2741
+ * scopes: [
2742
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2743
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2744
+ * 'https://www.googleapis.com/auth/cloud-platform',
2745
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2746
+ * ],
2747
+ * });
2748
+ *
2749
+ * // Acquire an auth client, and bind it to all future calls
2750
+ * const authClient = await auth.getClient();
2751
+ * google.options({auth: authClient});
2752
+ *
2753
+ * // Do the magic
2754
+ * const res = await agentregistry.projects.locations.services.get({
2755
+ * // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
2756
+ * name: 'projects/my-project/locations/my-location/services/my-service',
2757
+ * });
2758
+ * console.log(res.data);
2759
+ *
2760
+ * // Example response
2761
+ * // {
2762
+ * // "agentSpec": {},
2763
+ * // "createTime": "my_createTime",
2764
+ * // "description": "my_description",
2765
+ * // "displayName": "my_displayName",
2766
+ * // "endpointSpec": {},
2767
+ * // "interfaces": [],
2768
+ * // "mcpServerSpec": {},
2769
+ * // "name": "my_name",
2770
+ * // "registryResource": "my_registryResource",
2771
+ * // "updateTime": "my_updateTime"
2772
+ * // }
2773
+ * }
2774
+ *
2775
+ * main().catch(e => {
2776
+ * console.error(e);
2777
+ * throw e;
2778
+ * });
2779
+ *
2780
+ * ```
2781
+ *
2782
+ * @param params - Parameters for request
2783
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2784
+ * @param callback - Optional callback that handles the response.
2785
+ * @returns A promise if used with async/await, or void if used with a callback.
2786
+ */
2787
+ get(params: Params$Resource$Projects$Locations$Services$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2788
+ get(params?: Params$Resource$Projects$Locations$Services$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Service>>;
2789
+ get(params: Params$Resource$Projects$Locations$Services$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2790
+ get(params: Params$Resource$Projects$Locations$Services$Get, options: MethodOptions | BodyResponseCallback<Schema$Service>, callback: BodyResponseCallback<Schema$Service>): void;
2791
+ get(params: Params$Resource$Projects$Locations$Services$Get, callback: BodyResponseCallback<Schema$Service>): void;
2792
+ get(callback: BodyResponseCallback<Schema$Service>): void;
2793
+ /**
2794
+ * Lists Services in a given project and location.
2795
+ * @example
2796
+ * ```js
2797
+ * // Before running the sample:
2798
+ * // - Enable the API at:
2799
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2800
+ * // - Login into gcloud by running:
2801
+ * // ```sh
2802
+ * // $ gcloud auth application-default login
2803
+ * // ```
2804
+ * // - Install the npm module by running:
2805
+ * // ```sh
2806
+ * // $ npm install googleapis
2807
+ * // ```
2808
+ *
2809
+ * const {google} = require('googleapis');
2810
+ * const agentregistry = google.agentregistry('v1');
2811
+ *
2812
+ * async function main() {
2813
+ * const auth = new google.auth.GoogleAuth({
2814
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2815
+ * scopes: [
2816
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2817
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2818
+ * 'https://www.googleapis.com/auth/cloud-platform',
2819
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2820
+ * ],
2821
+ * });
2822
+ *
2823
+ * // Acquire an auth client, and bind it to all future calls
2824
+ * const authClient = await auth.getClient();
2825
+ * google.options({auth: authClient});
2826
+ *
2827
+ * // Do the magic
2828
+ * const res = await agentregistry.projects.locations.services.list({
2829
+ * // Optional. A query string used to filter the list of services returned. The filter expression must follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, and `labels` fields. Some examples: * `name = "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description : "myservice description"` * `labels.env = "prod"`
2830
+ * filter: 'placeholder-value',
2831
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2832
+ * pageSize: 'placeholder-value',
2833
+ * // Optional. A token identifying a page of results the server should return.
2834
+ * pageToken: 'placeholder-value',
2835
+ * // Required. The project and location to list services in. Expected format: `projects/{project\}/locations/{location\}`.
2836
+ * parent: 'projects/my-project/locations/my-location',
2837
+ * });
2838
+ * console.log(res.data);
2839
+ *
2840
+ * // Example response
2841
+ * // {
2842
+ * // "nextPageToken": "my_nextPageToken",
2843
+ * // "services": []
2844
+ * // }
2845
+ * }
2846
+ *
2847
+ * main().catch(e => {
2848
+ * console.error(e);
2849
+ * throw e;
2850
+ * });
2851
+ *
2852
+ * ```
2853
+ *
2854
+ * @param params - Parameters for request
2855
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2856
+ * @param callback - Optional callback that handles the response.
2857
+ * @returns A promise if used with async/await, or void if used with a callback.
2858
+ */
2859
+ list(params: Params$Resource$Projects$Locations$Services$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2860
+ list(params?: Params$Resource$Projects$Locations$Services$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListServicesResponse>>;
2861
+ list(params: Params$Resource$Projects$Locations$Services$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2862
+ list(params: Params$Resource$Projects$Locations$Services$List, options: MethodOptions | BodyResponseCallback<Schema$ListServicesResponse>, callback: BodyResponseCallback<Schema$ListServicesResponse>): void;
2863
+ list(params: Params$Resource$Projects$Locations$Services$List, callback: BodyResponseCallback<Schema$ListServicesResponse>): void;
2864
+ list(callback: BodyResponseCallback<Schema$ListServicesResponse>): void;
2865
+ /**
2866
+ * Updates the parameters of a single Service.
2867
+ * @example
2868
+ * ```js
2869
+ * // Before running the sample:
2870
+ * // - Enable the API at:
2871
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2872
+ * // - Login into gcloud by running:
2873
+ * // ```sh
2874
+ * // $ gcloud auth application-default login
2875
+ * // ```
2876
+ * // - Install the npm module by running:
2877
+ * // ```sh
2878
+ * // $ npm install googleapis
2879
+ * // ```
2880
+ *
2881
+ * const {google} = require('googleapis');
2882
+ * const agentregistry = google.agentregistry('v1');
2883
+ *
2884
+ * async function main() {
2885
+ * const auth = new google.auth.GoogleAuth({
2886
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2887
+ * scopes: [
2888
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2889
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2890
+ * 'https://www.googleapis.com/auth/cloud-platform',
2891
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2892
+ * ],
2893
+ * });
2894
+ *
2895
+ * // Acquire an auth client, and bind it to all future calls
2896
+ * const authClient = await auth.getClient();
2897
+ * google.options({auth: authClient});
2898
+ *
2899
+ * // Do the magic
2900
+ * const res = await agentregistry.projects.locations.services.patch({
2901
+ * // Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
2902
+ * name: 'projects/my-project/locations/my-location/services/my-service',
2903
+ * // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2904
+ * requestId: 'placeholder-value',
2905
+ * // Optional. Field mask is used to specify the fields to be overwritten in the Service resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
2906
+ * updateMask: 'placeholder-value',
2907
+ *
2908
+ * // Request body metadata
2909
+ * requestBody: {
2910
+ * // request body parameters
2911
+ * // {
2912
+ * // "agentSpec": {},
2913
+ * // "createTime": "my_createTime",
2914
+ * // "description": "my_description",
2915
+ * // "displayName": "my_displayName",
2916
+ * // "endpointSpec": {},
2917
+ * // "interfaces": [],
2918
+ * // "mcpServerSpec": {},
2919
+ * // "name": "my_name",
2920
+ * // "registryResource": "my_registryResource",
2921
+ * // "updateTime": "my_updateTime"
2922
+ * // }
2923
+ * },
2924
+ * });
2925
+ * console.log(res.data);
2926
+ *
2927
+ * // Example response
2928
+ * // {
2929
+ * // "done": false,
2930
+ * // "error": {},
2931
+ * // "metadata": {},
2932
+ * // "name": "my_name",
2933
+ * // "response": {}
2934
+ * // }
2935
+ * }
2936
+ *
2937
+ * main().catch(e => {
2938
+ * console.error(e);
2939
+ * throw e;
2940
+ * });
2941
+ *
2942
+ * ```
2943
+ *
2944
+ * @param params - Parameters for request
2945
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2946
+ * @param callback - Optional callback that handles the response.
2947
+ * @returns A promise if used with async/await, or void if used with a callback.
2948
+ */
2949
+ patch(params: Params$Resource$Projects$Locations$Services$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2950
+ patch(params?: Params$Resource$Projects$Locations$Services$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2951
+ patch(params: Params$Resource$Projects$Locations$Services$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2952
+ patch(params: Params$Resource$Projects$Locations$Services$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2953
+ patch(params: Params$Resource$Projects$Locations$Services$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
2954
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
2955
+ }
2956
+ export interface Params$Resource$Projects$Locations$Services$Create extends StandardParameters {
2957
+ /**
2958
+ * Required. The project and location to create the Service in. Expected format: `projects/{project\}/locations/{location\}`.
2959
+ */
2960
+ parent?: string;
2961
+ /**
2962
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2963
+ */
2964
+ requestId?: string;
2965
+ /**
2966
+ * Required. The ID to use for the service, which will become the final component of the service's resource name. This value should be 4-63 characters, and valid characters are `/a-z-/`.
2967
+ */
2968
+ serviceId?: string;
2969
+ /**
2970
+ * Request body metadata
2971
+ */
2972
+ requestBody?: Schema$Service;
2973
+ }
2974
+ export interface Params$Resource$Projects$Locations$Services$Delete extends StandardParameters {
2975
+ /**
2976
+ * Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
2977
+ */
2978
+ name?: string;
2979
+ /**
2980
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
2981
+ */
2982
+ requestId?: string;
2983
+ }
2984
+ export interface Params$Resource$Projects$Locations$Services$Get extends StandardParameters {
2985
+ /**
2986
+ * Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
2987
+ */
2988
+ name?: string;
2989
+ }
2990
+ export interface Params$Resource$Projects$Locations$Services$List extends StandardParameters {
2991
+ /**
2992
+ * Optional. A query string used to filter the list of services returned. The filter expression must follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, and `labels` fields. Some examples: * `name = "projects/p1/locations/l1/services/s1"` * `display_name = "my-service"` * `description : "myservice description"` * `labels.env = "prod"`
2993
+ */
2994
+ filter?: string;
2995
+ /**
2996
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2997
+ */
2998
+ pageSize?: number;
2999
+ /**
3000
+ * Optional. A token identifying a page of results the server should return.
3001
+ */
3002
+ pageToken?: string;
3003
+ /**
3004
+ * Required. The project and location to list services in. Expected format: `projects/{project\}/locations/{location\}`.
3005
+ */
3006
+ parent?: string;
3007
+ }
3008
+ export interface Params$Resource$Projects$Locations$Services$Patch extends StandardParameters {
3009
+ /**
3010
+ * Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
3011
+ */
3012
+ name?: string;
3013
+ /**
3014
+ * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3015
+ */
3016
+ requestId?: string;
3017
+ /**
3018
+ * Optional. Field mask is used to specify the fields to be overwritten in the Service resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
3019
+ */
3020
+ updateMask?: string;
3021
+ /**
3022
+ * Request body metadata
3023
+ */
3024
+ requestBody?: Schema$Service;
3025
+ }
3026
+ export {};
3027
+ }