@googleapis/agentregistry 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -215,10 +215,51 @@ export namespace agentregistry_v1 {
215
215
  */
216
216
  content?: {[key: string]: any} | null;
217
217
  /**
218
- * Required. The type of the agent spec content.
218
+ * Required. Immutable. The type of the agent spec content.
219
219
  */
220
220
  type?: string | null;
221
221
  }
222
+ /**
223
+ * Represents an AI Application.
224
+ */
225
+ export interface Schema$AiApplication {
226
+ /**
227
+ * Output only. Properties of an underlying cloud resource that can comprise an AI Application.
228
+ */
229
+ applicationProperties?: Schema$ApplicationProperties;
230
+ /**
231
+ * Optional. Consumer provided attributes.
232
+ */
233
+ attributes?: Schema$Attributes;
234
+ /**
235
+ * Output only. Creation time.
236
+ */
237
+ createTime?: string | null;
238
+ /**
239
+ * Optional. User-defined description of the AI Application.
240
+ */
241
+ description?: string | null;
242
+ /**
243
+ * Optional. User-defined name for the AI Application.
244
+ */
245
+ displayName?: string | null;
246
+ /**
247
+ * Identifier. Resource name of the AI Application. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
248
+ */
249
+ name?: string | null;
250
+ /**
251
+ * Output only. The current state of the AI Application.
252
+ */
253
+ state?: string | null;
254
+ /**
255
+ * Output only. Universally unique identifier (UUID4) for the AI Application.
256
+ */
257
+ uid?: string | null;
258
+ /**
259
+ * Output only. Last update time.
260
+ */
261
+ updateTime?: string | null;
262
+ }
222
263
  /**
223
264
  * Annotations describing the characteristics and behavior of a tool or operation.
224
265
  */
@@ -244,6 +285,40 @@ export namespace agentregistry_v1 {
244
285
  */
245
286
  title?: string | null;
246
287
  }
288
+ /**
289
+ * Additional system properties of an Application.
290
+ */
291
+ export interface Schema$ApplicationProperties {
292
+ /**
293
+ * Output only. Additional metadata specific to the App Hub application. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType\}`
294
+ */
295
+ extendedMetadata?: {[key: string]: Schema$ExtendedMetadata} | null;
296
+ }
297
+ /**
298
+ * Consumer provided attributes.
299
+ */
300
+ export interface Schema$Attributes {
301
+ /**
302
+ * Optional. Business team that ensures user needs are met and value is delivered
303
+ */
304
+ businessOwners?: Schema$ContactInfo[];
305
+ /**
306
+ * Optional. User-defined criticality information.
307
+ */
308
+ criticality?: Schema$Criticality;
309
+ /**
310
+ * Optional. Developer team that owns development and coding.
311
+ */
312
+ developerOwners?: Schema$ContactInfo[];
313
+ /**
314
+ * Optional. User-defined environment information.
315
+ */
316
+ environment?: Schema$Environment;
317
+ /**
318
+ * Optional. Operator team that ensures runtime and operations.
319
+ */
320
+ operatorOwners?: Schema$ContactInfo[];
321
+ }
247
322
  /**
248
323
  * The AuthProvider of the Binding.
249
324
  */
@@ -286,7 +361,7 @@ export namespace agentregistry_v1 {
286
361
  */
287
362
  name?: string | null;
288
363
  /**
289
- * Required. The target Agent of the Binding.
364
+ * Optional. The source Agent of the Binding.
290
365
  */
291
366
  source?: Schema$Source;
292
367
  /**
@@ -315,6 +390,28 @@ export namespace agentregistry_v1 {
315
390
  */
316
391
  type?: string | null;
317
392
  }
393
+ /**
394
+ * Contact information of stakeholders.
395
+ */
396
+ export interface Schema$ContactInfo {
397
+ /**
398
+ * Optional. Contact's name. Can have a maximum length of 63 characters.
399
+ */
400
+ displayName?: string | null;
401
+ /**
402
+ * Required. Email address of the contacts.
403
+ */
404
+ email?: string | null;
405
+ }
406
+ /**
407
+ * Criticality of the Application, Service, or Workload
408
+ */
409
+ export interface Schema$Criticality {
410
+ /**
411
+ * Required. Criticality Type.
412
+ */
413
+ type?: string | null;
414
+ }
318
415
  /**
319
416
  * 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); \}
320
417
  */
@@ -365,7 +462,16 @@ export namespace agentregistry_v1 {
365
462
  */
366
463
  content?: {[key: string]: any} | null;
367
464
  /**
368
- * Required. The type of the endpoint spec content.
465
+ * Required. Immutable. The type of the endpoint spec content.
466
+ */
467
+ type?: string | null;
468
+ }
469
+ /**
470
+ * Environment of the Application, Service, or Workload
471
+ */
472
+ export interface Schema$Environment {
473
+ /**
474
+ * Required. Environment Type.
369
475
  */
370
476
  type?: string | null;
371
477
  }
@@ -390,6 +496,15 @@ export namespace agentregistry_v1 {
390
496
  */
391
497
  title?: string | null;
392
498
  }
499
+ /**
500
+ * Additional metadata for a Service or Workload.
501
+ */
502
+ export interface Schema$ExtendedMetadata {
503
+ /**
504
+ * Output only. The metadata contents.
505
+ */
506
+ metadataStruct?: {[key: string]: any} | null;
507
+ }
393
508
  /**
394
509
  * Message for response to fetching available Bindings.
395
510
  */
@@ -524,6 +639,62 @@ export namespace agentregistry_v1 {
524
639
  */
525
640
  nextPageToken?: string | null;
526
641
  }
642
+ /**
643
+ * Message for response to listing Agents under an AI Application.
644
+ */
645
+ export interface Schema$ListAiApplicationAgentsResponse {
646
+ /**
647
+ * The list of Agents.
648
+ */
649
+ agents?: Schema$Agent[];
650
+ /**
651
+ * A token identifying a page of results the server should return.
652
+ */
653
+ nextPageToken?: string | null;
654
+ }
655
+ /**
656
+ * Message for response to listing Endpoints under an AI Application.
657
+ */
658
+ export interface Schema$ListAiApplicationEndpointsResponse {
659
+ /**
660
+ * The list of Endpoints.
661
+ */
662
+ endpoints?: Schema$Endpoint[];
663
+ /**
664
+ * A token identifying a page of results the server should return.
665
+ */
666
+ nextPageToken?: string | null;
667
+ }
668
+ /**
669
+ * Message for response to listing McpServers under an AI Application.
670
+ */
671
+ export interface Schema$ListAiApplicationMcpServersResponse {
672
+ /**
673
+ * The list of McpServers.
674
+ */
675
+ mcpServers?: Schema$McpServer[];
676
+ /**
677
+ * A token identifying a page of results the server should return.
678
+ */
679
+ nextPageToken?: string | null;
680
+ }
681
+ /**
682
+ * Message for response to listing AiApplications.
683
+ */
684
+ export interface Schema$ListAiApplicationsResponse {
685
+ /**
686
+ * The list of AiApplications.
687
+ */
688
+ aiApplications?: Schema$AiApplication[];
689
+ /**
690
+ * A token identifying a page of results the server should return.
691
+ */
692
+ nextPageToken?: string | null;
693
+ /**
694
+ * Unordered list. Locations that could not be reached.
695
+ */
696
+ unreachable?: string[] | null;
697
+ }
527
698
  /**
528
699
  * Message for response to listing Bindings
529
700
  */
@@ -681,7 +852,7 @@ export namespace agentregistry_v1 {
681
852
  */
682
853
  content?: {[key: string]: any} | null;
683
854
  /**
684
- * Required. The type of the MCP Server spec content.
855
+ * Required. Immutable. The type of the MCP Server spec content.
685
856
  */
686
857
  type?: string | null;
687
858
  }
@@ -773,7 +944,7 @@ export namespace agentregistry_v1 {
773
944
  */
774
945
  pageToken?: string | null;
775
946
  /**
776
- * 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`.
947
+ * Optional. Search criteria used to select the Agents to return. If no search criteria is specified then all accessible Agents will be returned. Search expressions can be used to restrict results based upon searchable fields, where the operators can be used along with the suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | |--------------------|-----|-----|-----|----------------| | agentId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | skills | No | Yes | No | Included | | skills.id | No | Yes | No | Included | | skills.name | No | Yes | No | Included | | skills.description | No | Yes | No | Included | | skills.tags | No | Yes | No | Included | | skills.examples | No | Yes | No | Included | Examples: * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` to find the agent with the specified agent ID. * `name:important` to find agents whose name contains `important` as a word. * `displayName:works*` to find agents whose display name contains words that start with `works`. * `skills.tags:test` to find agents whose skills tags contain `test`. * `planner OR booking` to find agents whose metadata contains the words `planner` or `booking`.
777
948
  */
778
949
  searchString?: string | null;
779
950
  }
@@ -1786,12 +1957,23 @@ export namespace agentregistry_v1 {
1786
1957
 
1787
1958
  export class Resource$Projects$Locations$Aiapplications {
1788
1959
  context: APIRequestContext;
1960
+ agents: Resource$Projects$Locations$Aiapplications$Agents;
1961
+ endpoints: Resource$Projects$Locations$Aiapplications$Endpoints;
1962
+ mcpServers: Resource$Projects$Locations$Aiapplications$Mcpservers;
1789
1963
  constructor(context: APIRequestContext) {
1790
1964
  this.context = context;
1965
+ this.agents = new Resource$Projects$Locations$Aiapplications$Agents(
1966
+ this.context
1967
+ );
1968
+ this.endpoints = new Resource$Projects$Locations$Aiapplications$Endpoints(
1969
+ this.context
1970
+ );
1971
+ this.mcpServers =
1972
+ new Resource$Projects$Locations$Aiapplications$Mcpservers(this.context);
1791
1973
  }
1792
1974
 
1793
1975
  /**
1794
- * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1976
+ * Gets details of a single AI Application.
1795
1977
  * @example
1796
1978
  * ```js
1797
1979
  * // Before running the sample:
@@ -1825,22 +2007,23 @@ export namespace agentregistry_v1 {
1825
2007
  * google.options({auth: authClient});
1826
2008
  *
1827
2009
  * // Do the magic
1828
- * const res =
1829
- * await agentregistry.projects.locations.aiApplications.getIamPolicy({
1830
- * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1831
- * 'options.requestedPolicyVersion': 'placeholder-value',
1832
- * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
1833
- * resource:
1834
- * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
1835
- * });
2010
+ * const res = await agentregistry.projects.locations.aiApplications.get({
2011
+ * // Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
2012
+ * name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
2013
+ * });
1836
2014
  * console.log(res.data);
1837
2015
  *
1838
2016
  * // Example response
1839
2017
  * // {
1840
- * // "auditConfigs": [],
1841
- * // "bindings": [],
1842
- * // "etag": "my_etag",
1843
- * // "version": 0
2018
+ * // "applicationProperties": {},
2019
+ * // "attributes": {},
2020
+ * // "createTime": "my_createTime",
2021
+ * // "description": "my_description",
2022
+ * // "displayName": "my_displayName",
2023
+ * // "name": "my_name",
2024
+ * // "state": "my_state",
2025
+ * // "uid": "my_uid",
2026
+ * // "updateTime": "my_updateTime"
1844
2027
  * // }
1845
2028
  * }
1846
2029
  *
@@ -1856,56 +2039,53 @@ export namespace agentregistry_v1 {
1856
2039
  * @param callback - Optional callback that handles the response.
1857
2040
  * @returns A promise if used with async/await, or void if used with a callback.
1858
2041
  */
1859
- getIamPolicy(
1860
- params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2042
+ get(
2043
+ params: Params$Resource$Projects$Locations$Aiapplications$Get,
1861
2044
  options: StreamMethodOptions
1862
2045
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1863
- getIamPolicy(
1864
- params?: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2046
+ get(
2047
+ params?: Params$Resource$Projects$Locations$Aiapplications$Get,
1865
2048
  options?: MethodOptions
1866
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
1867
- getIamPolicy(
1868
- params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2049
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AiApplication>>;
2050
+ get(
2051
+ params: Params$Resource$Projects$Locations$Aiapplications$Get,
1869
2052
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1870
2053
  callback: BodyResponseCallback<Readable>
1871
2054
  ): void;
1872
- getIamPolicy(
1873
- params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
1874
- options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
1875
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
1876
- ): void;
1877
- getIamPolicy(
1878
- params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
1879
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2055
+ get(
2056
+ params: Params$Resource$Projects$Locations$Aiapplications$Get,
2057
+ options: MethodOptions | BodyResponseCallback<Schema$AiApplication>,
2058
+ callback: BodyResponseCallback<Schema$AiApplication>
1880
2059
  ): void;
1881
- getIamPolicy(
1882
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2060
+ get(
2061
+ params: Params$Resource$Projects$Locations$Aiapplications$Get,
2062
+ callback: BodyResponseCallback<Schema$AiApplication>
1883
2063
  ): void;
1884
- getIamPolicy(
2064
+ get(callback: BodyResponseCallback<Schema$AiApplication>): void;
2065
+ get(
1885
2066
  paramsOrCallback?:
1886
- | Params$Resource$Projects$Locations$Aiapplications$Getiampolicy
1887
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
2067
+ | Params$Resource$Projects$Locations$Aiapplications$Get
2068
+ | BodyResponseCallback<Schema$AiApplication>
1888
2069
  | BodyResponseCallback<Readable>,
1889
2070
  optionsOrCallback?:
1890
2071
  | MethodOptions
1891
2072
  | StreamMethodOptions
1892
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
2073
+ | BodyResponseCallback<Schema$AiApplication>
1893
2074
  | BodyResponseCallback<Readable>,
1894
2075
  callback?:
1895
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
2076
+ | BodyResponseCallback<Schema$AiApplication>
1896
2077
  | BodyResponseCallback<Readable>
1897
2078
  ):
1898
2079
  | void
1899
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
2080
+ | Promise<GaxiosResponseWithHTTP2<Schema$AiApplication>>
1900
2081
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
1901
2082
  let params = (paramsOrCallback ||
1902
- {}) as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
2083
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Get;
1903
2084
  let options = (optionsOrCallback || {}) as MethodOptions;
1904
2085
 
1905
2086
  if (typeof paramsOrCallback === 'function') {
1906
2087
  callback = paramsOrCallback;
1907
- params =
1908
- {} as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
2088
+ params = {} as Params$Resource$Projects$Locations$Aiapplications$Get;
1909
2089
  options = {};
1910
2090
  }
1911
2091
 
@@ -1919,32 +2099,29 @@ export namespace agentregistry_v1 {
1919
2099
  const parameters = {
1920
2100
  options: Object.assign(
1921
2101
  {
1922
- url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
1923
- /([^:]\/)\/+/g,
1924
- '$1'
1925
- ),
2102
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1926
2103
  method: 'GET',
1927
2104
  apiVersion: '',
1928
2105
  },
1929
2106
  options
1930
2107
  ),
1931
2108
  params,
1932
- requiredParams: ['resource'],
1933
- pathParams: ['resource'],
2109
+ requiredParams: ['name'],
2110
+ pathParams: ['name'],
1934
2111
  context: this.context,
1935
2112
  };
1936
2113
  if (callback) {
1937
- createAPIRequest<Schema$GoogleIamV1Policy>(
2114
+ createAPIRequest<Schema$AiApplication>(
1938
2115
  parameters,
1939
2116
  callback as BodyResponseCallback<unknown>
1940
2117
  );
1941
2118
  } else {
1942
- return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
2119
+ return createAPIRequest<Schema$AiApplication>(parameters);
1943
2120
  }
1944
2121
  }
1945
2122
 
1946
2123
  /**
1947
- * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2124
+ * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1948
2125
  * @example
1949
2126
  * ```js
1950
2127
  * // Before running the sample:
@@ -1966,8 +2143,10 @@ export namespace agentregistry_v1 {
1966
2143
  * const auth = new google.auth.GoogleAuth({
1967
2144
  * // Scopes can be specified either as an array or as a single, space-delimited string.
1968
2145
  * scopes: [
2146
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
1969
2147
  * 'https://www.googleapis.com/auth/agentregistry.read-write',
1970
2148
  * 'https://www.googleapis.com/auth/cloud-platform',
2149
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1971
2150
  * ],
1972
2151
  * });
1973
2152
  *
@@ -1977,19 +2156,12 @@ export namespace agentregistry_v1 {
1977
2156
  *
1978
2157
  * // Do the magic
1979
2158
  * const res =
1980
- * await agentregistry.projects.locations.aiApplications.setIamPolicy({
1981
- * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2159
+ * await agentregistry.projects.locations.aiApplications.getIamPolicy({
2160
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2161
+ * 'options.requestedPolicyVersion': 'placeholder-value',
2162
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
1982
2163
  * resource:
1983
2164
  * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
1984
- *
1985
- * // Request body metadata
1986
- * requestBody: {
1987
- * // request body parameters
1988
- * // {
1989
- * // "policy": {},
1990
- * // "updateMask": "my_updateMask"
1991
- * // }
1992
- * },
1993
2165
  * });
1994
2166
  * console.log(res.data);
1995
2167
  *
@@ -2014,34 +2186,34 @@ export namespace agentregistry_v1 {
2014
2186
  * @param callback - Optional callback that handles the response.
2015
2187
  * @returns A promise if used with async/await, or void if used with a callback.
2016
2188
  */
2017
- setIamPolicy(
2018
- params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2189
+ getIamPolicy(
2190
+ params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2019
2191
  options: StreamMethodOptions
2020
2192
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2021
- setIamPolicy(
2022
- params?: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2193
+ getIamPolicy(
2194
+ params?: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2023
2195
  options?: MethodOptions
2024
2196
  ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2025
- setIamPolicy(
2026
- params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2197
+ getIamPolicy(
2198
+ params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2027
2199
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2028
2200
  callback: BodyResponseCallback<Readable>
2029
2201
  ): void;
2030
- setIamPolicy(
2031
- params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2202
+ getIamPolicy(
2203
+ params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2032
2204
  options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
2033
2205
  callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2034
2206
  ): void;
2035
- setIamPolicy(
2036
- params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2207
+ getIamPolicy(
2208
+ params: Params$Resource$Projects$Locations$Aiapplications$Getiampolicy,
2037
2209
  callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2038
2210
  ): void;
2039
- setIamPolicy(
2211
+ getIamPolicy(
2040
2212
  callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2041
2213
  ): void;
2042
- setIamPolicy(
2214
+ getIamPolicy(
2043
2215
  paramsOrCallback?:
2044
- | Params$Resource$Projects$Locations$Aiapplications$Setiampolicy
2216
+ | Params$Resource$Projects$Locations$Aiapplications$Getiampolicy
2045
2217
  | BodyResponseCallback<Schema$GoogleIamV1Policy>
2046
2218
  | BodyResponseCallback<Readable>,
2047
2219
  optionsOrCallback?:
@@ -2057,13 +2229,13 @@ export namespace agentregistry_v1 {
2057
2229
  | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
2058
2230
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2059
2231
  let params = (paramsOrCallback ||
2060
- {}) as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
2232
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
2061
2233
  let options = (optionsOrCallback || {}) as MethodOptions;
2062
2234
 
2063
2235
  if (typeof paramsOrCallback === 'function') {
2064
2236
  callback = paramsOrCallback;
2065
2237
  params =
2066
- {} as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
2238
+ {} as Params$Resource$Projects$Locations$Aiapplications$Getiampolicy;
2067
2239
  options = {};
2068
2240
  }
2069
2241
 
@@ -2077,11 +2249,11 @@ export namespace agentregistry_v1 {
2077
2249
  const parameters = {
2078
2250
  options: Object.assign(
2079
2251
  {
2080
- url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
2252
+ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
2081
2253
  /([^:]\/)\/+/g,
2082
2254
  '$1'
2083
2255
  ),
2084
- method: 'POST',
2256
+ method: 'GET',
2085
2257
  apiVersion: '',
2086
2258
  },
2087
2259
  options
@@ -2102,7 +2274,7 @@ export namespace agentregistry_v1 {
2102
2274
  }
2103
2275
 
2104
2276
  /**
2105
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
2277
+ * Lists AI Applications in a given project and location.
2106
2278
  * @example
2107
2279
  * ```js
2108
2280
  * // Before running the sample:
@@ -2136,25 +2308,1245 @@ export namespace agentregistry_v1 {
2136
2308
  * google.options({auth: authClient});
2137
2309
  *
2138
2310
  * // Do the magic
2139
- * const res =
2140
- * await agentregistry.projects.locations.aiApplications.testIamPermissions({
2141
- * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2142
- * resource:
2143
- * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
2311
+ * const res = await agentregistry.projects.locations.aiApplications.list({
2312
+ * // Optional. Filtering results.
2313
+ * filter: 'placeholder-value',
2314
+ * // Optional. Hint for how to order the results.
2315
+ * orderBy: 'placeholder-value',
2316
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2317
+ * pageSize: 'placeholder-value',
2318
+ * // Optional. A token identifying a page of results the server should return.
2319
+ * pageToken: 'placeholder-value',
2320
+ * // Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
2321
+ * parent: 'projects/my-project/locations/my-location',
2322
+ * });
2323
+ * console.log(res.data);
2144
2324
  *
2145
- * // Request body metadata
2146
- * requestBody: {
2147
- * // request body parameters
2148
- * // {
2149
- * // "permissions": []
2150
- * // }
2325
+ * // Example response
2326
+ * // {
2327
+ * // "aiApplications": [],
2328
+ * // "nextPageToken": "my_nextPageToken",
2329
+ * // "unreachable": []
2330
+ * // }
2331
+ * }
2332
+ *
2333
+ * main().catch(e => {
2334
+ * console.error(e);
2335
+ * throw e;
2336
+ * });
2337
+ *
2338
+ * ```
2339
+ *
2340
+ * @param params - Parameters for request
2341
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2342
+ * @param callback - Optional callback that handles the response.
2343
+ * @returns A promise if used with async/await, or void if used with a callback.
2344
+ */
2345
+ list(
2346
+ params: Params$Resource$Projects$Locations$Aiapplications$List,
2347
+ options: StreamMethodOptions
2348
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2349
+ list(
2350
+ params?: Params$Resource$Projects$Locations$Aiapplications$List,
2351
+ options?: MethodOptions
2352
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationsResponse>>;
2353
+ list(
2354
+ params: Params$Resource$Projects$Locations$Aiapplications$List,
2355
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2356
+ callback: BodyResponseCallback<Readable>
2357
+ ): void;
2358
+ list(
2359
+ params: Params$Resource$Projects$Locations$Aiapplications$List,
2360
+ options:
2361
+ MethodOptions | BodyResponseCallback<Schema$ListAiApplicationsResponse>,
2362
+ callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
2363
+ ): void;
2364
+ list(
2365
+ params: Params$Resource$Projects$Locations$Aiapplications$List,
2366
+ callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
2367
+ ): void;
2368
+ list(
2369
+ callback: BodyResponseCallback<Schema$ListAiApplicationsResponse>
2370
+ ): void;
2371
+ list(
2372
+ paramsOrCallback?:
2373
+ | Params$Resource$Projects$Locations$Aiapplications$List
2374
+ | BodyResponseCallback<Schema$ListAiApplicationsResponse>
2375
+ | BodyResponseCallback<Readable>,
2376
+ optionsOrCallback?:
2377
+ | MethodOptions
2378
+ | StreamMethodOptions
2379
+ | BodyResponseCallback<Schema$ListAiApplicationsResponse>
2380
+ | BodyResponseCallback<Readable>,
2381
+ callback?:
2382
+ | BodyResponseCallback<Schema$ListAiApplicationsResponse>
2383
+ | BodyResponseCallback<Readable>
2384
+ ):
2385
+ | void
2386
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationsResponse>>
2387
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2388
+ let params = (paramsOrCallback ||
2389
+ {}) as Params$Resource$Projects$Locations$Aiapplications$List;
2390
+ let options = (optionsOrCallback || {}) as MethodOptions;
2391
+
2392
+ if (typeof paramsOrCallback === 'function') {
2393
+ callback = paramsOrCallback;
2394
+ params = {} as Params$Resource$Projects$Locations$Aiapplications$List;
2395
+ options = {};
2396
+ }
2397
+
2398
+ if (typeof optionsOrCallback === 'function') {
2399
+ callback = optionsOrCallback;
2400
+ options = {};
2401
+ }
2402
+
2403
+ const rootUrl =
2404
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
2405
+ const parameters = {
2406
+ options: Object.assign(
2407
+ {
2408
+ url: (rootUrl + '/v1/{+parent}/aiApplications').replace(
2409
+ /([^:]\/)\/+/g,
2410
+ '$1'
2411
+ ),
2412
+ method: 'GET',
2413
+ apiVersion: '',
2414
+ },
2415
+ options
2416
+ ),
2417
+ params,
2418
+ requiredParams: ['parent'],
2419
+ pathParams: ['parent'],
2420
+ context: this.context,
2421
+ };
2422
+ if (callback) {
2423
+ createAPIRequest<Schema$ListAiApplicationsResponse>(
2424
+ parameters,
2425
+ callback as BodyResponseCallback<unknown>
2426
+ );
2427
+ } else {
2428
+ return createAPIRequest<Schema$ListAiApplicationsResponse>(parameters);
2429
+ }
2430
+ }
2431
+
2432
+ /**
2433
+ * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2434
+ * @example
2435
+ * ```js
2436
+ * // Before running the sample:
2437
+ * // - Enable the API at:
2438
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2439
+ * // - Login into gcloud by running:
2440
+ * // ```sh
2441
+ * // $ gcloud auth application-default login
2442
+ * // ```
2443
+ * // - Install the npm module by running:
2444
+ * // ```sh
2445
+ * // $ npm install googleapis
2446
+ * // ```
2447
+ *
2448
+ * const {google} = require('googleapis');
2449
+ * const agentregistry = google.agentregistry('v1');
2450
+ *
2451
+ * async function main() {
2452
+ * const auth = new google.auth.GoogleAuth({
2453
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2454
+ * scopes: [
2455
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2456
+ * 'https://www.googleapis.com/auth/cloud-platform',
2457
+ * ],
2458
+ * });
2459
+ *
2460
+ * // Acquire an auth client, and bind it to all future calls
2461
+ * const authClient = await auth.getClient();
2462
+ * google.options({auth: authClient});
2463
+ *
2464
+ * // Do the magic
2465
+ * const res =
2466
+ * await agentregistry.projects.locations.aiApplications.setIamPolicy({
2467
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2468
+ * resource:
2469
+ * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
2470
+ *
2471
+ * // Request body metadata
2472
+ * requestBody: {
2473
+ * // request body parameters
2474
+ * // {
2475
+ * // "policy": {},
2476
+ * // "updateMask": "my_updateMask"
2477
+ * // }
2151
2478
  * },
2152
2479
  * });
2153
2480
  * console.log(res.data);
2154
2481
  *
2155
2482
  * // Example response
2156
2483
  * // {
2157
- * // "permissions": []
2484
+ * // "auditConfigs": [],
2485
+ * // "bindings": [],
2486
+ * // "etag": "my_etag",
2487
+ * // "version": 0
2488
+ * // }
2489
+ * }
2490
+ *
2491
+ * main().catch(e => {
2492
+ * console.error(e);
2493
+ * throw e;
2494
+ * });
2495
+ *
2496
+ * ```
2497
+ *
2498
+ * @param params - Parameters for request
2499
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2500
+ * @param callback - Optional callback that handles the response.
2501
+ * @returns A promise if used with async/await, or void if used with a callback.
2502
+ */
2503
+ setIamPolicy(
2504
+ params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2505
+ options: StreamMethodOptions
2506
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2507
+ setIamPolicy(
2508
+ params?: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2509
+ options?: MethodOptions
2510
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2511
+ setIamPolicy(
2512
+ params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2513
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2514
+ callback: BodyResponseCallback<Readable>
2515
+ ): void;
2516
+ setIamPolicy(
2517
+ params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2518
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
2519
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2520
+ ): void;
2521
+ setIamPolicy(
2522
+ params: Params$Resource$Projects$Locations$Aiapplications$Setiampolicy,
2523
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2524
+ ): void;
2525
+ setIamPolicy(
2526
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
2527
+ ): void;
2528
+ setIamPolicy(
2529
+ paramsOrCallback?:
2530
+ | Params$Resource$Projects$Locations$Aiapplications$Setiampolicy
2531
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
2532
+ | BodyResponseCallback<Readable>,
2533
+ optionsOrCallback?:
2534
+ | MethodOptions
2535
+ | StreamMethodOptions
2536
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
2537
+ | BodyResponseCallback<Readable>,
2538
+ callback?:
2539
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
2540
+ | BodyResponseCallback<Readable>
2541
+ ):
2542
+ | void
2543
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
2544
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2545
+ let params = (paramsOrCallback ||
2546
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
2547
+ let options = (optionsOrCallback || {}) as MethodOptions;
2548
+
2549
+ if (typeof paramsOrCallback === 'function') {
2550
+ callback = paramsOrCallback;
2551
+ params =
2552
+ {} as Params$Resource$Projects$Locations$Aiapplications$Setiampolicy;
2553
+ options = {};
2554
+ }
2555
+
2556
+ if (typeof optionsOrCallback === 'function') {
2557
+ callback = optionsOrCallback;
2558
+ options = {};
2559
+ }
2560
+
2561
+ const rootUrl =
2562
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
2563
+ const parameters = {
2564
+ options: Object.assign(
2565
+ {
2566
+ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
2567
+ /([^:]\/)\/+/g,
2568
+ '$1'
2569
+ ),
2570
+ method: 'POST',
2571
+ apiVersion: '',
2572
+ },
2573
+ options
2574
+ ),
2575
+ params,
2576
+ requiredParams: ['resource'],
2577
+ pathParams: ['resource'],
2578
+ context: this.context,
2579
+ };
2580
+ if (callback) {
2581
+ createAPIRequest<Schema$GoogleIamV1Policy>(
2582
+ parameters,
2583
+ callback as BodyResponseCallback<unknown>
2584
+ );
2585
+ } else {
2586
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
2587
+ }
2588
+ }
2589
+
2590
+ /**
2591
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
2592
+ * @example
2593
+ * ```js
2594
+ * // Before running the sample:
2595
+ * // - Enable the API at:
2596
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2597
+ * // - Login into gcloud by running:
2598
+ * // ```sh
2599
+ * // $ gcloud auth application-default login
2600
+ * // ```
2601
+ * // - Install the npm module by running:
2602
+ * // ```sh
2603
+ * // $ npm install googleapis
2604
+ * // ```
2605
+ *
2606
+ * const {google} = require('googleapis');
2607
+ * const agentregistry = google.agentregistry('v1');
2608
+ *
2609
+ * async function main() {
2610
+ * const auth = new google.auth.GoogleAuth({
2611
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2612
+ * scopes: [
2613
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2614
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2615
+ * 'https://www.googleapis.com/auth/cloud-platform',
2616
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2617
+ * ],
2618
+ * });
2619
+ *
2620
+ * // Acquire an auth client, and bind it to all future calls
2621
+ * const authClient = await auth.getClient();
2622
+ * google.options({auth: authClient});
2623
+ *
2624
+ * // Do the magic
2625
+ * const res =
2626
+ * await agentregistry.projects.locations.aiApplications.testIamPermissions({
2627
+ * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2628
+ * resource:
2629
+ * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
2630
+ *
2631
+ * // Request body metadata
2632
+ * requestBody: {
2633
+ * // request body parameters
2634
+ * // {
2635
+ * // "permissions": []
2636
+ * // }
2637
+ * },
2638
+ * });
2639
+ * console.log(res.data);
2640
+ *
2641
+ * // Example response
2642
+ * // {
2643
+ * // "permissions": []
2644
+ * // }
2645
+ * }
2646
+ *
2647
+ * main().catch(e => {
2648
+ * console.error(e);
2649
+ * throw e;
2650
+ * });
2651
+ *
2652
+ * ```
2653
+ *
2654
+ * @param params - Parameters for request
2655
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2656
+ * @param callback - Optional callback that handles the response.
2657
+ * @returns A promise if used with async/await, or void if used with a callback.
2658
+ */
2659
+ testIamPermissions(
2660
+ params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2661
+ options: StreamMethodOptions
2662
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2663
+ testIamPermissions(
2664
+ params?: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2665
+ options?: MethodOptions
2666
+ ): Promise<
2667
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
2668
+ >;
2669
+ testIamPermissions(
2670
+ params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2671
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2672
+ callback: BodyResponseCallback<Readable>
2673
+ ): void;
2674
+ testIamPermissions(
2675
+ params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2676
+ options:
2677
+ | MethodOptions
2678
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
2679
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2680
+ ): void;
2681
+ testIamPermissions(
2682
+ params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2683
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2684
+ ): void;
2685
+ testIamPermissions(
2686
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2687
+ ): void;
2688
+ testIamPermissions(
2689
+ paramsOrCallback?:
2690
+ | Params$Resource$Projects$Locations$Aiapplications$Testiampermissions
2691
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2692
+ | BodyResponseCallback<Readable>,
2693
+ optionsOrCallback?:
2694
+ | MethodOptions
2695
+ | StreamMethodOptions
2696
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2697
+ | BodyResponseCallback<Readable>,
2698
+ callback?:
2699
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
2700
+ | BodyResponseCallback<Readable>
2701
+ ):
2702
+ | void
2703
+ | Promise<
2704
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
2705
+ >
2706
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2707
+ let params = (paramsOrCallback ||
2708
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
2709
+ let options = (optionsOrCallback || {}) as MethodOptions;
2710
+
2711
+ if (typeof paramsOrCallback === 'function') {
2712
+ callback = paramsOrCallback;
2713
+ params =
2714
+ {} as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
2715
+ options = {};
2716
+ }
2717
+
2718
+ if (typeof optionsOrCallback === 'function') {
2719
+ callback = optionsOrCallback;
2720
+ options = {};
2721
+ }
2722
+
2723
+ const rootUrl =
2724
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
2725
+ const parameters = {
2726
+ options: Object.assign(
2727
+ {
2728
+ url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(
2729
+ /([^:]\/)\/+/g,
2730
+ '$1'
2731
+ ),
2732
+ method: 'POST',
2733
+ apiVersion: '',
2734
+ },
2735
+ options
2736
+ ),
2737
+ params,
2738
+ requiredParams: ['resource'],
2739
+ pathParams: ['resource'],
2740
+ context: this.context,
2741
+ };
2742
+ if (callback) {
2743
+ createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
2744
+ parameters,
2745
+ callback as BodyResponseCallback<unknown>
2746
+ );
2747
+ } else {
2748
+ return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
2749
+ parameters
2750
+ );
2751
+ }
2752
+ }
2753
+ }
2754
+
2755
+ export interface Params$Resource$Projects$Locations$Aiapplications$Get extends StandardParameters {
2756
+ /**
2757
+ * Required. Target AI Application resource name. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
2758
+ */
2759
+ name?: string;
2760
+ }
2761
+ export interface Params$Resource$Projects$Locations$Aiapplications$Getiampolicy extends StandardParameters {
2762
+ /**
2763
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2764
+ */
2765
+ 'options.requestedPolicyVersion'?: number;
2766
+ /**
2767
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2768
+ */
2769
+ resource?: string;
2770
+ }
2771
+ export interface Params$Resource$Projects$Locations$Aiapplications$List extends StandardParameters {
2772
+ /**
2773
+ * Optional. Filtering results.
2774
+ */
2775
+ filter?: string;
2776
+ /**
2777
+ * Optional. Hint for how to order the results.
2778
+ */
2779
+ orderBy?: string;
2780
+ /**
2781
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2782
+ */
2783
+ pageSize?: number;
2784
+ /**
2785
+ * Optional. A token identifying a page of results the server should return.
2786
+ */
2787
+ pageToken?: string;
2788
+ /**
2789
+ * Required. Parent project and location to query. Format: `projects/{project\}/locations/{location\}`
2790
+ */
2791
+ parent?: string;
2792
+ }
2793
+ export interface Params$Resource$Projects$Locations$Aiapplications$Setiampolicy extends StandardParameters {
2794
+ /**
2795
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2796
+ */
2797
+ resource?: string;
2798
+
2799
+ /**
2800
+ * Request body metadata
2801
+ */
2802
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
2803
+ }
2804
+ export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
2805
+ /**
2806
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2807
+ */
2808
+ resource?: string;
2809
+
2810
+ /**
2811
+ * Request body metadata
2812
+ */
2813
+ requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
2814
+ }
2815
+
2816
+ export class Resource$Projects$Locations$Aiapplications$Agents {
2817
+ context: APIRequestContext;
2818
+ constructor(context: APIRequestContext) {
2819
+ this.context = context;
2820
+ }
2821
+
2822
+ /**
2823
+ * Gets details of a single Agent under an AI Application.
2824
+ * @example
2825
+ * ```js
2826
+ * // Before running the sample:
2827
+ * // - Enable the API at:
2828
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2829
+ * // - Login into gcloud by running:
2830
+ * // ```sh
2831
+ * // $ gcloud auth application-default login
2832
+ * // ```
2833
+ * // - Install the npm module by running:
2834
+ * // ```sh
2835
+ * // $ npm install googleapis
2836
+ * // ```
2837
+ *
2838
+ * const {google} = require('googleapis');
2839
+ * const agentregistry = google.agentregistry('v1');
2840
+ *
2841
+ * async function main() {
2842
+ * const auth = new google.auth.GoogleAuth({
2843
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2844
+ * scopes: [
2845
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2846
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2847
+ * 'https://www.googleapis.com/auth/cloud-platform',
2848
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2849
+ * ],
2850
+ * });
2851
+ *
2852
+ * // Acquire an auth client, and bind it to all future calls
2853
+ * const authClient = await auth.getClient();
2854
+ * google.options({auth: authClient});
2855
+ *
2856
+ * // Do the magic
2857
+ * const res = await agentregistry.projects.locations.aiApplications.agents.get({
2858
+ * // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
2859
+ * name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/agents/my-agent',
2860
+ * });
2861
+ * console.log(res.data);
2862
+ *
2863
+ * // Example response
2864
+ * // {
2865
+ * // "agentId": "my_agentId",
2866
+ * // "attributes": {},
2867
+ * // "card": {},
2868
+ * // "createTime": "my_createTime",
2869
+ * // "description": "my_description",
2870
+ * // "displayName": "my_displayName",
2871
+ * // "location": "my_location",
2872
+ * // "name": "my_name",
2873
+ * // "protocols": [],
2874
+ * // "skills": [],
2875
+ * // "uid": "my_uid",
2876
+ * // "updateTime": "my_updateTime",
2877
+ * // "version": "my_version"
2878
+ * // }
2879
+ * }
2880
+ *
2881
+ * main().catch(e => {
2882
+ * console.error(e);
2883
+ * throw e;
2884
+ * });
2885
+ *
2886
+ * ```
2887
+ *
2888
+ * @param params - Parameters for request
2889
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2890
+ * @param callback - Optional callback that handles the response.
2891
+ * @returns A promise if used with async/await, or void if used with a callback.
2892
+ */
2893
+ get(
2894
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
2895
+ options: StreamMethodOptions
2896
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2897
+ get(
2898
+ params?: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
2899
+ options?: MethodOptions
2900
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Agent>>;
2901
+ get(
2902
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
2903
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2904
+ callback: BodyResponseCallback<Readable>
2905
+ ): void;
2906
+ get(
2907
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
2908
+ options: MethodOptions | BodyResponseCallback<Schema$Agent>,
2909
+ callback: BodyResponseCallback<Schema$Agent>
2910
+ ): void;
2911
+ get(
2912
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$Get,
2913
+ callback: BodyResponseCallback<Schema$Agent>
2914
+ ): void;
2915
+ get(callback: BodyResponseCallback<Schema$Agent>): void;
2916
+ get(
2917
+ paramsOrCallback?:
2918
+ | Params$Resource$Projects$Locations$Aiapplications$Agents$Get
2919
+ | BodyResponseCallback<Schema$Agent>
2920
+ | BodyResponseCallback<Readable>,
2921
+ optionsOrCallback?:
2922
+ | MethodOptions
2923
+ | StreamMethodOptions
2924
+ | BodyResponseCallback<Schema$Agent>
2925
+ | BodyResponseCallback<Readable>,
2926
+ callback?:
2927
+ BodyResponseCallback<Schema$Agent> | BodyResponseCallback<Readable>
2928
+ ):
2929
+ | void
2930
+ | Promise<GaxiosResponseWithHTTP2<Schema$Agent>>
2931
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2932
+ let params = (paramsOrCallback ||
2933
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Agents$Get;
2934
+ let options = (optionsOrCallback || {}) as MethodOptions;
2935
+
2936
+ if (typeof paramsOrCallback === 'function') {
2937
+ callback = paramsOrCallback;
2938
+ params =
2939
+ {} as Params$Resource$Projects$Locations$Aiapplications$Agents$Get;
2940
+ options = {};
2941
+ }
2942
+
2943
+ if (typeof optionsOrCallback === 'function') {
2944
+ callback = optionsOrCallback;
2945
+ options = {};
2946
+ }
2947
+
2948
+ const rootUrl =
2949
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
2950
+ const parameters = {
2951
+ options: Object.assign(
2952
+ {
2953
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2954
+ method: 'GET',
2955
+ apiVersion: '',
2956
+ },
2957
+ options
2958
+ ),
2959
+ params,
2960
+ requiredParams: ['name'],
2961
+ pathParams: ['name'],
2962
+ context: this.context,
2963
+ };
2964
+ if (callback) {
2965
+ createAPIRequest<Schema$Agent>(
2966
+ parameters,
2967
+ callback as BodyResponseCallback<unknown>
2968
+ );
2969
+ } else {
2970
+ return createAPIRequest<Schema$Agent>(parameters);
2971
+ }
2972
+ }
2973
+
2974
+ /**
2975
+ * Lists Agents under an AI Application.
2976
+ * @example
2977
+ * ```js
2978
+ * // Before running the sample:
2979
+ * // - Enable the API at:
2980
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
2981
+ * // - Login into gcloud by running:
2982
+ * // ```sh
2983
+ * // $ gcloud auth application-default login
2984
+ * // ```
2985
+ * // - Install the npm module by running:
2986
+ * // ```sh
2987
+ * // $ npm install googleapis
2988
+ * // ```
2989
+ *
2990
+ * const {google} = require('googleapis');
2991
+ * const agentregistry = google.agentregistry('v1');
2992
+ *
2993
+ * async function main() {
2994
+ * const auth = new google.auth.GoogleAuth({
2995
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2996
+ * scopes: [
2997
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
2998
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
2999
+ * 'https://www.googleapis.com/auth/cloud-platform',
3000
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3001
+ * ],
3002
+ * });
3003
+ *
3004
+ * // Acquire an auth client, and bind it to all future calls
3005
+ * const authClient = await auth.getClient();
3006
+ * google.options({auth: authClient});
3007
+ *
3008
+ * // Do the magic
3009
+ * const res = await agentregistry.projects.locations.aiApplications.agents.list(
3010
+ * {
3011
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
3012
+ * pageSize: 'placeholder-value',
3013
+ * // Optional. A token identifying a page of results the server should return.
3014
+ * pageToken: 'placeholder-value',
3015
+ * // Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
3016
+ * parent:
3017
+ * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
3018
+ * },
3019
+ * );
3020
+ * console.log(res.data);
3021
+ *
3022
+ * // Example response
3023
+ * // {
3024
+ * // "agents": [],
3025
+ * // "nextPageToken": "my_nextPageToken"
3026
+ * // }
3027
+ * }
3028
+ *
3029
+ * main().catch(e => {
3030
+ * console.error(e);
3031
+ * throw e;
3032
+ * });
3033
+ *
3034
+ * ```
3035
+ *
3036
+ * @param params - Parameters for request
3037
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3038
+ * @param callback - Optional callback that handles the response.
3039
+ * @returns A promise if used with async/await, or void if used with a callback.
3040
+ */
3041
+ list(
3042
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
3043
+ options: StreamMethodOptions
3044
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3045
+ list(
3046
+ params?: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
3047
+ options?: MethodOptions
3048
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationAgentsResponse>>;
3049
+ list(
3050
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
3051
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3052
+ callback: BodyResponseCallback<Readable>
3053
+ ): void;
3054
+ list(
3055
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
3056
+ options:
3057
+ | MethodOptions
3058
+ | BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>,
3059
+ callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3060
+ ): void;
3061
+ list(
3062
+ params: Params$Resource$Projects$Locations$Aiapplications$Agents$List,
3063
+ callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3064
+ ): void;
3065
+ list(
3066
+ callback: BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3067
+ ): void;
3068
+ list(
3069
+ paramsOrCallback?:
3070
+ | Params$Resource$Projects$Locations$Aiapplications$Agents$List
3071
+ | BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3072
+ | BodyResponseCallback<Readable>,
3073
+ optionsOrCallback?:
3074
+ | MethodOptions
3075
+ | StreamMethodOptions
3076
+ | BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3077
+ | BodyResponseCallback<Readable>,
3078
+ callback?:
3079
+ | BodyResponseCallback<Schema$ListAiApplicationAgentsResponse>
3080
+ | BodyResponseCallback<Readable>
3081
+ ):
3082
+ | void
3083
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListAiApplicationAgentsResponse>>
3084
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3085
+ let params = (paramsOrCallback ||
3086
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Agents$List;
3087
+ let options = (optionsOrCallback || {}) as MethodOptions;
3088
+
3089
+ if (typeof paramsOrCallback === 'function') {
3090
+ callback = paramsOrCallback;
3091
+ params =
3092
+ {} as Params$Resource$Projects$Locations$Aiapplications$Agents$List;
3093
+ options = {};
3094
+ }
3095
+
3096
+ if (typeof optionsOrCallback === 'function') {
3097
+ callback = optionsOrCallback;
3098
+ options = {};
3099
+ }
3100
+
3101
+ const rootUrl =
3102
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
3103
+ const parameters = {
3104
+ options: Object.assign(
3105
+ {
3106
+ url: (rootUrl + '/v1/{+parent}/agents').replace(
3107
+ /([^:]\/)\/+/g,
3108
+ '$1'
3109
+ ),
3110
+ method: 'GET',
3111
+ apiVersion: '',
3112
+ },
3113
+ options
3114
+ ),
3115
+ params,
3116
+ requiredParams: ['parent'],
3117
+ pathParams: ['parent'],
3118
+ context: this.context,
3119
+ };
3120
+ if (callback) {
3121
+ createAPIRequest<Schema$ListAiApplicationAgentsResponse>(
3122
+ parameters,
3123
+ callback as BodyResponseCallback<unknown>
3124
+ );
3125
+ } else {
3126
+ return createAPIRequest<Schema$ListAiApplicationAgentsResponse>(
3127
+ parameters
3128
+ );
3129
+ }
3130
+ }
3131
+ }
3132
+
3133
+ export interface Params$Resource$Projects$Locations$Aiapplications$Agents$Get extends StandardParameters {
3134
+ /**
3135
+ * Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/agents/{agent\}`
3136
+ */
3137
+ name?: string;
3138
+ }
3139
+ export interface Params$Resource$Projects$Locations$Aiapplications$Agents$List extends StandardParameters {
3140
+ /**
3141
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
3142
+ */
3143
+ pageSize?: number;
3144
+ /**
3145
+ * Optional. A token identifying a page of results the server should return.
3146
+ */
3147
+ pageToken?: string;
3148
+ /**
3149
+ * Required. Parent value (AI Application) for ListAiApplicationAgentsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
3150
+ */
3151
+ parent?: string;
3152
+ }
3153
+
3154
+ export class Resource$Projects$Locations$Aiapplications$Endpoints {
3155
+ context: APIRequestContext;
3156
+ constructor(context: APIRequestContext) {
3157
+ this.context = context;
3158
+ }
3159
+
3160
+ /**
3161
+ * Gets details of a single Endpoint under an AI Application.
3162
+ * @example
3163
+ * ```js
3164
+ * // Before running the sample:
3165
+ * // - Enable the API at:
3166
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
3167
+ * // - Login into gcloud by running:
3168
+ * // ```sh
3169
+ * // $ gcloud auth application-default login
3170
+ * // ```
3171
+ * // - Install the npm module by running:
3172
+ * // ```sh
3173
+ * // $ npm install googleapis
3174
+ * // ```
3175
+ *
3176
+ * const {google} = require('googleapis');
3177
+ * const agentregistry = google.agentregistry('v1');
3178
+ *
3179
+ * async function main() {
3180
+ * const auth = new google.auth.GoogleAuth({
3181
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3182
+ * scopes: [
3183
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
3184
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
3185
+ * 'https://www.googleapis.com/auth/cloud-platform',
3186
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3187
+ * ],
3188
+ * });
3189
+ *
3190
+ * // Acquire an auth client, and bind it to all future calls
3191
+ * const authClient = await auth.getClient();
3192
+ * google.options({auth: authClient});
3193
+ *
3194
+ * // Do the magic
3195
+ * const res =
3196
+ * await agentregistry.projects.locations.aiApplications.endpoints.get({
3197
+ * // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
3198
+ * name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/endpoints/my-endpoint',
3199
+ * });
3200
+ * console.log(res.data);
3201
+ *
3202
+ * // Example response
3203
+ * // {
3204
+ * // "attributes": {},
3205
+ * // "createTime": "my_createTime",
3206
+ * // "description": "my_description",
3207
+ * // "displayName": "my_displayName",
3208
+ * // "endpointId": "my_endpointId",
3209
+ * // "interfaces": [],
3210
+ * // "name": "my_name",
3211
+ * // "updateTime": "my_updateTime"
3212
+ * // }
3213
+ * }
3214
+ *
3215
+ * main().catch(e => {
3216
+ * console.error(e);
3217
+ * throw e;
3218
+ * });
3219
+ *
3220
+ * ```
3221
+ *
3222
+ * @param params - Parameters for request
3223
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3224
+ * @param callback - Optional callback that handles the response.
3225
+ * @returns A promise if used with async/await, or void if used with a callback.
3226
+ */
3227
+ get(
3228
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
3229
+ options: StreamMethodOptions
3230
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3231
+ get(
3232
+ params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
3233
+ options?: MethodOptions
3234
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>;
3235
+ get(
3236
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
3237
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3238
+ callback: BodyResponseCallback<Readable>
3239
+ ): void;
3240
+ get(
3241
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
3242
+ options: MethodOptions | BodyResponseCallback<Schema$Endpoint>,
3243
+ callback: BodyResponseCallback<Schema$Endpoint>
3244
+ ): void;
3245
+ get(
3246
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get,
3247
+ callback: BodyResponseCallback<Schema$Endpoint>
3248
+ ): void;
3249
+ get(callback: BodyResponseCallback<Schema$Endpoint>): void;
3250
+ get(
3251
+ paramsOrCallback?:
3252
+ | Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get
3253
+ | BodyResponseCallback<Schema$Endpoint>
3254
+ | BodyResponseCallback<Readable>,
3255
+ optionsOrCallback?:
3256
+ | MethodOptions
3257
+ | StreamMethodOptions
3258
+ | BodyResponseCallback<Schema$Endpoint>
3259
+ | BodyResponseCallback<Readable>,
3260
+ callback?:
3261
+ BodyResponseCallback<Schema$Endpoint> | BodyResponseCallback<Readable>
3262
+ ):
3263
+ | void
3264
+ | Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>
3265
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3266
+ let params = (paramsOrCallback ||
3267
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get;
3268
+ let options = (optionsOrCallback || {}) as MethodOptions;
3269
+
3270
+ if (typeof paramsOrCallback === 'function') {
3271
+ callback = paramsOrCallback;
3272
+ params =
3273
+ {} as Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get;
3274
+ options = {};
3275
+ }
3276
+
3277
+ if (typeof optionsOrCallback === 'function') {
3278
+ callback = optionsOrCallback;
3279
+ options = {};
3280
+ }
3281
+
3282
+ const rootUrl =
3283
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
3284
+ const parameters = {
3285
+ options: Object.assign(
3286
+ {
3287
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3288
+ method: 'GET',
3289
+ apiVersion: '',
3290
+ },
3291
+ options
3292
+ ),
3293
+ params,
3294
+ requiredParams: ['name'],
3295
+ pathParams: ['name'],
3296
+ context: this.context,
3297
+ };
3298
+ if (callback) {
3299
+ createAPIRequest<Schema$Endpoint>(
3300
+ parameters,
3301
+ callback as BodyResponseCallback<unknown>
3302
+ );
3303
+ } else {
3304
+ return createAPIRequest<Schema$Endpoint>(parameters);
3305
+ }
3306
+ }
3307
+
3308
+ /**
3309
+ * Lists Endpoints under an AI Application.
3310
+ * @example
3311
+ * ```js
3312
+ * // Before running the sample:
3313
+ * // - Enable the API at:
3314
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
3315
+ * // - Login into gcloud by running:
3316
+ * // ```sh
3317
+ * // $ gcloud auth application-default login
3318
+ * // ```
3319
+ * // - Install the npm module by running:
3320
+ * // ```sh
3321
+ * // $ npm install googleapis
3322
+ * // ```
3323
+ *
3324
+ * const {google} = require('googleapis');
3325
+ * const agentregistry = google.agentregistry('v1');
3326
+ *
3327
+ * async function main() {
3328
+ * const auth = new google.auth.GoogleAuth({
3329
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3330
+ * scopes: [
3331
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
3332
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
3333
+ * 'https://www.googleapis.com/auth/cloud-platform',
3334
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3335
+ * ],
3336
+ * });
3337
+ *
3338
+ * // Acquire an auth client, and bind it to all future calls
3339
+ * const authClient = await auth.getClient();
3340
+ * google.options({auth: authClient});
3341
+ *
3342
+ * // Do the magic
3343
+ * const res =
3344
+ * await agentregistry.projects.locations.aiApplications.endpoints.list({
3345
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
3346
+ * pageSize: 'placeholder-value',
3347
+ * // Optional. A token identifying a page of results the server should return.
3348
+ * pageToken: 'placeholder-value',
3349
+ * // Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
3350
+ * parent:
3351
+ * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
3352
+ * });
3353
+ * console.log(res.data);
3354
+ *
3355
+ * // Example response
3356
+ * // {
3357
+ * // "endpoints": [],
3358
+ * // "nextPageToken": "my_nextPageToken"
3359
+ * // }
3360
+ * }
3361
+ *
3362
+ * main().catch(e => {
3363
+ * console.error(e);
3364
+ * throw e;
3365
+ * });
3366
+ *
3367
+ * ```
3368
+ *
3369
+ * @param params - Parameters for request
3370
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3371
+ * @param callback - Optional callback that handles the response.
3372
+ * @returns A promise if used with async/await, or void if used with a callback.
3373
+ */
3374
+ list(
3375
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
3376
+ options: StreamMethodOptions
3377
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3378
+ list(
3379
+ params?: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
3380
+ options?: MethodOptions
3381
+ ): Promise<
3382
+ GaxiosResponseWithHTTP2<Schema$ListAiApplicationEndpointsResponse>
3383
+ >;
3384
+ list(
3385
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
3386
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3387
+ callback: BodyResponseCallback<Readable>
3388
+ ): void;
3389
+ list(
3390
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
3391
+ options:
3392
+ | MethodOptions
3393
+ | BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>,
3394
+ callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3395
+ ): void;
3396
+ list(
3397
+ params: Params$Resource$Projects$Locations$Aiapplications$Endpoints$List,
3398
+ callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3399
+ ): void;
3400
+ list(
3401
+ callback: BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3402
+ ): void;
3403
+ list(
3404
+ paramsOrCallback?:
3405
+ | Params$Resource$Projects$Locations$Aiapplications$Endpoints$List
3406
+ | BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3407
+ | BodyResponseCallback<Readable>,
3408
+ optionsOrCallback?:
3409
+ | MethodOptions
3410
+ | StreamMethodOptions
3411
+ | BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3412
+ | BodyResponseCallback<Readable>,
3413
+ callback?:
3414
+ | BodyResponseCallback<Schema$ListAiApplicationEndpointsResponse>
3415
+ | BodyResponseCallback<Readable>
3416
+ ):
3417
+ | void
3418
+ | Promise<
3419
+ GaxiosResponseWithHTTP2<Schema$ListAiApplicationEndpointsResponse>
3420
+ >
3421
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3422
+ let params = (paramsOrCallback ||
3423
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Endpoints$List;
3424
+ let options = (optionsOrCallback || {}) as MethodOptions;
3425
+
3426
+ if (typeof paramsOrCallback === 'function') {
3427
+ callback = paramsOrCallback;
3428
+ params =
3429
+ {} as Params$Resource$Projects$Locations$Aiapplications$Endpoints$List;
3430
+ options = {};
3431
+ }
3432
+
3433
+ if (typeof optionsOrCallback === 'function') {
3434
+ callback = optionsOrCallback;
3435
+ options = {};
3436
+ }
3437
+
3438
+ const rootUrl =
3439
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
3440
+ const parameters = {
3441
+ options: Object.assign(
3442
+ {
3443
+ url: (rootUrl + '/v1/{+parent}/endpoints').replace(
3444
+ /([^:]\/)\/+/g,
3445
+ '$1'
3446
+ ),
3447
+ method: 'GET',
3448
+ apiVersion: '',
3449
+ },
3450
+ options
3451
+ ),
3452
+ params,
3453
+ requiredParams: ['parent'],
3454
+ pathParams: ['parent'],
3455
+ context: this.context,
3456
+ };
3457
+ if (callback) {
3458
+ createAPIRequest<Schema$ListAiApplicationEndpointsResponse>(
3459
+ parameters,
3460
+ callback as BodyResponseCallback<unknown>
3461
+ );
3462
+ } else {
3463
+ return createAPIRequest<Schema$ListAiApplicationEndpointsResponse>(
3464
+ parameters
3465
+ );
3466
+ }
3467
+ }
3468
+ }
3469
+
3470
+ export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$Get extends StandardParameters {
3471
+ /**
3472
+ * Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/endpoints/{endpoint\}`
3473
+ */
3474
+ name?: string;
3475
+ }
3476
+ export interface Params$Resource$Projects$Locations$Aiapplications$Endpoints$List extends StandardParameters {
3477
+ /**
3478
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
3479
+ */
3480
+ pageSize?: number;
3481
+ /**
3482
+ * Optional. A token identifying a page of results the server should return.
3483
+ */
3484
+ pageToken?: string;
3485
+ /**
3486
+ * Required. Parent value (AI Application) for ListAiApplicationEndpointsRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
3487
+ */
3488
+ parent?: string;
3489
+ }
3490
+
3491
+ export class Resource$Projects$Locations$Aiapplications$Mcpservers {
3492
+ context: APIRequestContext;
3493
+ constructor(context: APIRequestContext) {
3494
+ this.context = context;
3495
+ }
3496
+
3497
+ /**
3498
+ * Gets details of a single McpServer under an AI Application.
3499
+ * @example
3500
+ * ```js
3501
+ * // Before running the sample:
3502
+ * // - Enable the API at:
3503
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
3504
+ * // - Login into gcloud by running:
3505
+ * // ```sh
3506
+ * // $ gcloud auth application-default login
3507
+ * // ```
3508
+ * // - Install the npm module by running:
3509
+ * // ```sh
3510
+ * // $ npm install googleapis
3511
+ * // ```
3512
+ *
3513
+ * const {google} = require('googleapis');
3514
+ * const agentregistry = google.agentregistry('v1');
3515
+ *
3516
+ * async function main() {
3517
+ * const auth = new google.auth.GoogleAuth({
3518
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3519
+ * scopes: [
3520
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
3521
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
3522
+ * 'https://www.googleapis.com/auth/cloud-platform',
3523
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3524
+ * ],
3525
+ * });
3526
+ *
3527
+ * // Acquire an auth client, and bind it to all future calls
3528
+ * const authClient = await auth.getClient();
3529
+ * google.options({auth: authClient});
3530
+ *
3531
+ * // Do the magic
3532
+ * const res =
3533
+ * await agentregistry.projects.locations.aiApplications.mcpServers.get({
3534
+ * // Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
3535
+ * name: 'projects/my-project/locations/my-location/aiApplications/my-aiApplication/mcpServers/my-mcpServer',
3536
+ * });
3537
+ * console.log(res.data);
3538
+ *
3539
+ * // Example response
3540
+ * // {
3541
+ * // "attributes": {},
3542
+ * // "createTime": "my_createTime",
3543
+ * // "description": "my_description",
3544
+ * // "displayName": "my_displayName",
3545
+ * // "interfaces": [],
3546
+ * // "mcpServerId": "my_mcpServerId",
3547
+ * // "name": "my_name",
3548
+ * // "tools": [],
3549
+ * // "updateTime": "my_updateTime"
2158
3550
  * // }
2159
3551
  * }
2160
3552
  *
@@ -2170,62 +3562,209 @@ export namespace agentregistry_v1 {
2170
3562
  * @param callback - Optional callback that handles the response.
2171
3563
  * @returns A promise if used with async/await, or void if used with a callback.
2172
3564
  */
2173
- testIamPermissions(
2174
- params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
3565
+ get(
3566
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
2175
3567
  options: StreamMethodOptions
2176
3568
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2177
- testIamPermissions(
2178
- params?: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
3569
+ get(
3570
+ params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
3571
+ options?: MethodOptions
3572
+ ): Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>;
3573
+ get(
3574
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
3575
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3576
+ callback: BodyResponseCallback<Readable>
3577
+ ): void;
3578
+ get(
3579
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
3580
+ options: MethodOptions | BodyResponseCallback<Schema$McpServer>,
3581
+ callback: BodyResponseCallback<Schema$McpServer>
3582
+ ): void;
3583
+ get(
3584
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get,
3585
+ callback: BodyResponseCallback<Schema$McpServer>
3586
+ ): void;
3587
+ get(callback: BodyResponseCallback<Schema$McpServer>): void;
3588
+ get(
3589
+ paramsOrCallback?:
3590
+ | Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get
3591
+ | BodyResponseCallback<Schema$McpServer>
3592
+ | BodyResponseCallback<Readable>,
3593
+ optionsOrCallback?:
3594
+ | MethodOptions
3595
+ | StreamMethodOptions
3596
+ | BodyResponseCallback<Schema$McpServer>
3597
+ | BodyResponseCallback<Readable>,
3598
+ callback?:
3599
+ BodyResponseCallback<Schema$McpServer> | BodyResponseCallback<Readable>
3600
+ ):
3601
+ | void
3602
+ | Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>
3603
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3604
+ let params = (paramsOrCallback ||
3605
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get;
3606
+ let options = (optionsOrCallback || {}) as MethodOptions;
3607
+
3608
+ if (typeof paramsOrCallback === 'function') {
3609
+ callback = paramsOrCallback;
3610
+ params =
3611
+ {} as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get;
3612
+ options = {};
3613
+ }
3614
+
3615
+ if (typeof optionsOrCallback === 'function') {
3616
+ callback = optionsOrCallback;
3617
+ options = {};
3618
+ }
3619
+
3620
+ const rootUrl =
3621
+ options.rootUrl || 'https://agentregistry.googleapis.com/';
3622
+ const parameters = {
3623
+ options: Object.assign(
3624
+ {
3625
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3626
+ method: 'GET',
3627
+ apiVersion: '',
3628
+ },
3629
+ options
3630
+ ),
3631
+ params,
3632
+ requiredParams: ['name'],
3633
+ pathParams: ['name'],
3634
+ context: this.context,
3635
+ };
3636
+ if (callback) {
3637
+ createAPIRequest<Schema$McpServer>(
3638
+ parameters,
3639
+ callback as BodyResponseCallback<unknown>
3640
+ );
3641
+ } else {
3642
+ return createAPIRequest<Schema$McpServer>(parameters);
3643
+ }
3644
+ }
3645
+
3646
+ /**
3647
+ * Lists McpServers under an AI Application.
3648
+ * @example
3649
+ * ```js
3650
+ * // Before running the sample:
3651
+ * // - Enable the API at:
3652
+ * // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
3653
+ * // - Login into gcloud by running:
3654
+ * // ```sh
3655
+ * // $ gcloud auth application-default login
3656
+ * // ```
3657
+ * // - Install the npm module by running:
3658
+ * // ```sh
3659
+ * // $ npm install googleapis
3660
+ * // ```
3661
+ *
3662
+ * const {google} = require('googleapis');
3663
+ * const agentregistry = google.agentregistry('v1');
3664
+ *
3665
+ * async function main() {
3666
+ * const auth = new google.auth.GoogleAuth({
3667
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3668
+ * scopes: [
3669
+ * 'https://www.googleapis.com/auth/agentregistry.read-only',
3670
+ * 'https://www.googleapis.com/auth/agentregistry.read-write',
3671
+ * 'https://www.googleapis.com/auth/cloud-platform',
3672
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3673
+ * ],
3674
+ * });
3675
+ *
3676
+ * // Acquire an auth client, and bind it to all future calls
3677
+ * const authClient = await auth.getClient();
3678
+ * google.options({auth: authClient});
3679
+ *
3680
+ * // Do the magic
3681
+ * const res =
3682
+ * await agentregistry.projects.locations.aiApplications.mcpServers.list({
3683
+ * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
3684
+ * pageSize: 'placeholder-value',
3685
+ * // Optional. A token identifying a page of results the server should return.
3686
+ * pageToken: 'placeholder-value',
3687
+ * // Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
3688
+ * parent:
3689
+ * 'projects/my-project/locations/my-location/aiApplications/my-aiApplication',
3690
+ * });
3691
+ * console.log(res.data);
3692
+ *
3693
+ * // Example response
3694
+ * // {
3695
+ * // "mcpServers": [],
3696
+ * // "nextPageToken": "my_nextPageToken"
3697
+ * // }
3698
+ * }
3699
+ *
3700
+ * main().catch(e => {
3701
+ * console.error(e);
3702
+ * throw e;
3703
+ * });
3704
+ *
3705
+ * ```
3706
+ *
3707
+ * @param params - Parameters for request
3708
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3709
+ * @param callback - Optional callback that handles the response.
3710
+ * @returns A promise if used with async/await, or void if used with a callback.
3711
+ */
3712
+ list(
3713
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
3714
+ options: StreamMethodOptions
3715
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3716
+ list(
3717
+ params?: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
2179
3718
  options?: MethodOptions
2180
3719
  ): Promise<
2181
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3720
+ GaxiosResponseWithHTTP2<Schema$ListAiApplicationMcpServersResponse>
2182
3721
  >;
2183
- testIamPermissions(
2184
- params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
3722
+ list(
3723
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
2185
3724
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2186
3725
  callback: BodyResponseCallback<Readable>
2187
3726
  ): void;
2188
- testIamPermissions(
2189
- params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
3727
+ list(
3728
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
2190
3729
  options:
2191
3730
  | MethodOptions
2192
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
2193
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3731
+ | BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>,
3732
+ callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2194
3733
  ): void;
2195
- testIamPermissions(
2196
- params: Params$Resource$Projects$Locations$Aiapplications$Testiampermissions,
2197
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3734
+ list(
3735
+ params: Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List,
3736
+ callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2198
3737
  ): void;
2199
- testIamPermissions(
2200
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3738
+ list(
3739
+ callback: BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2201
3740
  ): void;
2202
- testIamPermissions(
3741
+ list(
2203
3742
  paramsOrCallback?:
2204
- | Params$Resource$Projects$Locations$Aiapplications$Testiampermissions
2205
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3743
+ | Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List
3744
+ | BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2206
3745
  | BodyResponseCallback<Readable>,
2207
3746
  optionsOrCallback?:
2208
3747
  | MethodOptions
2209
3748
  | StreamMethodOptions
2210
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3749
+ | BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2211
3750
  | BodyResponseCallback<Readable>,
2212
3751
  callback?:
2213
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
3752
+ | BodyResponseCallback<Schema$ListAiApplicationMcpServersResponse>
2214
3753
  | BodyResponseCallback<Readable>
2215
3754
  ):
2216
3755
  | void
2217
3756
  | Promise<
2218
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3757
+ GaxiosResponseWithHTTP2<Schema$ListAiApplicationMcpServersResponse>
2219
3758
  >
2220
3759
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2221
3760
  let params = (paramsOrCallback ||
2222
- {}) as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
3761
+ {}) as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List;
2223
3762
  let options = (optionsOrCallback || {}) as MethodOptions;
2224
3763
 
2225
3764
  if (typeof paramsOrCallback === 'function') {
2226
3765
  callback = paramsOrCallback;
2227
3766
  params =
2228
- {} as Params$Resource$Projects$Locations$Aiapplications$Testiampermissions;
3767
+ {} as Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List;
2229
3768
  options = {};
2230
3769
  }
2231
3770
 
@@ -2239,64 +3778,52 @@ export namespace agentregistry_v1 {
2239
3778
  const parameters = {
2240
3779
  options: Object.assign(
2241
3780
  {
2242
- url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(
3781
+ url: (rootUrl + '/v1/{+parent}/mcpServers').replace(
2243
3782
  /([^:]\/)\/+/g,
2244
3783
  '$1'
2245
3784
  ),
2246
- method: 'POST',
3785
+ method: 'GET',
2247
3786
  apiVersion: '',
2248
3787
  },
2249
3788
  options
2250
3789
  ),
2251
3790
  params,
2252
- requiredParams: ['resource'],
2253
- pathParams: ['resource'],
3791
+ requiredParams: ['parent'],
3792
+ pathParams: ['parent'],
2254
3793
  context: this.context,
2255
3794
  };
2256
3795
  if (callback) {
2257
- createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
3796
+ createAPIRequest<Schema$ListAiApplicationMcpServersResponse>(
2258
3797
  parameters,
2259
3798
  callback as BodyResponseCallback<unknown>
2260
3799
  );
2261
3800
  } else {
2262
- return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
3801
+ return createAPIRequest<Schema$ListAiApplicationMcpServersResponse>(
2263
3802
  parameters
2264
3803
  );
2265
3804
  }
2266
3805
  }
2267
3806
  }
2268
3807
 
2269
- export interface Params$Resource$Projects$Locations$Aiapplications$Getiampolicy extends StandardParameters {
2270
- /**
2271
- * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2272
- */
2273
- 'options.requestedPolicyVersion'?: number;
3808
+ export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$Get extends StandardParameters {
2274
3809
  /**
2275
- * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3810
+ * Required. Name of the resource. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}/mcpServers/{mcp_server\}`
2276
3811
  */
2277
- resource?: string;
3812
+ name?: string;
2278
3813
  }
2279
- export interface Params$Resource$Projects$Locations$Aiapplications$Setiampolicy extends StandardParameters {
2280
- /**
2281
- * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2282
- */
2283
- resource?: string;
2284
-
3814
+ export interface Params$Resource$Projects$Locations$Aiapplications$Mcpservers$List extends StandardParameters {
2285
3815
  /**
2286
- * Request body metadata
3816
+ * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
2287
3817
  */
2288
- requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
2289
- }
2290
- export interface Params$Resource$Projects$Locations$Aiapplications$Testiampermissions extends StandardParameters {
3818
+ pageSize?: number;
2291
3819
  /**
2292
- * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3820
+ * Optional. A token identifying a page of results the server should return.
2293
3821
  */
2294
- resource?: string;
2295
-
3822
+ pageToken?: string;
2296
3823
  /**
2297
- * Request body metadata
3824
+ * Required. Parent value (AI Application) for ListAiApplicationMcpServersRequest. Format: `projects/{project\}/locations/{location\}/aiApplications/{ai_application\}`
2298
3825
  */
2299
- requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
3826
+ parent?: string;
2300
3827
  }
2301
3828
 
2302
3829
  export class Resource$Projects$Locations$Bindings {