@googleapis/agentregistry 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/index.d.ts +5 -0
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +3033 -0
- package/build/v1.js +919 -0
- package/build/v1.js.map +1 -0
- package/build/v1alpha.d.ts +1433 -65
- package/build/v1alpha.js +413 -0
- package/build/v1alpha.js.map +1 -1
- package/index.ts +12 -2
- package/package.json +1 -1
- package/v1.ts +5016 -0
- package/v1alpha.ts +2591 -308
package/v1alpha.ts
CHANGED
|
@@ -124,6 +124,31 @@ export namespace agentregistry_v1alpha {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Represents the skills of an Agent.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$A2ASkill {
|
|
131
|
+
/**
|
|
132
|
+
* Output only. A more detailed description of the skill.
|
|
133
|
+
*/
|
|
134
|
+
description?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Output only. Example prompts or scenarios this skill can handle.
|
|
137
|
+
*/
|
|
138
|
+
examples?: string[] | null;
|
|
139
|
+
/**
|
|
140
|
+
* Output only. A unique identifier for the agent's skill.
|
|
141
|
+
*/
|
|
142
|
+
id?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Output only. A human-readable name for the agent's skill.
|
|
145
|
+
*/
|
|
146
|
+
name?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Output only. Keywords describing the skill.
|
|
149
|
+
*/
|
|
150
|
+
tags?: string[] | null;
|
|
151
|
+
}
|
|
127
152
|
/**
|
|
128
153
|
* Represents an Agent. "A2A" below refers to the Agent-to-Agent protocol.
|
|
129
154
|
*/
|
|
@@ -167,7 +192,7 @@ export namespace agentregistry_v1alpha {
|
|
|
167
192
|
/**
|
|
168
193
|
* Output only. Skills the agent possesses, often obtained from the A2A Agent Card.
|
|
169
194
|
*/
|
|
170
|
-
skills?: Schema$
|
|
195
|
+
skills?: Schema$A2ASkill[];
|
|
171
196
|
/**
|
|
172
197
|
* Output only. A universally unique identifier for the Agent.
|
|
173
198
|
*/
|
|
@@ -219,6 +244,15 @@ export namespace agentregistry_v1alpha {
|
|
|
219
244
|
*/
|
|
220
245
|
title?: string | null;
|
|
221
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Direct write-only raw archive payload upload.
|
|
249
|
+
*/
|
|
250
|
+
export interface Schema$ArchiveUploadSource {
|
|
251
|
+
/**
|
|
252
|
+
* Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill package.
|
|
253
|
+
*/
|
|
254
|
+
archiveContent?: string | null;
|
|
255
|
+
}
|
|
222
256
|
/**
|
|
223
257
|
* The AuthProvider of the Binding.
|
|
224
258
|
*/
|
|
@@ -357,6 +391,44 @@ export namespace agentregistry_v1alpha {
|
|
|
357
391
|
*/
|
|
358
392
|
nextPageToken?: string | null;
|
|
359
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* Structured metadata attributes extracted from the package's local SKILL.md frontmatter.
|
|
396
|
+
*/
|
|
397
|
+
export interface Schema$Frontmatter {
|
|
398
|
+
/**
|
|
399
|
+
* Optional. Environmental dependencies or local sidecars.
|
|
400
|
+
*/
|
|
401
|
+
compatibility?: string | null;
|
|
402
|
+
/**
|
|
403
|
+
* Required. Functional description.
|
|
404
|
+
*/
|
|
405
|
+
description?: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Optional. License.
|
|
408
|
+
*/
|
|
409
|
+
license?: string | null;
|
|
410
|
+
/**
|
|
411
|
+
* Optional. Extensible flattened map mapping custom tags, authors, and version parameters.
|
|
412
|
+
*/
|
|
413
|
+
metadata?: {[key: string]: string} | null;
|
|
414
|
+
/**
|
|
415
|
+
* Required. The name of the skill.
|
|
416
|
+
*/
|
|
417
|
+
name?: string | null;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Specifications for Cloud Storage objects.
|
|
421
|
+
*/
|
|
422
|
+
export interface Schema$GcsSource {
|
|
423
|
+
/**
|
|
424
|
+
* Optional. Cloud Storage object generation ID. If not specified, the latest generation is used.
|
|
425
|
+
*/
|
|
426
|
+
generation?: string | null;
|
|
427
|
+
/**
|
|
428
|
+
* Required. Cloud Storage object URI. Format: `gs://{bucket_name\}/{object_name\}`
|
|
429
|
+
*/
|
|
430
|
+
uri?: string | null;
|
|
431
|
+
}
|
|
360
432
|
/**
|
|
361
433
|
* Represents the connection details for an Agent or MCP Server.
|
|
362
434
|
*/
|
|
@@ -452,6 +524,19 @@ export namespace agentregistry_v1alpha {
|
|
|
452
524
|
*/
|
|
453
525
|
unreachable?: string[] | null;
|
|
454
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* Response listing Publishers.
|
|
529
|
+
*/
|
|
530
|
+
export interface Schema$ListPublishersResponse {
|
|
531
|
+
/**
|
|
532
|
+
* Page offset continuation token.
|
|
533
|
+
*/
|
|
534
|
+
nextPageToken?: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* The returned list of Publishers.
|
|
537
|
+
*/
|
|
538
|
+
publishers?: Schema$Publisher[];
|
|
539
|
+
}
|
|
455
540
|
/**
|
|
456
541
|
* Message for response to listing Services
|
|
457
542
|
*/
|
|
@@ -465,6 +550,36 @@ export namespace agentregistry_v1alpha {
|
|
|
465
550
|
*/
|
|
466
551
|
services?: Schema$Service[];
|
|
467
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
* Response listing Revisions.
|
|
555
|
+
*/
|
|
556
|
+
export interface Schema$ListSkillRevisionsResponse {
|
|
557
|
+
/**
|
|
558
|
+
* Page offset continuation token.
|
|
559
|
+
*/
|
|
560
|
+
nextPageToken?: string | null;
|
|
561
|
+
/**
|
|
562
|
+
* Returned version snapshot list.
|
|
563
|
+
*/
|
|
564
|
+
skillRevisions?: Schema$SkillRevision[];
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Response structure listing logical Skills.
|
|
568
|
+
*/
|
|
569
|
+
export interface Schema$ListSkillsResponse {
|
|
570
|
+
/**
|
|
571
|
+
* Page continuation continuation token.
|
|
572
|
+
*/
|
|
573
|
+
nextPageToken?: string | null;
|
|
574
|
+
/**
|
|
575
|
+
* Returned container list.
|
|
576
|
+
*/
|
|
577
|
+
skills?: Schema$Skill[];
|
|
578
|
+
/**
|
|
579
|
+
* Unreachable locations or failures.
|
|
580
|
+
*/
|
|
581
|
+
unreachable?: string[] | null;
|
|
582
|
+
}
|
|
468
583
|
/**
|
|
469
584
|
* A resource that represents a Google Cloud location.
|
|
470
585
|
*/
|
|
@@ -619,6 +734,35 @@ export namespace agentregistry_v1alpha {
|
|
|
619
734
|
*/
|
|
620
735
|
type?: string | null;
|
|
621
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* Represents a verified Publisher of Skills. Prepopulated publishers include `publishers/cloud.google.com` and `publishers/workspace.google.com`.
|
|
739
|
+
*/
|
|
740
|
+
export interface Schema$Publisher {
|
|
741
|
+
/**
|
|
742
|
+
* Optional. Human readable display name of the publisher.
|
|
743
|
+
*/
|
|
744
|
+
displayName?: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Optional. URI pointing to official publisher documentation.
|
|
747
|
+
*/
|
|
748
|
+
documentationUri?: string | null;
|
|
749
|
+
/**
|
|
750
|
+
* Identifier. Resource name of the publisher. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
751
|
+
*/
|
|
752
|
+
name?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* Output only. The curation tier of the publisher.
|
|
755
|
+
*/
|
|
756
|
+
publisherTier?: string | null;
|
|
757
|
+
/**
|
|
758
|
+
* Optional. URI pointing to the support portal or email.
|
|
759
|
+
*/
|
|
760
|
+
supportUri?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* Required. The verified prefix (e.g. "snowflake-", "google-") associated with this publisher. The system uses this prefix to enforce name-squatting rules during Skill registration. Must be globally unique across all publishers.
|
|
763
|
+
*/
|
|
764
|
+
verifiedPrefix?: string | null;
|
|
765
|
+
}
|
|
622
766
|
/**
|
|
623
767
|
* Message for searching Agents
|
|
624
768
|
*/
|
|
@@ -679,6 +823,19 @@ export namespace agentregistry_v1alpha {
|
|
|
679
823
|
*/
|
|
680
824
|
nextPageToken?: string | null;
|
|
681
825
|
}
|
|
826
|
+
/**
|
|
827
|
+
* Response listing searched Skills.
|
|
828
|
+
*/
|
|
829
|
+
export interface Schema$SearchSkillsResponse {
|
|
830
|
+
/**
|
|
831
|
+
* Query page offset continuation token.
|
|
832
|
+
*/
|
|
833
|
+
nextPageToken?: string | null;
|
|
834
|
+
/**
|
|
835
|
+
* Matched Skills list.
|
|
836
|
+
*/
|
|
837
|
+
skills?: Schema$Skill[];
|
|
838
|
+
}
|
|
682
839
|
/**
|
|
683
840
|
* Represents a user-defined Service.
|
|
684
841
|
*/
|
|
@@ -725,29 +882,106 @@ export namespace agentregistry_v1alpha {
|
|
|
725
882
|
updateTime?: string | null;
|
|
726
883
|
}
|
|
727
884
|
/**
|
|
728
|
-
* Represents
|
|
885
|
+
* Represents an Executable Agent Skill or a Composite Tool Suite (Bundle). Sibling resource with Agent and McpServer under agentregistry.googleapis.com.
|
|
729
886
|
*/
|
|
730
887
|
export interface Schema$Skill {
|
|
731
888
|
/**
|
|
732
|
-
* Output only.
|
|
889
|
+
* Output only. Create time.
|
|
890
|
+
*/
|
|
891
|
+
createTime?: string | null;
|
|
892
|
+
/**
|
|
893
|
+
* Optional. The full resource name of the revision currently served by default (floating track). Format: `projects/{project\}/locations/{location\}/skills/{skill\}/revisions/{revision\}`
|
|
894
|
+
*/
|
|
895
|
+
defaultRevision?: string | null;
|
|
896
|
+
/**
|
|
897
|
+
* Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 characters.
|
|
733
898
|
*/
|
|
734
899
|
description?: string | null;
|
|
735
900
|
/**
|
|
736
|
-
*
|
|
901
|
+
* Required. Human-readable display name of the skill. Maximum length is 128 characters.
|
|
737
902
|
*/
|
|
738
|
-
|
|
903
|
+
displayName?: string | null;
|
|
739
904
|
/**
|
|
740
|
-
* Output only.
|
|
905
|
+
* Output only. Lightweight frontmatter metadata attributes copied from the default revision.
|
|
741
906
|
*/
|
|
742
|
-
|
|
907
|
+
frontmatter?: Schema$Frontmatter;
|
|
743
908
|
/**
|
|
744
|
-
*
|
|
909
|
+
* Optional. Input only. Optional nested initial revision payload to support standard one-shot creation. The server processes this field on input during creation but must never return it in responses.
|
|
910
|
+
*/
|
|
911
|
+
initialRevision?: Schema$SkillRevision;
|
|
912
|
+
/**
|
|
913
|
+
* Identifier. Resource name of the Skill. Format: `projects/{project\}/locations/{location\}/skills/{skill\}` The `{skill\}` segment acts as the resource ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create-docs`).
|
|
745
914
|
*/
|
|
746
915
|
name?: string | null;
|
|
747
916
|
/**
|
|
748
|
-
*
|
|
917
|
+
* Optional. The publisher resource associated with this skill. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}` The publisher dictates the allowed namespace prefixes for the skill's name and logical `skill_id` (e.g., Publisher `google` authorizes the `google-*` prefix).
|
|
749
918
|
*/
|
|
750
|
-
|
|
919
|
+
publisher?: string | null;
|
|
920
|
+
/**
|
|
921
|
+
* Output only. A stable, globally unique logical identifier for the skill. It is securely constructed by the backend by combining the associated `publisher`'s verified namespace and the skill's resource ID to enforce strict ownership. For example, the prefix `google-` is reserved exclusively for first-party Google publishers to prevent namespace squatting. Example: `urn:skill:google-workspace:create-docs`
|
|
922
|
+
*/
|
|
923
|
+
skillId?: string | null;
|
|
924
|
+
/**
|
|
925
|
+
* Output only. The system-managed state of the skill.
|
|
926
|
+
*/
|
|
927
|
+
state?: string | null;
|
|
928
|
+
/**
|
|
929
|
+
* Required. User-managed target state of the skill.
|
|
930
|
+
*/
|
|
931
|
+
targetState?: string | null;
|
|
932
|
+
/**
|
|
933
|
+
* Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
|
|
934
|
+
*/
|
|
935
|
+
type?: string | null;
|
|
936
|
+
/**
|
|
937
|
+
* Output only. Universally unique identifier (UUID4) for the logical container.
|
|
938
|
+
*/
|
|
939
|
+
uid?: string | null;
|
|
940
|
+
/**
|
|
941
|
+
* Output only. Update time.
|
|
942
|
+
*/
|
|
943
|
+
updateTime?: string | null;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Represents an immutable, versioned snapshot of a Skill package.
|
|
947
|
+
*/
|
|
948
|
+
export interface Schema$SkillRevision {
|
|
949
|
+
/**
|
|
950
|
+
* Optional. Immutable. Direct write-only raw archive upload source.
|
|
951
|
+
*/
|
|
952
|
+
archiveUploadSource?: Schema$ArchiveUploadSource;
|
|
953
|
+
/**
|
|
954
|
+
* Output only. Revision creation timestamp.
|
|
955
|
+
*/
|
|
956
|
+
createTime?: string | null;
|
|
957
|
+
/**
|
|
958
|
+
* Output only. Extracted YAML frontmatter configuration snapshot.
|
|
959
|
+
*/
|
|
960
|
+
frontmatter?: Schema$Frontmatter;
|
|
961
|
+
/**
|
|
962
|
+
* Optional. Immutable. Cloud Storage object generation URI.
|
|
963
|
+
*/
|
|
964
|
+
gcsSource?: Schema$GcsSource;
|
|
965
|
+
/**
|
|
966
|
+
* Identifier. Resource name of the SkillRevision. Format: `projects/{project\}/locations/{location\}/skills/{skill\}/revisions/{revision\}`
|
|
967
|
+
*/
|
|
968
|
+
name?: string | null;
|
|
969
|
+
/**
|
|
970
|
+
* Output only. Cryptographic SHA-256 integrity and deduplication digest of the payload zip.
|
|
971
|
+
*/
|
|
972
|
+
sha256Hash?: string | null;
|
|
973
|
+
/**
|
|
974
|
+
* Output only. Size of the compiled zip payload in bytes (assists client download progress).
|
|
975
|
+
*/
|
|
976
|
+
sizeBytes?: string | null;
|
|
977
|
+
/**
|
|
978
|
+
* Output only. The system-managed lifecycle state of this revision.
|
|
979
|
+
*/
|
|
980
|
+
state?: string | null;
|
|
981
|
+
/**
|
|
982
|
+
* Output only. Universally unique identifier (UUID4) for the skill revision.
|
|
983
|
+
*/
|
|
984
|
+
uid?: string | null;
|
|
751
985
|
}
|
|
752
986
|
/**
|
|
753
987
|
* The source of the Binding.
|
|
@@ -818,7 +1052,9 @@ export namespace agentregistry_v1alpha {
|
|
|
818
1052
|
endpoints: Resource$Projects$Locations$Endpoints;
|
|
819
1053
|
mcpServers: Resource$Projects$Locations$Mcpservers;
|
|
820
1054
|
operations: Resource$Projects$Locations$Operations;
|
|
1055
|
+
publishers: Resource$Projects$Locations$Publishers;
|
|
821
1056
|
services: Resource$Projects$Locations$Services;
|
|
1057
|
+
skills: Resource$Projects$Locations$Skills;
|
|
822
1058
|
constructor(context: APIRequestContext) {
|
|
823
1059
|
this.context = context;
|
|
824
1060
|
this.agents = new Resource$Projects$Locations$Agents(this.context);
|
|
@@ -830,7 +1066,11 @@ export namespace agentregistry_v1alpha {
|
|
|
830
1066
|
this.operations = new Resource$Projects$Locations$Operations(
|
|
831
1067
|
this.context
|
|
832
1068
|
);
|
|
1069
|
+
this.publishers = new Resource$Projects$Locations$Publishers(
|
|
1070
|
+
this.context
|
|
1071
|
+
);
|
|
833
1072
|
this.services = new Resource$Projects$Locations$Services(this.context);
|
|
1073
|
+
this.skills = new Resource$Projects$Locations$Skills(this.context);
|
|
834
1074
|
}
|
|
835
1075
|
|
|
836
1076
|
/**
|
|
@@ -928,8 +1168,7 @@ export namespace agentregistry_v1alpha {
|
|
|
928
1168
|
| BodyResponseCallback<Schema$Location>
|
|
929
1169
|
| BodyResponseCallback<Readable>,
|
|
930
1170
|
callback?:
|
|
931
|
-
|
|
932
|
-
| BodyResponseCallback<Readable>
|
|
1171
|
+
BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
|
|
933
1172
|
):
|
|
934
1173
|
| void
|
|
935
1174
|
| Promise<GaxiosResponseWithHTTP2<Schema$Location>>
|
|
@@ -1057,8 +1296,7 @@ export namespace agentregistry_v1alpha {
|
|
|
1057
1296
|
list(
|
|
1058
1297
|
params: Params$Resource$Projects$Locations$List,
|
|
1059
1298
|
options:
|
|
1060
|
-
|
|
|
1061
|
-
| BodyResponseCallback<Schema$ListLocationsResponse>,
|
|
1299
|
+
MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
|
|
1062
1300
|
callback: BodyResponseCallback<Schema$ListLocationsResponse>
|
|
1063
1301
|
): void;
|
|
1064
1302
|
list(
|
|
@@ -1268,8 +1506,7 @@ export namespace agentregistry_v1alpha {
|
|
|
1268
1506
|
| BodyResponseCallback<Schema$Agent>
|
|
1269
1507
|
| BodyResponseCallback<Readable>,
|
|
1270
1508
|
callback?:
|
|
1271
|
-
|
|
1272
|
-
| BodyResponseCallback<Readable>
|
|
1509
|
+
BodyResponseCallback<Schema$Agent> | BodyResponseCallback<Readable>
|
|
1273
1510
|
):
|
|
1274
1511
|
| void
|
|
1275
1512
|
| Promise<GaxiosResponseWithHTTP2<Schema$Agent>>
|
|
@@ -1553,8 +1790,7 @@ export namespace agentregistry_v1alpha {
|
|
|
1553
1790
|
search(
|
|
1554
1791
|
params: Params$Resource$Projects$Locations$Agents$Search,
|
|
1555
1792
|
options:
|
|
1556
|
-
|
|
|
1557
|
-
| BodyResponseCallback<Schema$SearchAgentsResponse>,
|
|
1793
|
+
MethodOptions | BodyResponseCallback<Schema$SearchAgentsResponse>,
|
|
1558
1794
|
callback: BodyResponseCallback<Schema$SearchAgentsResponse>
|
|
1559
1795
|
): void;
|
|
1560
1796
|
search(
|
|
@@ -1693,8 +1929,10 @@ export namespace agentregistry_v1alpha {
|
|
|
1693
1929
|
* const auth = new google.auth.GoogleAuth({
|
|
1694
1930
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1695
1931
|
* scopes: [
|
|
1932
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1696
1933
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1697
1934
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1935
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1698
1936
|
* ],
|
|
1699
1937
|
* });
|
|
1700
1938
|
*
|
|
@@ -1784,8 +2022,7 @@ export namespace agentregistry_v1alpha {
|
|
|
1784
2022
|
| BodyResponseCallback<Schema$Operation>
|
|
1785
2023
|
| BodyResponseCallback<Readable>,
|
|
1786
2024
|
callback?:
|
|
1787
|
-
|
|
1788
|
-
| BodyResponseCallback<Readable>
|
|
2025
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
1789
2026
|
):
|
|
1790
2027
|
| void
|
|
1791
2028
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -1857,8 +2094,10 @@ export namespace agentregistry_v1alpha {
|
|
|
1857
2094
|
* const auth = new google.auth.GoogleAuth({
|
|
1858
2095
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1859
2096
|
* scopes: [
|
|
2097
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1860
2098
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1861
2099
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2100
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1862
2101
|
* ],
|
|
1863
2102
|
* });
|
|
1864
2103
|
*
|
|
@@ -1931,8 +2170,7 @@ export namespace agentregistry_v1alpha {
|
|
|
1931
2170
|
| BodyResponseCallback<Schema$Operation>
|
|
1932
2171
|
| BodyResponseCallback<Readable>,
|
|
1933
2172
|
callback?:
|
|
1934
|
-
|
|
1935
|
-
| BodyResponseCallback<Readable>
|
|
2173
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
1936
2174
|
):
|
|
1937
2175
|
| void
|
|
1938
2176
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -2236,8 +2474,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2236
2474
|
| BodyResponseCallback<Schema$Binding>
|
|
2237
2475
|
| BodyResponseCallback<Readable>,
|
|
2238
2476
|
callback?:
|
|
2239
|
-
|
|
2240
|
-
| BodyResponseCallback<Readable>
|
|
2477
|
+
BodyResponseCallback<Schema$Binding> | BodyResponseCallback<Readable>
|
|
2241
2478
|
):
|
|
2242
2479
|
| void
|
|
2243
2480
|
| Promise<GaxiosResponseWithHTTP2<Schema$Binding>>
|
|
@@ -2367,8 +2604,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2367
2604
|
list(
|
|
2368
2605
|
params: Params$Resource$Projects$Locations$Bindings$List,
|
|
2369
2606
|
options:
|
|
2370
|
-
|
|
|
2371
|
-
| BodyResponseCallback<Schema$ListBindingsResponse>,
|
|
2607
|
+
MethodOptions | BodyResponseCallback<Schema$ListBindingsResponse>,
|
|
2372
2608
|
callback: BodyResponseCallback<Schema$ListBindingsResponse>
|
|
2373
2609
|
): void;
|
|
2374
2610
|
list(
|
|
@@ -2460,8 +2696,10 @@ export namespace agentregistry_v1alpha {
|
|
|
2460
2696
|
* const auth = new google.auth.GoogleAuth({
|
|
2461
2697
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2462
2698
|
* scopes: [
|
|
2699
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2463
2700
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2464
2701
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2702
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2465
2703
|
* ],
|
|
2466
2704
|
* });
|
|
2467
2705
|
*
|
|
@@ -2551,8 +2789,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2551
2789
|
| BodyResponseCallback<Schema$Operation>
|
|
2552
2790
|
| BodyResponseCallback<Readable>,
|
|
2553
2791
|
callback?:
|
|
2554
|
-
|
|
2555
|
-
| BodyResponseCallback<Readable>
|
|
2792
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
2556
2793
|
):
|
|
2557
2794
|
| void
|
|
2558
2795
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -2804,8 +3041,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2804
3041
|
| BodyResponseCallback<Schema$Endpoint>
|
|
2805
3042
|
| BodyResponseCallback<Readable>,
|
|
2806
3043
|
callback?:
|
|
2807
|
-
|
|
2808
|
-
| BodyResponseCallback<Readable>
|
|
3044
|
+
BodyResponseCallback<Schema$Endpoint> | BodyResponseCallback<Readable>
|
|
2809
3045
|
):
|
|
2810
3046
|
| void
|
|
2811
3047
|
| Promise<GaxiosResponseWithHTTP2<Schema$Endpoint>>
|
|
@@ -2933,8 +3169,7 @@ export namespace agentregistry_v1alpha {
|
|
|
2933
3169
|
list(
|
|
2934
3170
|
params: Params$Resource$Projects$Locations$Endpoints$List,
|
|
2935
3171
|
options:
|
|
2936
|
-
|
|
|
2937
|
-
| BodyResponseCallback<Schema$ListEndpointsResponse>,
|
|
3172
|
+
MethodOptions | BodyResponseCallback<Schema$ListEndpointsResponse>,
|
|
2938
3173
|
callback: BodyResponseCallback<Schema$ListEndpointsResponse>
|
|
2939
3174
|
): void;
|
|
2940
3175
|
list(
|
|
@@ -3136,8 +3371,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3136
3371
|
| BodyResponseCallback<Schema$McpServer>
|
|
3137
3372
|
| BodyResponseCallback<Readable>,
|
|
3138
3373
|
callback?:
|
|
3139
|
-
|
|
3140
|
-
| BodyResponseCallback<Readable>
|
|
3374
|
+
BodyResponseCallback<Schema$McpServer> | BodyResponseCallback<Readable>
|
|
3141
3375
|
):
|
|
3142
3376
|
| void
|
|
3143
3377
|
| Promise<GaxiosResponseWithHTTP2<Schema$McpServer>>
|
|
@@ -3267,8 +3501,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3267
3501
|
list(
|
|
3268
3502
|
params: Params$Resource$Projects$Locations$Mcpservers$List,
|
|
3269
3503
|
options:
|
|
3270
|
-
|
|
|
3271
|
-
| BodyResponseCallback<Schema$ListMcpServersResponse>,
|
|
3504
|
+
MethodOptions | BodyResponseCallback<Schema$ListMcpServersResponse>,
|
|
3272
3505
|
callback: BodyResponseCallback<Schema$ListMcpServersResponse>
|
|
3273
3506
|
): void;
|
|
3274
3507
|
list(
|
|
@@ -3423,8 +3656,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3423
3656
|
search(
|
|
3424
3657
|
params: Params$Resource$Projects$Locations$Mcpservers$Search,
|
|
3425
3658
|
options:
|
|
3426
|
-
|
|
|
3427
|
-
| BodyResponseCallback<Schema$SearchMcpServersResponse>,
|
|
3659
|
+
MethodOptions | BodyResponseCallback<Schema$SearchMcpServersResponse>,
|
|
3428
3660
|
callback: BodyResponseCallback<Schema$SearchMcpServersResponse>
|
|
3429
3661
|
): void;
|
|
3430
3662
|
search(
|
|
@@ -3637,8 +3869,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3637
3869
|
| BodyResponseCallback<Schema$Empty>
|
|
3638
3870
|
| BodyResponseCallback<Readable>,
|
|
3639
3871
|
callback?:
|
|
3640
|
-
|
|
3641
|
-
| BodyResponseCallback<Readable>
|
|
3872
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
3642
3873
|
):
|
|
3643
3874
|
| void
|
|
3644
3875
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -3776,8 +4007,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3776
4007
|
| BodyResponseCallback<Schema$Empty>
|
|
3777
4008
|
| BodyResponseCallback<Readable>,
|
|
3778
4009
|
callback?:
|
|
3779
|
-
|
|
3780
|
-
| BodyResponseCallback<Readable>
|
|
4010
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
3781
4011
|
):
|
|
3782
4012
|
| void
|
|
3783
4013
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -3920,8 +4150,7 @@ export namespace agentregistry_v1alpha {
|
|
|
3920
4150
|
| BodyResponseCallback<Schema$Operation>
|
|
3921
4151
|
| BodyResponseCallback<Readable>,
|
|
3922
4152
|
callback?:
|
|
3923
|
-
|
|
3924
|
-
| BodyResponseCallback<Readable>
|
|
4153
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3925
4154
|
):
|
|
3926
4155
|
| void
|
|
3927
4156
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -4050,8 +4279,7 @@ export namespace agentregistry_v1alpha {
|
|
|
4050
4279
|
list(
|
|
4051
4280
|
params: Params$Resource$Projects$Locations$Operations$List,
|
|
4052
4281
|
options:
|
|
4053
|
-
|
|
|
4054
|
-
| BodyResponseCallback<Schema$ListOperationsResponse>,
|
|
4282
|
+
MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
|
|
4055
4283
|
callback: BodyResponseCallback<Schema$ListOperationsResponse>
|
|
4056
4284
|
): void;
|
|
4057
4285
|
list(
|
|
@@ -4167,14 +4395,14 @@ export namespace agentregistry_v1alpha {
|
|
|
4167
4395
|
returnPartialSuccess?: boolean;
|
|
4168
4396
|
}
|
|
4169
4397
|
|
|
4170
|
-
export class Resource$Projects$Locations$
|
|
4398
|
+
export class Resource$Projects$Locations$Publishers {
|
|
4171
4399
|
context: APIRequestContext;
|
|
4172
4400
|
constructor(context: APIRequestContext) {
|
|
4173
4401
|
this.context = context;
|
|
4174
4402
|
}
|
|
4175
4403
|
|
|
4176
4404
|
/**
|
|
4177
|
-
*
|
|
4405
|
+
* Fetches details of a specific Publisher.
|
|
4178
4406
|
* @example
|
|
4179
4407
|
* ```js
|
|
4180
4408
|
* // Before running the sample:
|
|
@@ -4196,8 +4424,10 @@ export namespace agentregistry_v1alpha {
|
|
|
4196
4424
|
* const auth = new google.auth.GoogleAuth({
|
|
4197
4425
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4198
4426
|
* scopes: [
|
|
4427
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4199
4428
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4200
4429
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4430
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4201
4431
|
* ],
|
|
4202
4432
|
* });
|
|
4203
4433
|
*
|
|
@@ -4206,40 +4436,20 @@ export namespace agentregistry_v1alpha {
|
|
|
4206
4436
|
* google.options({auth: authClient});
|
|
4207
4437
|
*
|
|
4208
4438
|
* // Do the magic
|
|
4209
|
-
* const res = await agentregistry.projects.locations.
|
|
4210
|
-
* // Required.
|
|
4211
|
-
*
|
|
4212
|
-
* // 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).
|
|
4213
|
-
* requestId: 'placeholder-value',
|
|
4214
|
-
* // 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-/`.
|
|
4215
|
-
* serviceId: 'placeholder-value',
|
|
4216
|
-
*
|
|
4217
|
-
* // Request body metadata
|
|
4218
|
-
* requestBody: {
|
|
4219
|
-
* // request body parameters
|
|
4220
|
-
* // {
|
|
4221
|
-
* // "agentSpec": {},
|
|
4222
|
-
* // "createTime": "my_createTime",
|
|
4223
|
-
* // "description": "my_description",
|
|
4224
|
-
* // "displayName": "my_displayName",
|
|
4225
|
-
* // "endpointSpec": {},
|
|
4226
|
-
* // "interfaces": [],
|
|
4227
|
-
* // "mcpServerSpec": {},
|
|
4228
|
-
* // "name": "my_name",
|
|
4229
|
-
* // "registryResource": "my_registryResource",
|
|
4230
|
-
* // "updateTime": "my_updateTime"
|
|
4231
|
-
* // }
|
|
4232
|
-
* },
|
|
4439
|
+
* const res = await agentregistry.projects.locations.publishers.get({
|
|
4440
|
+
* // Required. Target publisher resource name. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
4441
|
+
* name: 'projects/my-project/locations/my-location/publishers/my-publisher',
|
|
4233
4442
|
* });
|
|
4234
4443
|
* console.log(res.data);
|
|
4235
4444
|
*
|
|
4236
4445
|
* // Example response
|
|
4237
4446
|
* // {
|
|
4238
|
-
* // "
|
|
4239
|
-
* // "
|
|
4240
|
-
* // "metadata": {},
|
|
4447
|
+
* // "displayName": "my_displayName",
|
|
4448
|
+
* // "documentationUri": "my_documentationUri",
|
|
4241
4449
|
* // "name": "my_name",
|
|
4242
|
-
* // "
|
|
4450
|
+
* // "publisherTier": "my_publisherTier",
|
|
4451
|
+
* // "supportUri": "my_supportUri",
|
|
4452
|
+
* // "verifiedPrefix": "my_verifiedPrefix"
|
|
4243
4453
|
* // }
|
|
4244
4454
|
* }
|
|
4245
4455
|
*
|
|
@@ -4255,30 +4465,371 @@ export namespace agentregistry_v1alpha {
|
|
|
4255
4465
|
* @param callback - Optional callback that handles the response.
|
|
4256
4466
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4257
4467
|
*/
|
|
4258
|
-
|
|
4259
|
-
params: Params$Resource$Projects$Locations$
|
|
4468
|
+
get(
|
|
4469
|
+
params: Params$Resource$Projects$Locations$Publishers$Get,
|
|
4260
4470
|
options: StreamMethodOptions
|
|
4261
4471
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4262
|
-
|
|
4263
|
-
params?: Params$Resource$Projects$Locations$
|
|
4472
|
+
get(
|
|
4473
|
+
params?: Params$Resource$Projects$Locations$Publishers$Get,
|
|
4264
4474
|
options?: MethodOptions
|
|
4265
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
4266
|
-
|
|
4267
|
-
params: Params$Resource$Projects$Locations$
|
|
4475
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Publisher>>;
|
|
4476
|
+
get(
|
|
4477
|
+
params: Params$Resource$Projects$Locations$Publishers$Get,
|
|
4268
4478
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4269
4479
|
callback: BodyResponseCallback<Readable>
|
|
4270
4480
|
): void;
|
|
4271
|
-
|
|
4272
|
-
params: Params$Resource$Projects$Locations$
|
|
4273
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4274
|
-
callback: BodyResponseCallback<Schema$
|
|
4481
|
+
get(
|
|
4482
|
+
params: Params$Resource$Projects$Locations$Publishers$Get,
|
|
4483
|
+
options: MethodOptions | BodyResponseCallback<Schema$Publisher>,
|
|
4484
|
+
callback: BodyResponseCallback<Schema$Publisher>
|
|
4275
4485
|
): void;
|
|
4276
|
-
|
|
4277
|
-
params: Params$Resource$Projects$Locations$
|
|
4278
|
-
callback: BodyResponseCallback<Schema$
|
|
4486
|
+
get(
|
|
4487
|
+
params: Params$Resource$Projects$Locations$Publishers$Get,
|
|
4488
|
+
callback: BodyResponseCallback<Schema$Publisher>
|
|
4279
4489
|
): void;
|
|
4280
|
-
|
|
4281
|
-
|
|
4490
|
+
get(callback: BodyResponseCallback<Schema$Publisher>): void;
|
|
4491
|
+
get(
|
|
4492
|
+
paramsOrCallback?:
|
|
4493
|
+
| Params$Resource$Projects$Locations$Publishers$Get
|
|
4494
|
+
| BodyResponseCallback<Schema$Publisher>
|
|
4495
|
+
| BodyResponseCallback<Readable>,
|
|
4496
|
+
optionsOrCallback?:
|
|
4497
|
+
| MethodOptions
|
|
4498
|
+
| StreamMethodOptions
|
|
4499
|
+
| BodyResponseCallback<Schema$Publisher>
|
|
4500
|
+
| BodyResponseCallback<Readable>,
|
|
4501
|
+
callback?:
|
|
4502
|
+
BodyResponseCallback<Schema$Publisher> | BodyResponseCallback<Readable>
|
|
4503
|
+
):
|
|
4504
|
+
| void
|
|
4505
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Publisher>>
|
|
4506
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4507
|
+
let params = (paramsOrCallback ||
|
|
4508
|
+
{}) as Params$Resource$Projects$Locations$Publishers$Get;
|
|
4509
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4510
|
+
|
|
4511
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4512
|
+
callback = paramsOrCallback;
|
|
4513
|
+
params = {} as Params$Resource$Projects$Locations$Publishers$Get;
|
|
4514
|
+
options = {};
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4517
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4518
|
+
callback = optionsOrCallback;
|
|
4519
|
+
options = {};
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
const rootUrl =
|
|
4523
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
4524
|
+
const parameters = {
|
|
4525
|
+
options: Object.assign(
|
|
4526
|
+
{
|
|
4527
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4528
|
+
method: 'GET',
|
|
4529
|
+
apiVersion: '',
|
|
4530
|
+
},
|
|
4531
|
+
options
|
|
4532
|
+
),
|
|
4533
|
+
params,
|
|
4534
|
+
requiredParams: ['name'],
|
|
4535
|
+
pathParams: ['name'],
|
|
4536
|
+
context: this.context,
|
|
4537
|
+
};
|
|
4538
|
+
if (callback) {
|
|
4539
|
+
createAPIRequest<Schema$Publisher>(
|
|
4540
|
+
parameters,
|
|
4541
|
+
callback as BodyResponseCallback<unknown>
|
|
4542
|
+
);
|
|
4543
|
+
} else {
|
|
4544
|
+
return createAPIRequest<Schema$Publisher>(parameters);
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
/**
|
|
4549
|
+
* Lists all Publishers in a location.
|
|
4550
|
+
* @example
|
|
4551
|
+
* ```js
|
|
4552
|
+
* // Before running the sample:
|
|
4553
|
+
* // - Enable the API at:
|
|
4554
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4555
|
+
* // - Login into gcloud by running:
|
|
4556
|
+
* // ```sh
|
|
4557
|
+
* // $ gcloud auth application-default login
|
|
4558
|
+
* // ```
|
|
4559
|
+
* // - Install the npm module by running:
|
|
4560
|
+
* // ```sh
|
|
4561
|
+
* // $ npm install googleapis
|
|
4562
|
+
* // ```
|
|
4563
|
+
*
|
|
4564
|
+
* const {google} = require('googleapis');
|
|
4565
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4566
|
+
*
|
|
4567
|
+
* async function main() {
|
|
4568
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4569
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4570
|
+
* scopes: [
|
|
4571
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4572
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4573
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4574
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4575
|
+
* ],
|
|
4576
|
+
* });
|
|
4577
|
+
*
|
|
4578
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4579
|
+
* const authClient = await auth.getClient();
|
|
4580
|
+
* google.options({auth: authClient});
|
|
4581
|
+
*
|
|
4582
|
+
* // Do the magic
|
|
4583
|
+
* const res = await agentregistry.projects.locations.publishers.list({
|
|
4584
|
+
* // Optional. Page limit size.
|
|
4585
|
+
* pageSize: 'placeholder-value',
|
|
4586
|
+
* // Optional. Page offset token.
|
|
4587
|
+
* pageToken: 'placeholder-value',
|
|
4588
|
+
* // Required. Parent location to query. Format: `projects/{project\}/locations/{location\}`
|
|
4589
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
4590
|
+
* });
|
|
4591
|
+
* console.log(res.data);
|
|
4592
|
+
*
|
|
4593
|
+
* // Example response
|
|
4594
|
+
* // {
|
|
4595
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4596
|
+
* // "publishers": []
|
|
4597
|
+
* // }
|
|
4598
|
+
* }
|
|
4599
|
+
*
|
|
4600
|
+
* main().catch(e => {
|
|
4601
|
+
* console.error(e);
|
|
4602
|
+
* throw e;
|
|
4603
|
+
* });
|
|
4604
|
+
*
|
|
4605
|
+
* ```
|
|
4606
|
+
*
|
|
4607
|
+
* @param params - Parameters for request
|
|
4608
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4609
|
+
* @param callback - Optional callback that handles the response.
|
|
4610
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4611
|
+
*/
|
|
4612
|
+
list(
|
|
4613
|
+
params: Params$Resource$Projects$Locations$Publishers$List,
|
|
4614
|
+
options: StreamMethodOptions
|
|
4615
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4616
|
+
list(
|
|
4617
|
+
params?: Params$Resource$Projects$Locations$Publishers$List,
|
|
4618
|
+
options?: MethodOptions
|
|
4619
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListPublishersResponse>>;
|
|
4620
|
+
list(
|
|
4621
|
+
params: Params$Resource$Projects$Locations$Publishers$List,
|
|
4622
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4623
|
+
callback: BodyResponseCallback<Readable>
|
|
4624
|
+
): void;
|
|
4625
|
+
list(
|
|
4626
|
+
params: Params$Resource$Projects$Locations$Publishers$List,
|
|
4627
|
+
options:
|
|
4628
|
+
MethodOptions | BodyResponseCallback<Schema$ListPublishersResponse>,
|
|
4629
|
+
callback: BodyResponseCallback<Schema$ListPublishersResponse>
|
|
4630
|
+
): void;
|
|
4631
|
+
list(
|
|
4632
|
+
params: Params$Resource$Projects$Locations$Publishers$List,
|
|
4633
|
+
callback: BodyResponseCallback<Schema$ListPublishersResponse>
|
|
4634
|
+
): void;
|
|
4635
|
+
list(callback: BodyResponseCallback<Schema$ListPublishersResponse>): void;
|
|
4636
|
+
list(
|
|
4637
|
+
paramsOrCallback?:
|
|
4638
|
+
| Params$Resource$Projects$Locations$Publishers$List
|
|
4639
|
+
| BodyResponseCallback<Schema$ListPublishersResponse>
|
|
4640
|
+
| BodyResponseCallback<Readable>,
|
|
4641
|
+
optionsOrCallback?:
|
|
4642
|
+
| MethodOptions
|
|
4643
|
+
| StreamMethodOptions
|
|
4644
|
+
| BodyResponseCallback<Schema$ListPublishersResponse>
|
|
4645
|
+
| BodyResponseCallback<Readable>,
|
|
4646
|
+
callback?:
|
|
4647
|
+
| BodyResponseCallback<Schema$ListPublishersResponse>
|
|
4648
|
+
| BodyResponseCallback<Readable>
|
|
4649
|
+
):
|
|
4650
|
+
| void
|
|
4651
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListPublishersResponse>>
|
|
4652
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4653
|
+
let params = (paramsOrCallback ||
|
|
4654
|
+
{}) as Params$Resource$Projects$Locations$Publishers$List;
|
|
4655
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4656
|
+
|
|
4657
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4658
|
+
callback = paramsOrCallback;
|
|
4659
|
+
params = {} as Params$Resource$Projects$Locations$Publishers$List;
|
|
4660
|
+
options = {};
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4664
|
+
callback = optionsOrCallback;
|
|
4665
|
+
options = {};
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4668
|
+
const rootUrl =
|
|
4669
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
4670
|
+
const parameters = {
|
|
4671
|
+
options: Object.assign(
|
|
4672
|
+
{
|
|
4673
|
+
url: (rootUrl + '/v1alpha/{+parent}/publishers').replace(
|
|
4674
|
+
/([^:]\/)\/+/g,
|
|
4675
|
+
'$1'
|
|
4676
|
+
),
|
|
4677
|
+
method: 'GET',
|
|
4678
|
+
apiVersion: '',
|
|
4679
|
+
},
|
|
4680
|
+
options
|
|
4681
|
+
),
|
|
4682
|
+
params,
|
|
4683
|
+
requiredParams: ['parent'],
|
|
4684
|
+
pathParams: ['parent'],
|
|
4685
|
+
context: this.context,
|
|
4686
|
+
};
|
|
4687
|
+
if (callback) {
|
|
4688
|
+
createAPIRequest<Schema$ListPublishersResponse>(
|
|
4689
|
+
parameters,
|
|
4690
|
+
callback as BodyResponseCallback<unknown>
|
|
4691
|
+
);
|
|
4692
|
+
} else {
|
|
4693
|
+
return createAPIRequest<Schema$ListPublishersResponse>(parameters);
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
|
|
4698
|
+
export interface Params$Resource$Projects$Locations$Publishers$Get extends StandardParameters {
|
|
4699
|
+
/**
|
|
4700
|
+
* Required. Target publisher resource name. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
4701
|
+
*/
|
|
4702
|
+
name?: string;
|
|
4703
|
+
}
|
|
4704
|
+
export interface Params$Resource$Projects$Locations$Publishers$List extends StandardParameters {
|
|
4705
|
+
/**
|
|
4706
|
+
* Optional. Page limit size.
|
|
4707
|
+
*/
|
|
4708
|
+
pageSize?: number;
|
|
4709
|
+
/**
|
|
4710
|
+
* Optional. Page offset token.
|
|
4711
|
+
*/
|
|
4712
|
+
pageToken?: string;
|
|
4713
|
+
/**
|
|
4714
|
+
* Required. Parent location to query. Format: `projects/{project\}/locations/{location\}`
|
|
4715
|
+
*/
|
|
4716
|
+
parent?: string;
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
export class Resource$Projects$Locations$Services {
|
|
4720
|
+
context: APIRequestContext;
|
|
4721
|
+
constructor(context: APIRequestContext) {
|
|
4722
|
+
this.context = context;
|
|
4723
|
+
}
|
|
4724
|
+
|
|
4725
|
+
/**
|
|
4726
|
+
* Creates a new Service in a given project and location.
|
|
4727
|
+
* @example
|
|
4728
|
+
* ```js
|
|
4729
|
+
* // Before running the sample:
|
|
4730
|
+
* // - Enable the API at:
|
|
4731
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4732
|
+
* // - Login into gcloud by running:
|
|
4733
|
+
* // ```sh
|
|
4734
|
+
* // $ gcloud auth application-default login
|
|
4735
|
+
* // ```
|
|
4736
|
+
* // - Install the npm module by running:
|
|
4737
|
+
* // ```sh
|
|
4738
|
+
* // $ npm install googleapis
|
|
4739
|
+
* // ```
|
|
4740
|
+
*
|
|
4741
|
+
* const {google} = require('googleapis');
|
|
4742
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4743
|
+
*
|
|
4744
|
+
* async function main() {
|
|
4745
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4746
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4747
|
+
* scopes: [
|
|
4748
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4749
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4750
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4751
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4752
|
+
* ],
|
|
4753
|
+
* });
|
|
4754
|
+
*
|
|
4755
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4756
|
+
* const authClient = await auth.getClient();
|
|
4757
|
+
* google.options({auth: authClient});
|
|
4758
|
+
*
|
|
4759
|
+
* // Do the magic
|
|
4760
|
+
* const res = await agentregistry.projects.locations.services.create({
|
|
4761
|
+
* // Required. The project and location to create the Service in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
4762
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
4763
|
+
* // 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).
|
|
4764
|
+
* requestId: 'placeholder-value',
|
|
4765
|
+
* // 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-/`.
|
|
4766
|
+
* serviceId: 'placeholder-value',
|
|
4767
|
+
*
|
|
4768
|
+
* // Request body metadata
|
|
4769
|
+
* requestBody: {
|
|
4770
|
+
* // request body parameters
|
|
4771
|
+
* // {
|
|
4772
|
+
* // "agentSpec": {},
|
|
4773
|
+
* // "createTime": "my_createTime",
|
|
4774
|
+
* // "description": "my_description",
|
|
4775
|
+
* // "displayName": "my_displayName",
|
|
4776
|
+
* // "endpointSpec": {},
|
|
4777
|
+
* // "interfaces": [],
|
|
4778
|
+
* // "mcpServerSpec": {},
|
|
4779
|
+
* // "name": "my_name",
|
|
4780
|
+
* // "registryResource": "my_registryResource",
|
|
4781
|
+
* // "updateTime": "my_updateTime"
|
|
4782
|
+
* // }
|
|
4783
|
+
* },
|
|
4784
|
+
* });
|
|
4785
|
+
* console.log(res.data);
|
|
4786
|
+
*
|
|
4787
|
+
* // Example response
|
|
4788
|
+
* // {
|
|
4789
|
+
* // "done": false,
|
|
4790
|
+
* // "error": {},
|
|
4791
|
+
* // "metadata": {},
|
|
4792
|
+
* // "name": "my_name",
|
|
4793
|
+
* // "response": {}
|
|
4794
|
+
* // }
|
|
4795
|
+
* }
|
|
4796
|
+
*
|
|
4797
|
+
* main().catch(e => {
|
|
4798
|
+
* console.error(e);
|
|
4799
|
+
* throw e;
|
|
4800
|
+
* });
|
|
4801
|
+
*
|
|
4802
|
+
* ```
|
|
4803
|
+
*
|
|
4804
|
+
* @param params - Parameters for request
|
|
4805
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4806
|
+
* @param callback - Optional callback that handles the response.
|
|
4807
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4808
|
+
*/
|
|
4809
|
+
create(
|
|
4810
|
+
params: Params$Resource$Projects$Locations$Services$Create,
|
|
4811
|
+
options: StreamMethodOptions
|
|
4812
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4813
|
+
create(
|
|
4814
|
+
params?: Params$Resource$Projects$Locations$Services$Create,
|
|
4815
|
+
options?: MethodOptions
|
|
4816
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4817
|
+
create(
|
|
4818
|
+
params: Params$Resource$Projects$Locations$Services$Create,
|
|
4819
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4820
|
+
callback: BodyResponseCallback<Readable>
|
|
4821
|
+
): void;
|
|
4822
|
+
create(
|
|
4823
|
+
params: Params$Resource$Projects$Locations$Services$Create,
|
|
4824
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
4825
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4826
|
+
): void;
|
|
4827
|
+
create(
|
|
4828
|
+
params: Params$Resource$Projects$Locations$Services$Create,
|
|
4829
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4830
|
+
): void;
|
|
4831
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4832
|
+
create(
|
|
4282
4833
|
paramsOrCallback?:
|
|
4283
4834
|
| Params$Resource$Projects$Locations$Services$Create
|
|
4284
4835
|
| BodyResponseCallback<Schema$Operation>
|
|
@@ -4289,19 +4840,1504 @@ export namespace agentregistry_v1alpha {
|
|
|
4289
4840
|
| BodyResponseCallback<Schema$Operation>
|
|
4290
4841
|
| BodyResponseCallback<Readable>,
|
|
4291
4842
|
callback?:
|
|
4292
|
-
|
|
4293
|
-
|
|
4843
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4844
|
+
):
|
|
4845
|
+
| void
|
|
4846
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
4847
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4848
|
+
let params = (paramsOrCallback ||
|
|
4849
|
+
{}) as Params$Resource$Projects$Locations$Services$Create;
|
|
4850
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4851
|
+
|
|
4852
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4853
|
+
callback = paramsOrCallback;
|
|
4854
|
+
params = {} as Params$Resource$Projects$Locations$Services$Create;
|
|
4855
|
+
options = {};
|
|
4856
|
+
}
|
|
4857
|
+
|
|
4858
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4859
|
+
callback = optionsOrCallback;
|
|
4860
|
+
options = {};
|
|
4861
|
+
}
|
|
4862
|
+
|
|
4863
|
+
const rootUrl =
|
|
4864
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
4865
|
+
const parameters = {
|
|
4866
|
+
options: Object.assign(
|
|
4867
|
+
{
|
|
4868
|
+
url: (rootUrl + '/v1alpha/{+parent}/services').replace(
|
|
4869
|
+
/([^:]\/)\/+/g,
|
|
4870
|
+
'$1'
|
|
4871
|
+
),
|
|
4872
|
+
method: 'POST',
|
|
4873
|
+
apiVersion: '',
|
|
4874
|
+
},
|
|
4875
|
+
options
|
|
4876
|
+
),
|
|
4877
|
+
params,
|
|
4878
|
+
requiredParams: ['parent'],
|
|
4879
|
+
pathParams: ['parent'],
|
|
4880
|
+
context: this.context,
|
|
4881
|
+
};
|
|
4882
|
+
if (callback) {
|
|
4883
|
+
createAPIRequest<Schema$Operation>(
|
|
4884
|
+
parameters,
|
|
4885
|
+
callback as BodyResponseCallback<unknown>
|
|
4886
|
+
);
|
|
4887
|
+
} else {
|
|
4888
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
4889
|
+
}
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* Deletes a single Service.
|
|
4894
|
+
* @example
|
|
4895
|
+
* ```js
|
|
4896
|
+
* // Before running the sample:
|
|
4897
|
+
* // - Enable the API at:
|
|
4898
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4899
|
+
* // - Login into gcloud by running:
|
|
4900
|
+
* // ```sh
|
|
4901
|
+
* // $ gcloud auth application-default login
|
|
4902
|
+
* // ```
|
|
4903
|
+
* // - Install the npm module by running:
|
|
4904
|
+
* // ```sh
|
|
4905
|
+
* // $ npm install googleapis
|
|
4906
|
+
* // ```
|
|
4907
|
+
*
|
|
4908
|
+
* const {google} = require('googleapis');
|
|
4909
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4910
|
+
*
|
|
4911
|
+
* async function main() {
|
|
4912
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4913
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4914
|
+
* scopes: [
|
|
4915
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4916
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4917
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4918
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4919
|
+
* ],
|
|
4920
|
+
* });
|
|
4921
|
+
*
|
|
4922
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4923
|
+
* const authClient = await auth.getClient();
|
|
4924
|
+
* google.options({auth: authClient});
|
|
4925
|
+
*
|
|
4926
|
+
* // Do the magic
|
|
4927
|
+
* const res = await agentregistry.projects.locations.services.delete({
|
|
4928
|
+
* // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
4929
|
+
* name: 'projects/my-project/locations/my-location/services/my-service',
|
|
4930
|
+
* // 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).
|
|
4931
|
+
* requestId: 'placeholder-value',
|
|
4932
|
+
* });
|
|
4933
|
+
* console.log(res.data);
|
|
4934
|
+
*
|
|
4935
|
+
* // Example response
|
|
4936
|
+
* // {
|
|
4937
|
+
* // "done": false,
|
|
4938
|
+
* // "error": {},
|
|
4939
|
+
* // "metadata": {},
|
|
4940
|
+
* // "name": "my_name",
|
|
4941
|
+
* // "response": {}
|
|
4942
|
+
* // }
|
|
4943
|
+
* }
|
|
4944
|
+
*
|
|
4945
|
+
* main().catch(e => {
|
|
4946
|
+
* console.error(e);
|
|
4947
|
+
* throw e;
|
|
4948
|
+
* });
|
|
4949
|
+
*
|
|
4950
|
+
* ```
|
|
4951
|
+
*
|
|
4952
|
+
* @param params - Parameters for request
|
|
4953
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4954
|
+
* @param callback - Optional callback that handles the response.
|
|
4955
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4956
|
+
*/
|
|
4957
|
+
delete(
|
|
4958
|
+
params: Params$Resource$Projects$Locations$Services$Delete,
|
|
4959
|
+
options: StreamMethodOptions
|
|
4960
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4961
|
+
delete(
|
|
4962
|
+
params?: Params$Resource$Projects$Locations$Services$Delete,
|
|
4963
|
+
options?: MethodOptions
|
|
4964
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4965
|
+
delete(
|
|
4966
|
+
params: Params$Resource$Projects$Locations$Services$Delete,
|
|
4967
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4968
|
+
callback: BodyResponseCallback<Readable>
|
|
4969
|
+
): void;
|
|
4970
|
+
delete(
|
|
4971
|
+
params: Params$Resource$Projects$Locations$Services$Delete,
|
|
4972
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
4973
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4974
|
+
): void;
|
|
4975
|
+
delete(
|
|
4976
|
+
params: Params$Resource$Projects$Locations$Services$Delete,
|
|
4977
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4978
|
+
): void;
|
|
4979
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4980
|
+
delete(
|
|
4981
|
+
paramsOrCallback?:
|
|
4982
|
+
| Params$Resource$Projects$Locations$Services$Delete
|
|
4983
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4984
|
+
| BodyResponseCallback<Readable>,
|
|
4985
|
+
optionsOrCallback?:
|
|
4986
|
+
| MethodOptions
|
|
4987
|
+
| StreamMethodOptions
|
|
4988
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4989
|
+
| BodyResponseCallback<Readable>,
|
|
4990
|
+
callback?:
|
|
4991
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4992
|
+
):
|
|
4993
|
+
| void
|
|
4994
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
4995
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4996
|
+
let params = (paramsOrCallback ||
|
|
4997
|
+
{}) as Params$Resource$Projects$Locations$Services$Delete;
|
|
4998
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4999
|
+
|
|
5000
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5001
|
+
callback = paramsOrCallback;
|
|
5002
|
+
params = {} as Params$Resource$Projects$Locations$Services$Delete;
|
|
5003
|
+
options = {};
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5007
|
+
callback = optionsOrCallback;
|
|
5008
|
+
options = {};
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
const rootUrl =
|
|
5012
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5013
|
+
const parameters = {
|
|
5014
|
+
options: Object.assign(
|
|
5015
|
+
{
|
|
5016
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5017
|
+
method: 'DELETE',
|
|
5018
|
+
apiVersion: '',
|
|
5019
|
+
},
|
|
5020
|
+
options
|
|
5021
|
+
),
|
|
5022
|
+
params,
|
|
5023
|
+
requiredParams: ['name'],
|
|
5024
|
+
pathParams: ['name'],
|
|
5025
|
+
context: this.context,
|
|
5026
|
+
};
|
|
5027
|
+
if (callback) {
|
|
5028
|
+
createAPIRequest<Schema$Operation>(
|
|
5029
|
+
parameters,
|
|
5030
|
+
callback as BodyResponseCallback<unknown>
|
|
5031
|
+
);
|
|
5032
|
+
} else {
|
|
5033
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5034
|
+
}
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
/**
|
|
5038
|
+
* Gets details of a single Service.
|
|
5039
|
+
* @example
|
|
5040
|
+
* ```js
|
|
5041
|
+
* // Before running the sample:
|
|
5042
|
+
* // - Enable the API at:
|
|
5043
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5044
|
+
* // - Login into gcloud by running:
|
|
5045
|
+
* // ```sh
|
|
5046
|
+
* // $ gcloud auth application-default login
|
|
5047
|
+
* // ```
|
|
5048
|
+
* // - Install the npm module by running:
|
|
5049
|
+
* // ```sh
|
|
5050
|
+
* // $ npm install googleapis
|
|
5051
|
+
* // ```
|
|
5052
|
+
*
|
|
5053
|
+
* const {google} = require('googleapis');
|
|
5054
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5055
|
+
*
|
|
5056
|
+
* async function main() {
|
|
5057
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5058
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5059
|
+
* scopes: [
|
|
5060
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5061
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5062
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5063
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5064
|
+
* ],
|
|
5065
|
+
* });
|
|
5066
|
+
*
|
|
5067
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5068
|
+
* const authClient = await auth.getClient();
|
|
5069
|
+
* google.options({auth: authClient});
|
|
5070
|
+
*
|
|
5071
|
+
* // Do the magic
|
|
5072
|
+
* const res = await agentregistry.projects.locations.services.get({
|
|
5073
|
+
* // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5074
|
+
* name: 'projects/my-project/locations/my-location/services/my-service',
|
|
5075
|
+
* });
|
|
5076
|
+
* console.log(res.data);
|
|
5077
|
+
*
|
|
5078
|
+
* // Example response
|
|
5079
|
+
* // {
|
|
5080
|
+
* // "agentSpec": {},
|
|
5081
|
+
* // "createTime": "my_createTime",
|
|
5082
|
+
* // "description": "my_description",
|
|
5083
|
+
* // "displayName": "my_displayName",
|
|
5084
|
+
* // "endpointSpec": {},
|
|
5085
|
+
* // "interfaces": [],
|
|
5086
|
+
* // "mcpServerSpec": {},
|
|
5087
|
+
* // "name": "my_name",
|
|
5088
|
+
* // "registryResource": "my_registryResource",
|
|
5089
|
+
* // "updateTime": "my_updateTime"
|
|
5090
|
+
* // }
|
|
5091
|
+
* }
|
|
5092
|
+
*
|
|
5093
|
+
* main().catch(e => {
|
|
5094
|
+
* console.error(e);
|
|
5095
|
+
* throw e;
|
|
5096
|
+
* });
|
|
5097
|
+
*
|
|
5098
|
+
* ```
|
|
5099
|
+
*
|
|
5100
|
+
* @param params - Parameters for request
|
|
5101
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5102
|
+
* @param callback - Optional callback that handles the response.
|
|
5103
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5104
|
+
*/
|
|
5105
|
+
get(
|
|
5106
|
+
params: Params$Resource$Projects$Locations$Services$Get,
|
|
5107
|
+
options: StreamMethodOptions
|
|
5108
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5109
|
+
get(
|
|
5110
|
+
params?: Params$Resource$Projects$Locations$Services$Get,
|
|
5111
|
+
options?: MethodOptions
|
|
5112
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Service>>;
|
|
5113
|
+
get(
|
|
5114
|
+
params: Params$Resource$Projects$Locations$Services$Get,
|
|
5115
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5116
|
+
callback: BodyResponseCallback<Readable>
|
|
5117
|
+
): void;
|
|
5118
|
+
get(
|
|
5119
|
+
params: Params$Resource$Projects$Locations$Services$Get,
|
|
5120
|
+
options: MethodOptions | BodyResponseCallback<Schema$Service>,
|
|
5121
|
+
callback: BodyResponseCallback<Schema$Service>
|
|
5122
|
+
): void;
|
|
5123
|
+
get(
|
|
5124
|
+
params: Params$Resource$Projects$Locations$Services$Get,
|
|
5125
|
+
callback: BodyResponseCallback<Schema$Service>
|
|
5126
|
+
): void;
|
|
5127
|
+
get(callback: BodyResponseCallback<Schema$Service>): void;
|
|
5128
|
+
get(
|
|
5129
|
+
paramsOrCallback?:
|
|
5130
|
+
| Params$Resource$Projects$Locations$Services$Get
|
|
5131
|
+
| BodyResponseCallback<Schema$Service>
|
|
5132
|
+
| BodyResponseCallback<Readable>,
|
|
5133
|
+
optionsOrCallback?:
|
|
5134
|
+
| MethodOptions
|
|
5135
|
+
| StreamMethodOptions
|
|
5136
|
+
| BodyResponseCallback<Schema$Service>
|
|
5137
|
+
| BodyResponseCallback<Readable>,
|
|
5138
|
+
callback?:
|
|
5139
|
+
BodyResponseCallback<Schema$Service> | BodyResponseCallback<Readable>
|
|
5140
|
+
):
|
|
5141
|
+
| void
|
|
5142
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Service>>
|
|
5143
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5144
|
+
let params = (paramsOrCallback ||
|
|
5145
|
+
{}) as Params$Resource$Projects$Locations$Services$Get;
|
|
5146
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5147
|
+
|
|
5148
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5149
|
+
callback = paramsOrCallback;
|
|
5150
|
+
params = {} as Params$Resource$Projects$Locations$Services$Get;
|
|
5151
|
+
options = {};
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5155
|
+
callback = optionsOrCallback;
|
|
5156
|
+
options = {};
|
|
5157
|
+
}
|
|
5158
|
+
|
|
5159
|
+
const rootUrl =
|
|
5160
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5161
|
+
const parameters = {
|
|
5162
|
+
options: Object.assign(
|
|
5163
|
+
{
|
|
5164
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5165
|
+
method: 'GET',
|
|
5166
|
+
apiVersion: '',
|
|
5167
|
+
},
|
|
5168
|
+
options
|
|
5169
|
+
),
|
|
5170
|
+
params,
|
|
5171
|
+
requiredParams: ['name'],
|
|
5172
|
+
pathParams: ['name'],
|
|
5173
|
+
context: this.context,
|
|
5174
|
+
};
|
|
5175
|
+
if (callback) {
|
|
5176
|
+
createAPIRequest<Schema$Service>(
|
|
5177
|
+
parameters,
|
|
5178
|
+
callback as BodyResponseCallback<unknown>
|
|
5179
|
+
);
|
|
5180
|
+
} else {
|
|
5181
|
+
return createAPIRequest<Schema$Service>(parameters);
|
|
5182
|
+
}
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* Lists Services in a given project and location.
|
|
5187
|
+
* @example
|
|
5188
|
+
* ```js
|
|
5189
|
+
* // Before running the sample:
|
|
5190
|
+
* // - Enable the API at:
|
|
5191
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5192
|
+
* // - Login into gcloud by running:
|
|
5193
|
+
* // ```sh
|
|
5194
|
+
* // $ gcloud auth application-default login
|
|
5195
|
+
* // ```
|
|
5196
|
+
* // - Install the npm module by running:
|
|
5197
|
+
* // ```sh
|
|
5198
|
+
* // $ npm install googleapis
|
|
5199
|
+
* // ```
|
|
5200
|
+
*
|
|
5201
|
+
* const {google} = require('googleapis');
|
|
5202
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5203
|
+
*
|
|
5204
|
+
* async function main() {
|
|
5205
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5206
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5207
|
+
* scopes: [
|
|
5208
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5209
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5210
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5211
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5212
|
+
* ],
|
|
5213
|
+
* });
|
|
5214
|
+
*
|
|
5215
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5216
|
+
* const authClient = await auth.getClient();
|
|
5217
|
+
* google.options({auth: authClient});
|
|
5218
|
+
*
|
|
5219
|
+
* // Do the magic
|
|
5220
|
+
* const res = await agentregistry.projects.locations.services.list({
|
|
5221
|
+
* // 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"`
|
|
5222
|
+
* filter: 'placeholder-value',
|
|
5223
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
5224
|
+
* pageSize: 'placeholder-value',
|
|
5225
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
5226
|
+
* pageToken: 'placeholder-value',
|
|
5227
|
+
* // Required. The project and location to list services in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
5228
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5229
|
+
* });
|
|
5230
|
+
* console.log(res.data);
|
|
5231
|
+
*
|
|
5232
|
+
* // Example response
|
|
5233
|
+
* // {
|
|
5234
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5235
|
+
* // "services": []
|
|
5236
|
+
* // }
|
|
5237
|
+
* }
|
|
5238
|
+
*
|
|
5239
|
+
* main().catch(e => {
|
|
5240
|
+
* console.error(e);
|
|
5241
|
+
* throw e;
|
|
5242
|
+
* });
|
|
5243
|
+
*
|
|
5244
|
+
* ```
|
|
5245
|
+
*
|
|
5246
|
+
* @param params - Parameters for request
|
|
5247
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5248
|
+
* @param callback - Optional callback that handles the response.
|
|
5249
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5250
|
+
*/
|
|
5251
|
+
list(
|
|
5252
|
+
params: Params$Resource$Projects$Locations$Services$List,
|
|
5253
|
+
options: StreamMethodOptions
|
|
5254
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5255
|
+
list(
|
|
5256
|
+
params?: Params$Resource$Projects$Locations$Services$List,
|
|
5257
|
+
options?: MethodOptions
|
|
5258
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListServicesResponse>>;
|
|
5259
|
+
list(
|
|
5260
|
+
params: Params$Resource$Projects$Locations$Services$List,
|
|
5261
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5262
|
+
callback: BodyResponseCallback<Readable>
|
|
5263
|
+
): void;
|
|
5264
|
+
list(
|
|
5265
|
+
params: Params$Resource$Projects$Locations$Services$List,
|
|
5266
|
+
options:
|
|
5267
|
+
MethodOptions | BodyResponseCallback<Schema$ListServicesResponse>,
|
|
5268
|
+
callback: BodyResponseCallback<Schema$ListServicesResponse>
|
|
5269
|
+
): void;
|
|
5270
|
+
list(
|
|
5271
|
+
params: Params$Resource$Projects$Locations$Services$List,
|
|
5272
|
+
callback: BodyResponseCallback<Schema$ListServicesResponse>
|
|
5273
|
+
): void;
|
|
5274
|
+
list(callback: BodyResponseCallback<Schema$ListServicesResponse>): void;
|
|
5275
|
+
list(
|
|
5276
|
+
paramsOrCallback?:
|
|
5277
|
+
| Params$Resource$Projects$Locations$Services$List
|
|
5278
|
+
| BodyResponseCallback<Schema$ListServicesResponse>
|
|
5279
|
+
| BodyResponseCallback<Readable>,
|
|
5280
|
+
optionsOrCallback?:
|
|
5281
|
+
| MethodOptions
|
|
5282
|
+
| StreamMethodOptions
|
|
5283
|
+
| BodyResponseCallback<Schema$ListServicesResponse>
|
|
5284
|
+
| BodyResponseCallback<Readable>,
|
|
5285
|
+
callback?:
|
|
5286
|
+
| BodyResponseCallback<Schema$ListServicesResponse>
|
|
5287
|
+
| BodyResponseCallback<Readable>
|
|
5288
|
+
):
|
|
5289
|
+
| void
|
|
5290
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListServicesResponse>>
|
|
5291
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5292
|
+
let params = (paramsOrCallback ||
|
|
5293
|
+
{}) as Params$Resource$Projects$Locations$Services$List;
|
|
5294
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5295
|
+
|
|
5296
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5297
|
+
callback = paramsOrCallback;
|
|
5298
|
+
params = {} as Params$Resource$Projects$Locations$Services$List;
|
|
5299
|
+
options = {};
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5303
|
+
callback = optionsOrCallback;
|
|
5304
|
+
options = {};
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
const rootUrl =
|
|
5308
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5309
|
+
const parameters = {
|
|
5310
|
+
options: Object.assign(
|
|
5311
|
+
{
|
|
5312
|
+
url: (rootUrl + '/v1alpha/{+parent}/services').replace(
|
|
5313
|
+
/([^:]\/)\/+/g,
|
|
5314
|
+
'$1'
|
|
5315
|
+
),
|
|
5316
|
+
method: 'GET',
|
|
5317
|
+
apiVersion: '',
|
|
5318
|
+
},
|
|
5319
|
+
options
|
|
5320
|
+
),
|
|
5321
|
+
params,
|
|
5322
|
+
requiredParams: ['parent'],
|
|
5323
|
+
pathParams: ['parent'],
|
|
5324
|
+
context: this.context,
|
|
5325
|
+
};
|
|
5326
|
+
if (callback) {
|
|
5327
|
+
createAPIRequest<Schema$ListServicesResponse>(
|
|
5328
|
+
parameters,
|
|
5329
|
+
callback as BodyResponseCallback<unknown>
|
|
5330
|
+
);
|
|
5331
|
+
} else {
|
|
5332
|
+
return createAPIRequest<Schema$ListServicesResponse>(parameters);
|
|
5333
|
+
}
|
|
5334
|
+
}
|
|
5335
|
+
|
|
5336
|
+
/**
|
|
5337
|
+
* Updates the parameters of a single Service.
|
|
5338
|
+
* @example
|
|
5339
|
+
* ```js
|
|
5340
|
+
* // Before running the sample:
|
|
5341
|
+
* // - Enable the API at:
|
|
5342
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5343
|
+
* // - Login into gcloud by running:
|
|
5344
|
+
* // ```sh
|
|
5345
|
+
* // $ gcloud auth application-default login
|
|
5346
|
+
* // ```
|
|
5347
|
+
* // - Install the npm module by running:
|
|
5348
|
+
* // ```sh
|
|
5349
|
+
* // $ npm install googleapis
|
|
5350
|
+
* // ```
|
|
5351
|
+
*
|
|
5352
|
+
* const {google} = require('googleapis');
|
|
5353
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5354
|
+
*
|
|
5355
|
+
* async function main() {
|
|
5356
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5357
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5358
|
+
* scopes: [
|
|
5359
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5360
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5361
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5362
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5363
|
+
* ],
|
|
5364
|
+
* });
|
|
5365
|
+
*
|
|
5366
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5367
|
+
* const authClient = await auth.getClient();
|
|
5368
|
+
* google.options({auth: authClient});
|
|
5369
|
+
*
|
|
5370
|
+
* // Do the magic
|
|
5371
|
+
* const res = await agentregistry.projects.locations.services.patch({
|
|
5372
|
+
* // Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5373
|
+
* name: 'projects/my-project/locations/my-location/services/my-service',
|
|
5374
|
+
* // 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).
|
|
5375
|
+
* requestId: 'placeholder-value',
|
|
5376
|
+
* // 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.
|
|
5377
|
+
* updateMask: 'placeholder-value',
|
|
5378
|
+
*
|
|
5379
|
+
* // Request body metadata
|
|
5380
|
+
* requestBody: {
|
|
5381
|
+
* // request body parameters
|
|
5382
|
+
* // {
|
|
5383
|
+
* // "agentSpec": {},
|
|
5384
|
+
* // "createTime": "my_createTime",
|
|
5385
|
+
* // "description": "my_description",
|
|
5386
|
+
* // "displayName": "my_displayName",
|
|
5387
|
+
* // "endpointSpec": {},
|
|
5388
|
+
* // "interfaces": [],
|
|
5389
|
+
* // "mcpServerSpec": {},
|
|
5390
|
+
* // "name": "my_name",
|
|
5391
|
+
* // "registryResource": "my_registryResource",
|
|
5392
|
+
* // "updateTime": "my_updateTime"
|
|
5393
|
+
* // }
|
|
5394
|
+
* },
|
|
5395
|
+
* });
|
|
5396
|
+
* console.log(res.data);
|
|
5397
|
+
*
|
|
5398
|
+
* // Example response
|
|
5399
|
+
* // {
|
|
5400
|
+
* // "done": false,
|
|
5401
|
+
* // "error": {},
|
|
5402
|
+
* // "metadata": {},
|
|
5403
|
+
* // "name": "my_name",
|
|
5404
|
+
* // "response": {}
|
|
5405
|
+
* // }
|
|
5406
|
+
* }
|
|
5407
|
+
*
|
|
5408
|
+
* main().catch(e => {
|
|
5409
|
+
* console.error(e);
|
|
5410
|
+
* throw e;
|
|
5411
|
+
* });
|
|
5412
|
+
*
|
|
5413
|
+
* ```
|
|
5414
|
+
*
|
|
5415
|
+
* @param params - Parameters for request
|
|
5416
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5417
|
+
* @param callback - Optional callback that handles the response.
|
|
5418
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5419
|
+
*/
|
|
5420
|
+
patch(
|
|
5421
|
+
params: Params$Resource$Projects$Locations$Services$Patch,
|
|
5422
|
+
options: StreamMethodOptions
|
|
5423
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5424
|
+
patch(
|
|
5425
|
+
params?: Params$Resource$Projects$Locations$Services$Patch,
|
|
5426
|
+
options?: MethodOptions
|
|
5427
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5428
|
+
patch(
|
|
5429
|
+
params: Params$Resource$Projects$Locations$Services$Patch,
|
|
5430
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5431
|
+
callback: BodyResponseCallback<Readable>
|
|
5432
|
+
): void;
|
|
5433
|
+
patch(
|
|
5434
|
+
params: Params$Resource$Projects$Locations$Services$Patch,
|
|
5435
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5436
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5437
|
+
): void;
|
|
5438
|
+
patch(
|
|
5439
|
+
params: Params$Resource$Projects$Locations$Services$Patch,
|
|
5440
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5441
|
+
): void;
|
|
5442
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5443
|
+
patch(
|
|
5444
|
+
paramsOrCallback?:
|
|
5445
|
+
| Params$Resource$Projects$Locations$Services$Patch
|
|
5446
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5447
|
+
| BodyResponseCallback<Readable>,
|
|
5448
|
+
optionsOrCallback?:
|
|
5449
|
+
| MethodOptions
|
|
5450
|
+
| StreamMethodOptions
|
|
5451
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5452
|
+
| BodyResponseCallback<Readable>,
|
|
5453
|
+
callback?:
|
|
5454
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5455
|
+
):
|
|
5456
|
+
| void
|
|
5457
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
5458
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5459
|
+
let params = (paramsOrCallback ||
|
|
5460
|
+
{}) as Params$Resource$Projects$Locations$Services$Patch;
|
|
5461
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5462
|
+
|
|
5463
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5464
|
+
callback = paramsOrCallback;
|
|
5465
|
+
params = {} as Params$Resource$Projects$Locations$Services$Patch;
|
|
5466
|
+
options = {};
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5470
|
+
callback = optionsOrCallback;
|
|
5471
|
+
options = {};
|
|
5472
|
+
}
|
|
5473
|
+
|
|
5474
|
+
const rootUrl =
|
|
5475
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5476
|
+
const parameters = {
|
|
5477
|
+
options: Object.assign(
|
|
5478
|
+
{
|
|
5479
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5480
|
+
method: 'PATCH',
|
|
5481
|
+
apiVersion: '',
|
|
5482
|
+
},
|
|
5483
|
+
options
|
|
5484
|
+
),
|
|
5485
|
+
params,
|
|
5486
|
+
requiredParams: ['name'],
|
|
5487
|
+
pathParams: ['name'],
|
|
5488
|
+
context: this.context,
|
|
5489
|
+
};
|
|
5490
|
+
if (callback) {
|
|
5491
|
+
createAPIRequest<Schema$Operation>(
|
|
5492
|
+
parameters,
|
|
5493
|
+
callback as BodyResponseCallback<unknown>
|
|
5494
|
+
);
|
|
5495
|
+
} else {
|
|
5496
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5497
|
+
}
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
|
|
5501
|
+
export interface Params$Resource$Projects$Locations$Services$Create extends StandardParameters {
|
|
5502
|
+
/**
|
|
5503
|
+
* Required. The project and location to create the Service in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
5504
|
+
*/
|
|
5505
|
+
parent?: string;
|
|
5506
|
+
/**
|
|
5507
|
+
* 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).
|
|
5508
|
+
*/
|
|
5509
|
+
requestId?: string;
|
|
5510
|
+
/**
|
|
5511
|
+
* 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-/`.
|
|
5512
|
+
*/
|
|
5513
|
+
serviceId?: string;
|
|
5514
|
+
|
|
5515
|
+
/**
|
|
5516
|
+
* Request body metadata
|
|
5517
|
+
*/
|
|
5518
|
+
requestBody?: Schema$Service;
|
|
5519
|
+
}
|
|
5520
|
+
export interface Params$Resource$Projects$Locations$Services$Delete extends StandardParameters {
|
|
5521
|
+
/**
|
|
5522
|
+
* Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5523
|
+
*/
|
|
5524
|
+
name?: string;
|
|
5525
|
+
/**
|
|
5526
|
+
* 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).
|
|
5527
|
+
*/
|
|
5528
|
+
requestId?: string;
|
|
5529
|
+
}
|
|
5530
|
+
export interface Params$Resource$Projects$Locations$Services$Get extends StandardParameters {
|
|
5531
|
+
/**
|
|
5532
|
+
* Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5533
|
+
*/
|
|
5534
|
+
name?: string;
|
|
5535
|
+
}
|
|
5536
|
+
export interface Params$Resource$Projects$Locations$Services$List extends StandardParameters {
|
|
5537
|
+
/**
|
|
5538
|
+
* 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"`
|
|
5539
|
+
*/
|
|
5540
|
+
filter?: string;
|
|
5541
|
+
/**
|
|
5542
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
5543
|
+
*/
|
|
5544
|
+
pageSize?: number;
|
|
5545
|
+
/**
|
|
5546
|
+
* Optional. A token identifying a page of results the server should return.
|
|
5547
|
+
*/
|
|
5548
|
+
pageToken?: string;
|
|
5549
|
+
/**
|
|
5550
|
+
* Required. The project and location to list services in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
5551
|
+
*/
|
|
5552
|
+
parent?: string;
|
|
5553
|
+
}
|
|
5554
|
+
export interface Params$Resource$Projects$Locations$Services$Patch extends StandardParameters {
|
|
5555
|
+
/**
|
|
5556
|
+
* Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5557
|
+
*/
|
|
5558
|
+
name?: string;
|
|
5559
|
+
/**
|
|
5560
|
+
* 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).
|
|
5561
|
+
*/
|
|
5562
|
+
requestId?: string;
|
|
5563
|
+
/**
|
|
5564
|
+
* 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.
|
|
5565
|
+
*/
|
|
5566
|
+
updateMask?: string;
|
|
5567
|
+
|
|
5568
|
+
/**
|
|
5569
|
+
* Request body metadata
|
|
5570
|
+
*/
|
|
5571
|
+
requestBody?: Schema$Service;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
export class Resource$Projects$Locations$Skills {
|
|
5575
|
+
context: APIRequestContext;
|
|
5576
|
+
revisions: Resource$Projects$Locations$Skills$Revisions;
|
|
5577
|
+
constructor(context: APIRequestContext) {
|
|
5578
|
+
this.context = context;
|
|
5579
|
+
this.revisions = new Resource$Projects$Locations$Skills$Revisions(
|
|
5580
|
+
this.context
|
|
5581
|
+
);
|
|
5582
|
+
}
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* ========================================================================= # Skills Collection APIs Creates a Skill resource container, optionally publishing the initial SkillRevision inline in a single, atomic CRUD roundtrip.
|
|
5586
|
+
* @example
|
|
5587
|
+
* ```js
|
|
5588
|
+
* // Before running the sample:
|
|
5589
|
+
* // - Enable the API at:
|
|
5590
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5591
|
+
* // - Login into gcloud by running:
|
|
5592
|
+
* // ```sh
|
|
5593
|
+
* // $ gcloud auth application-default login
|
|
5594
|
+
* // ```
|
|
5595
|
+
* // - Install the npm module by running:
|
|
5596
|
+
* // ```sh
|
|
5597
|
+
* // $ npm install googleapis
|
|
5598
|
+
* // ```
|
|
5599
|
+
*
|
|
5600
|
+
* const {google} = require('googleapis');
|
|
5601
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5602
|
+
*
|
|
5603
|
+
* async function main() {
|
|
5604
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5605
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5606
|
+
* scopes: [
|
|
5607
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5608
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5609
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5610
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5611
|
+
* ],
|
|
5612
|
+
* });
|
|
5613
|
+
*
|
|
5614
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5615
|
+
* const authClient = await auth.getClient();
|
|
5616
|
+
* google.options({auth: authClient});
|
|
5617
|
+
*
|
|
5618
|
+
* // Do the magic
|
|
5619
|
+
* const res = await agentregistry.projects.locations.skills.create({
|
|
5620
|
+
* // Required. The project and location location to bootstrap.
|
|
5621
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5622
|
+
* // Optional. Signed UUID request idempotency token.
|
|
5623
|
+
* requestId: 'placeholder-value',
|
|
5624
|
+
* // Required. Custom, user-defined unique container identifier. Must be unique within the parent project and location. This value should be 4-64 characters, and valid characters are `/a-z-/`.
|
|
5625
|
+
* skillId: 'placeholder-value',
|
|
5626
|
+
*
|
|
5627
|
+
* // Request body metadata
|
|
5628
|
+
* requestBody: {
|
|
5629
|
+
* // request body parameters
|
|
5630
|
+
* // {
|
|
5631
|
+
* // "createTime": "my_createTime",
|
|
5632
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
5633
|
+
* // "description": "my_description",
|
|
5634
|
+
* // "displayName": "my_displayName",
|
|
5635
|
+
* // "frontmatter": {},
|
|
5636
|
+
* // "initialRevision": {},
|
|
5637
|
+
* // "name": "my_name",
|
|
5638
|
+
* // "publisher": "my_publisher",
|
|
5639
|
+
* // "skillId": "my_skillId",
|
|
5640
|
+
* // "state": "my_state",
|
|
5641
|
+
* // "targetState": "my_targetState",
|
|
5642
|
+
* // "type": "my_type",
|
|
5643
|
+
* // "uid": "my_uid",
|
|
5644
|
+
* // "updateTime": "my_updateTime"
|
|
5645
|
+
* // }
|
|
5646
|
+
* },
|
|
5647
|
+
* });
|
|
5648
|
+
* console.log(res.data);
|
|
5649
|
+
*
|
|
5650
|
+
* // Example response
|
|
5651
|
+
* // {
|
|
5652
|
+
* // "done": false,
|
|
5653
|
+
* // "error": {},
|
|
5654
|
+
* // "metadata": {},
|
|
5655
|
+
* // "name": "my_name",
|
|
5656
|
+
* // "response": {}
|
|
5657
|
+
* // }
|
|
5658
|
+
* }
|
|
5659
|
+
*
|
|
5660
|
+
* main().catch(e => {
|
|
5661
|
+
* console.error(e);
|
|
5662
|
+
* throw e;
|
|
5663
|
+
* });
|
|
5664
|
+
*
|
|
5665
|
+
* ```
|
|
5666
|
+
*
|
|
5667
|
+
* @param params - Parameters for request
|
|
5668
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5669
|
+
* @param callback - Optional callback that handles the response.
|
|
5670
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5671
|
+
*/
|
|
5672
|
+
create(
|
|
5673
|
+
params: Params$Resource$Projects$Locations$Skills$Create,
|
|
5674
|
+
options: StreamMethodOptions
|
|
5675
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5676
|
+
create(
|
|
5677
|
+
params?: Params$Resource$Projects$Locations$Skills$Create,
|
|
5678
|
+
options?: MethodOptions
|
|
5679
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5680
|
+
create(
|
|
5681
|
+
params: Params$Resource$Projects$Locations$Skills$Create,
|
|
5682
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5683
|
+
callback: BodyResponseCallback<Readable>
|
|
5684
|
+
): void;
|
|
5685
|
+
create(
|
|
5686
|
+
params: Params$Resource$Projects$Locations$Skills$Create,
|
|
5687
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5688
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5689
|
+
): void;
|
|
5690
|
+
create(
|
|
5691
|
+
params: Params$Resource$Projects$Locations$Skills$Create,
|
|
5692
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5693
|
+
): void;
|
|
5694
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5695
|
+
create(
|
|
5696
|
+
paramsOrCallback?:
|
|
5697
|
+
| Params$Resource$Projects$Locations$Skills$Create
|
|
5698
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5699
|
+
| BodyResponseCallback<Readable>,
|
|
5700
|
+
optionsOrCallback?:
|
|
5701
|
+
| MethodOptions
|
|
5702
|
+
| StreamMethodOptions
|
|
5703
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5704
|
+
| BodyResponseCallback<Readable>,
|
|
5705
|
+
callback?:
|
|
5706
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5707
|
+
):
|
|
5708
|
+
| void
|
|
5709
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
5710
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5711
|
+
let params = (paramsOrCallback ||
|
|
5712
|
+
{}) as Params$Resource$Projects$Locations$Skills$Create;
|
|
5713
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5714
|
+
|
|
5715
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5716
|
+
callback = paramsOrCallback;
|
|
5717
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Create;
|
|
5718
|
+
options = {};
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5721
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5722
|
+
callback = optionsOrCallback;
|
|
5723
|
+
options = {};
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
const rootUrl =
|
|
5727
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5728
|
+
const parameters = {
|
|
5729
|
+
options: Object.assign(
|
|
5730
|
+
{
|
|
5731
|
+
url: (rootUrl + '/v1alpha/{+parent}/skills').replace(
|
|
5732
|
+
/([^:]\/)\/+/g,
|
|
5733
|
+
'$1'
|
|
5734
|
+
),
|
|
5735
|
+
method: 'POST',
|
|
5736
|
+
apiVersion: '',
|
|
5737
|
+
},
|
|
5738
|
+
options
|
|
5739
|
+
),
|
|
5740
|
+
params,
|
|
5741
|
+
requiredParams: ['parent'],
|
|
5742
|
+
pathParams: ['parent'],
|
|
5743
|
+
context: this.context,
|
|
5744
|
+
};
|
|
5745
|
+
if (callback) {
|
|
5746
|
+
createAPIRequest<Schema$Operation>(
|
|
5747
|
+
parameters,
|
|
5748
|
+
callback as BodyResponseCallback<unknown>
|
|
5749
|
+
);
|
|
5750
|
+
} else {
|
|
5751
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
/**
|
|
5756
|
+
* Deletes a Skill container along with all its revisions.
|
|
5757
|
+
* @example
|
|
5758
|
+
* ```js
|
|
5759
|
+
* // Before running the sample:
|
|
5760
|
+
* // - Enable the API at:
|
|
5761
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5762
|
+
* // - Login into gcloud by running:
|
|
5763
|
+
* // ```sh
|
|
5764
|
+
* // $ gcloud auth application-default login
|
|
5765
|
+
* // ```
|
|
5766
|
+
* // - Install the npm module by running:
|
|
5767
|
+
* // ```sh
|
|
5768
|
+
* // $ npm install googleapis
|
|
5769
|
+
* // ```
|
|
5770
|
+
*
|
|
5771
|
+
* const {google} = require('googleapis');
|
|
5772
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5773
|
+
*
|
|
5774
|
+
* async function main() {
|
|
5775
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5776
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5777
|
+
* scopes: [
|
|
5778
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5779
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5780
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5781
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5782
|
+
* ],
|
|
5783
|
+
* });
|
|
5784
|
+
*
|
|
5785
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5786
|
+
* const authClient = await auth.getClient();
|
|
5787
|
+
* google.options({auth: authClient});
|
|
5788
|
+
*
|
|
5789
|
+
* // Do the magic
|
|
5790
|
+
* const res = await agentregistry.projects.locations.skills.delete({
|
|
5791
|
+
* // Optional. If set to true, any child SkillRevisions under this Skill will also be deleted. Otherwise, the request will only succeed if the Skill has no child SkillRevisions.
|
|
5792
|
+
* force: 'placeholder-value',
|
|
5793
|
+
* // Required. Target Skill container name to remove.
|
|
5794
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
5795
|
+
* // Optional. Signed UUID request idempotency token.
|
|
5796
|
+
* requestId: 'placeholder-value',
|
|
5797
|
+
* });
|
|
5798
|
+
* console.log(res.data);
|
|
5799
|
+
*
|
|
5800
|
+
* // Example response
|
|
5801
|
+
* // {
|
|
5802
|
+
* // "done": false,
|
|
5803
|
+
* // "error": {},
|
|
5804
|
+
* // "metadata": {},
|
|
5805
|
+
* // "name": "my_name",
|
|
5806
|
+
* // "response": {}
|
|
5807
|
+
* // }
|
|
5808
|
+
* }
|
|
5809
|
+
*
|
|
5810
|
+
* main().catch(e => {
|
|
5811
|
+
* console.error(e);
|
|
5812
|
+
* throw e;
|
|
5813
|
+
* });
|
|
5814
|
+
*
|
|
5815
|
+
* ```
|
|
5816
|
+
*
|
|
5817
|
+
* @param params - Parameters for request
|
|
5818
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5819
|
+
* @param callback - Optional callback that handles the response.
|
|
5820
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5821
|
+
*/
|
|
5822
|
+
delete(
|
|
5823
|
+
params: Params$Resource$Projects$Locations$Skills$Delete,
|
|
5824
|
+
options: StreamMethodOptions
|
|
5825
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5826
|
+
delete(
|
|
5827
|
+
params?: Params$Resource$Projects$Locations$Skills$Delete,
|
|
5828
|
+
options?: MethodOptions
|
|
5829
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5830
|
+
delete(
|
|
5831
|
+
params: Params$Resource$Projects$Locations$Skills$Delete,
|
|
5832
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5833
|
+
callback: BodyResponseCallback<Readable>
|
|
5834
|
+
): void;
|
|
5835
|
+
delete(
|
|
5836
|
+
params: Params$Resource$Projects$Locations$Skills$Delete,
|
|
5837
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
5838
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5839
|
+
): void;
|
|
5840
|
+
delete(
|
|
5841
|
+
params: Params$Resource$Projects$Locations$Skills$Delete,
|
|
5842
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
5843
|
+
): void;
|
|
5844
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5845
|
+
delete(
|
|
5846
|
+
paramsOrCallback?:
|
|
5847
|
+
| Params$Resource$Projects$Locations$Skills$Delete
|
|
5848
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5849
|
+
| BodyResponseCallback<Readable>,
|
|
5850
|
+
optionsOrCallback?:
|
|
5851
|
+
| MethodOptions
|
|
5852
|
+
| StreamMethodOptions
|
|
5853
|
+
| BodyResponseCallback<Schema$Operation>
|
|
5854
|
+
| BodyResponseCallback<Readable>,
|
|
5855
|
+
callback?:
|
|
5856
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5857
|
+
):
|
|
5858
|
+
| void
|
|
5859
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
5860
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5861
|
+
let params = (paramsOrCallback ||
|
|
5862
|
+
{}) as Params$Resource$Projects$Locations$Skills$Delete;
|
|
5863
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5864
|
+
|
|
5865
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5866
|
+
callback = paramsOrCallback;
|
|
5867
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Delete;
|
|
5868
|
+
options = {};
|
|
5869
|
+
}
|
|
5870
|
+
|
|
5871
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5872
|
+
callback = optionsOrCallback;
|
|
5873
|
+
options = {};
|
|
5874
|
+
}
|
|
5875
|
+
|
|
5876
|
+
const rootUrl =
|
|
5877
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
5878
|
+
const parameters = {
|
|
5879
|
+
options: Object.assign(
|
|
5880
|
+
{
|
|
5881
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
5882
|
+
method: 'DELETE',
|
|
5883
|
+
apiVersion: '',
|
|
5884
|
+
},
|
|
5885
|
+
options
|
|
5886
|
+
),
|
|
5887
|
+
params,
|
|
5888
|
+
requiredParams: ['name'],
|
|
5889
|
+
pathParams: ['name'],
|
|
5890
|
+
context: this.context,
|
|
5891
|
+
};
|
|
5892
|
+
if (callback) {
|
|
5893
|
+
createAPIRequest<Schema$Operation>(
|
|
5894
|
+
parameters,
|
|
5895
|
+
callback as BodyResponseCallback<unknown>
|
|
5896
|
+
);
|
|
5897
|
+
} else {
|
|
5898
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
/**
|
|
5903
|
+
* Fetches the active configuration and metadata of a Skill.
|
|
5904
|
+
* @example
|
|
5905
|
+
* ```js
|
|
5906
|
+
* // Before running the sample:
|
|
5907
|
+
* // - Enable the API at:
|
|
5908
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
5909
|
+
* // - Login into gcloud by running:
|
|
5910
|
+
* // ```sh
|
|
5911
|
+
* // $ gcloud auth application-default login
|
|
5912
|
+
* // ```
|
|
5913
|
+
* // - Install the npm module by running:
|
|
5914
|
+
* // ```sh
|
|
5915
|
+
* // $ npm install googleapis
|
|
5916
|
+
* // ```
|
|
5917
|
+
*
|
|
5918
|
+
* const {google} = require('googleapis');
|
|
5919
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
5920
|
+
*
|
|
5921
|
+
* async function main() {
|
|
5922
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5923
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5924
|
+
* scopes: [
|
|
5925
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
5926
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
5927
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5928
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
5929
|
+
* ],
|
|
5930
|
+
* });
|
|
5931
|
+
*
|
|
5932
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5933
|
+
* const authClient = await auth.getClient();
|
|
5934
|
+
* google.options({auth: authClient});
|
|
5935
|
+
*
|
|
5936
|
+
* // Do the magic
|
|
5937
|
+
* const res = await agentregistry.projects.locations.skills.get({
|
|
5938
|
+
* // Required. Target resource container name.
|
|
5939
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
5940
|
+
* });
|
|
5941
|
+
* console.log(res.data);
|
|
5942
|
+
*
|
|
5943
|
+
* // Example response
|
|
5944
|
+
* // {
|
|
5945
|
+
* // "createTime": "my_createTime",
|
|
5946
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
5947
|
+
* // "description": "my_description",
|
|
5948
|
+
* // "displayName": "my_displayName",
|
|
5949
|
+
* // "frontmatter": {},
|
|
5950
|
+
* // "initialRevision": {},
|
|
5951
|
+
* // "name": "my_name",
|
|
5952
|
+
* // "publisher": "my_publisher",
|
|
5953
|
+
* // "skillId": "my_skillId",
|
|
5954
|
+
* // "state": "my_state",
|
|
5955
|
+
* // "targetState": "my_targetState",
|
|
5956
|
+
* // "type": "my_type",
|
|
5957
|
+
* // "uid": "my_uid",
|
|
5958
|
+
* // "updateTime": "my_updateTime"
|
|
5959
|
+
* // }
|
|
5960
|
+
* }
|
|
5961
|
+
*
|
|
5962
|
+
* main().catch(e => {
|
|
5963
|
+
* console.error(e);
|
|
5964
|
+
* throw e;
|
|
5965
|
+
* });
|
|
5966
|
+
*
|
|
5967
|
+
* ```
|
|
5968
|
+
*
|
|
5969
|
+
* @param params - Parameters for request
|
|
5970
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5971
|
+
* @param callback - Optional callback that handles the response.
|
|
5972
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5973
|
+
*/
|
|
5974
|
+
get(
|
|
5975
|
+
params: Params$Resource$Projects$Locations$Skills$Get,
|
|
5976
|
+
options: StreamMethodOptions
|
|
5977
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5978
|
+
get(
|
|
5979
|
+
params?: Params$Resource$Projects$Locations$Skills$Get,
|
|
5980
|
+
options?: MethodOptions
|
|
5981
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Skill>>;
|
|
5982
|
+
get(
|
|
5983
|
+
params: Params$Resource$Projects$Locations$Skills$Get,
|
|
5984
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5985
|
+
callback: BodyResponseCallback<Readable>
|
|
5986
|
+
): void;
|
|
5987
|
+
get(
|
|
5988
|
+
params: Params$Resource$Projects$Locations$Skills$Get,
|
|
5989
|
+
options: MethodOptions | BodyResponseCallback<Schema$Skill>,
|
|
5990
|
+
callback: BodyResponseCallback<Schema$Skill>
|
|
5991
|
+
): void;
|
|
5992
|
+
get(
|
|
5993
|
+
params: Params$Resource$Projects$Locations$Skills$Get,
|
|
5994
|
+
callback: BodyResponseCallback<Schema$Skill>
|
|
5995
|
+
): void;
|
|
5996
|
+
get(callback: BodyResponseCallback<Schema$Skill>): void;
|
|
5997
|
+
get(
|
|
5998
|
+
paramsOrCallback?:
|
|
5999
|
+
| Params$Resource$Projects$Locations$Skills$Get
|
|
6000
|
+
| BodyResponseCallback<Schema$Skill>
|
|
6001
|
+
| BodyResponseCallback<Readable>,
|
|
6002
|
+
optionsOrCallback?:
|
|
6003
|
+
| MethodOptions
|
|
6004
|
+
| StreamMethodOptions
|
|
6005
|
+
| BodyResponseCallback<Schema$Skill>
|
|
6006
|
+
| BodyResponseCallback<Readable>,
|
|
6007
|
+
callback?:
|
|
6008
|
+
BodyResponseCallback<Schema$Skill> | BodyResponseCallback<Readable>
|
|
6009
|
+
):
|
|
6010
|
+
| void
|
|
6011
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Skill>>
|
|
6012
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6013
|
+
let params = (paramsOrCallback ||
|
|
6014
|
+
{}) as Params$Resource$Projects$Locations$Skills$Get;
|
|
6015
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6016
|
+
|
|
6017
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6018
|
+
callback = paramsOrCallback;
|
|
6019
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Get;
|
|
6020
|
+
options = {};
|
|
6021
|
+
}
|
|
6022
|
+
|
|
6023
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6024
|
+
callback = optionsOrCallback;
|
|
6025
|
+
options = {};
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6028
|
+
const rootUrl =
|
|
6029
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
6030
|
+
const parameters = {
|
|
6031
|
+
options: Object.assign(
|
|
6032
|
+
{
|
|
6033
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6034
|
+
method: 'GET',
|
|
6035
|
+
apiVersion: '',
|
|
6036
|
+
},
|
|
6037
|
+
options
|
|
6038
|
+
),
|
|
6039
|
+
params,
|
|
6040
|
+
requiredParams: ['name'],
|
|
6041
|
+
pathParams: ['name'],
|
|
6042
|
+
context: this.context,
|
|
6043
|
+
};
|
|
6044
|
+
if (callback) {
|
|
6045
|
+
createAPIRequest<Schema$Skill>(
|
|
6046
|
+
parameters,
|
|
6047
|
+
callback as BodyResponseCallback<unknown>
|
|
6048
|
+
);
|
|
6049
|
+
} else {
|
|
6050
|
+
return createAPIRequest<Schema$Skill>(parameters);
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
|
|
6054
|
+
/**
|
|
6055
|
+
* Lists logical Skills available in a project.
|
|
6056
|
+
* @example
|
|
6057
|
+
* ```js
|
|
6058
|
+
* // Before running the sample:
|
|
6059
|
+
* // - Enable the API at:
|
|
6060
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
6061
|
+
* // - Login into gcloud by running:
|
|
6062
|
+
* // ```sh
|
|
6063
|
+
* // $ gcloud auth application-default login
|
|
6064
|
+
* // ```
|
|
6065
|
+
* // - Install the npm module by running:
|
|
6066
|
+
* // ```sh
|
|
6067
|
+
* // $ npm install googleapis
|
|
6068
|
+
* // ```
|
|
6069
|
+
*
|
|
6070
|
+
* const {google} = require('googleapis');
|
|
6071
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
6072
|
+
*
|
|
6073
|
+
* async function main() {
|
|
6074
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6075
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6076
|
+
* scopes: [
|
|
6077
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
6078
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
6079
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6080
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
6081
|
+
* ],
|
|
6082
|
+
* });
|
|
6083
|
+
*
|
|
6084
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6085
|
+
* const authClient = await auth.getClient();
|
|
6086
|
+
* google.options({auth: authClient});
|
|
6087
|
+
*
|
|
6088
|
+
* // Do the magic
|
|
6089
|
+
* const res = await agentregistry.projects.locations.skills.list({
|
|
6090
|
+
* // Optional. Use this field to specify filter criteria on list results. Filter expressions can be used to restrict results based upon filterable fields, where equality operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `\>`, `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `\>` | |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
|
|
6091
|
+
* filter: 'placeholder-value',
|
|
6092
|
+
* // Optional. Hint for how to order the results
|
|
6093
|
+
* orderBy: 'placeholder-value',
|
|
6094
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
6095
|
+
* pageSize: 'placeholder-value',
|
|
6096
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
6097
|
+
* pageToken: 'placeholder-value',
|
|
6098
|
+
* // Required. Parent value for ListSkillsRequest
|
|
6099
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
6100
|
+
* });
|
|
6101
|
+
* console.log(res.data);
|
|
6102
|
+
*
|
|
6103
|
+
* // Example response
|
|
6104
|
+
* // {
|
|
6105
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6106
|
+
* // "skills": [],
|
|
6107
|
+
* // "unreachable": []
|
|
6108
|
+
* // }
|
|
6109
|
+
* }
|
|
6110
|
+
*
|
|
6111
|
+
* main().catch(e => {
|
|
6112
|
+
* console.error(e);
|
|
6113
|
+
* throw e;
|
|
6114
|
+
* });
|
|
6115
|
+
*
|
|
6116
|
+
* ```
|
|
6117
|
+
*
|
|
6118
|
+
* @param params - Parameters for request
|
|
6119
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6120
|
+
* @param callback - Optional callback that handles the response.
|
|
6121
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6122
|
+
*/
|
|
6123
|
+
list(
|
|
6124
|
+
params: Params$Resource$Projects$Locations$Skills$List,
|
|
6125
|
+
options: StreamMethodOptions
|
|
6126
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6127
|
+
list(
|
|
6128
|
+
params?: Params$Resource$Projects$Locations$Skills$List,
|
|
6129
|
+
options?: MethodOptions
|
|
6130
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListSkillsResponse>>;
|
|
6131
|
+
list(
|
|
6132
|
+
params: Params$Resource$Projects$Locations$Skills$List,
|
|
6133
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6134
|
+
callback: BodyResponseCallback<Readable>
|
|
6135
|
+
): void;
|
|
6136
|
+
list(
|
|
6137
|
+
params: Params$Resource$Projects$Locations$Skills$List,
|
|
6138
|
+
options: MethodOptions | BodyResponseCallback<Schema$ListSkillsResponse>,
|
|
6139
|
+
callback: BodyResponseCallback<Schema$ListSkillsResponse>
|
|
6140
|
+
): void;
|
|
6141
|
+
list(
|
|
6142
|
+
params: Params$Resource$Projects$Locations$Skills$List,
|
|
6143
|
+
callback: BodyResponseCallback<Schema$ListSkillsResponse>
|
|
6144
|
+
): void;
|
|
6145
|
+
list(callback: BodyResponseCallback<Schema$ListSkillsResponse>): void;
|
|
6146
|
+
list(
|
|
6147
|
+
paramsOrCallback?:
|
|
6148
|
+
| Params$Resource$Projects$Locations$Skills$List
|
|
6149
|
+
| BodyResponseCallback<Schema$ListSkillsResponse>
|
|
6150
|
+
| BodyResponseCallback<Readable>,
|
|
6151
|
+
optionsOrCallback?:
|
|
6152
|
+
| MethodOptions
|
|
6153
|
+
| StreamMethodOptions
|
|
6154
|
+
| BodyResponseCallback<Schema$ListSkillsResponse>
|
|
6155
|
+
| BodyResponseCallback<Readable>,
|
|
6156
|
+
callback?:
|
|
6157
|
+
| BodyResponseCallback<Schema$ListSkillsResponse>
|
|
6158
|
+
| BodyResponseCallback<Readable>
|
|
6159
|
+
):
|
|
6160
|
+
| void
|
|
6161
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListSkillsResponse>>
|
|
6162
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6163
|
+
let params = (paramsOrCallback ||
|
|
6164
|
+
{}) as Params$Resource$Projects$Locations$Skills$List;
|
|
6165
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6166
|
+
|
|
6167
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6168
|
+
callback = paramsOrCallback;
|
|
6169
|
+
params = {} as Params$Resource$Projects$Locations$Skills$List;
|
|
6170
|
+
options = {};
|
|
6171
|
+
}
|
|
6172
|
+
|
|
6173
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6174
|
+
callback = optionsOrCallback;
|
|
6175
|
+
options = {};
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
const rootUrl =
|
|
6179
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
6180
|
+
const parameters = {
|
|
6181
|
+
options: Object.assign(
|
|
6182
|
+
{
|
|
6183
|
+
url: (rootUrl + '/v1alpha/{+parent}/skills').replace(
|
|
6184
|
+
/([^:]\/)\/+/g,
|
|
6185
|
+
'$1'
|
|
6186
|
+
),
|
|
6187
|
+
method: 'GET',
|
|
6188
|
+
apiVersion: '',
|
|
6189
|
+
},
|
|
6190
|
+
options
|
|
6191
|
+
),
|
|
6192
|
+
params,
|
|
6193
|
+
requiredParams: ['parent'],
|
|
6194
|
+
pathParams: ['parent'],
|
|
6195
|
+
context: this.context,
|
|
6196
|
+
};
|
|
6197
|
+
if (callback) {
|
|
6198
|
+
createAPIRequest<Schema$ListSkillsResponse>(
|
|
6199
|
+
parameters,
|
|
6200
|
+
callback as BodyResponseCallback<unknown>
|
|
6201
|
+
);
|
|
6202
|
+
} else {
|
|
6203
|
+
return createAPIRequest<Schema$ListSkillsResponse>(parameters);
|
|
6204
|
+
}
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6207
|
+
/**
|
|
6208
|
+
* Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
|
|
6209
|
+
* @example
|
|
6210
|
+
* ```js
|
|
6211
|
+
* // Before running the sample:
|
|
6212
|
+
* // - Enable the API at:
|
|
6213
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
6214
|
+
* // - Login into gcloud by running:
|
|
6215
|
+
* // ```sh
|
|
6216
|
+
* // $ gcloud auth application-default login
|
|
6217
|
+
* // ```
|
|
6218
|
+
* // - Install the npm module by running:
|
|
6219
|
+
* // ```sh
|
|
6220
|
+
* // $ npm install googleapis
|
|
6221
|
+
* // ```
|
|
6222
|
+
*
|
|
6223
|
+
* const {google} = require('googleapis');
|
|
6224
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
6225
|
+
*
|
|
6226
|
+
* async function main() {
|
|
6227
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6228
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6229
|
+
* scopes: [
|
|
6230
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
6231
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
6232
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6233
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
6234
|
+
* ],
|
|
6235
|
+
* });
|
|
6236
|
+
*
|
|
6237
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6238
|
+
* const authClient = await auth.getClient();
|
|
6239
|
+
* google.options({auth: authClient});
|
|
6240
|
+
*
|
|
6241
|
+
* // Do the magic
|
|
6242
|
+
* const res = await agentregistry.projects.locations.skills.patch({
|
|
6243
|
+
* // Identifier. Resource name of the Skill. Format: `projects/{project\}/locations/{location\}/skills/{skill\}` The `{skill\}` segment acts as the resource ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create-docs`).
|
|
6244
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
6245
|
+
* // Optional. Signed UUID request idempotency token.
|
|
6246
|
+
* requestId: 'placeholder-value',
|
|
6247
|
+
* // Optional. Standard update target mask mapping relative fields.
|
|
6248
|
+
* updateMask: 'placeholder-value',
|
|
6249
|
+
*
|
|
6250
|
+
* // Request body metadata
|
|
6251
|
+
* requestBody: {
|
|
6252
|
+
* // request body parameters
|
|
6253
|
+
* // {
|
|
6254
|
+
* // "createTime": "my_createTime",
|
|
6255
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
6256
|
+
* // "description": "my_description",
|
|
6257
|
+
* // "displayName": "my_displayName",
|
|
6258
|
+
* // "frontmatter": {},
|
|
6259
|
+
* // "initialRevision": {},
|
|
6260
|
+
* // "name": "my_name",
|
|
6261
|
+
* // "publisher": "my_publisher",
|
|
6262
|
+
* // "skillId": "my_skillId",
|
|
6263
|
+
* // "state": "my_state",
|
|
6264
|
+
* // "targetState": "my_targetState",
|
|
6265
|
+
* // "type": "my_type",
|
|
6266
|
+
* // "uid": "my_uid",
|
|
6267
|
+
* // "updateTime": "my_updateTime"
|
|
6268
|
+
* // }
|
|
6269
|
+
* },
|
|
6270
|
+
* });
|
|
6271
|
+
* console.log(res.data);
|
|
6272
|
+
*
|
|
6273
|
+
* // Example response
|
|
6274
|
+
* // {
|
|
6275
|
+
* // "done": false,
|
|
6276
|
+
* // "error": {},
|
|
6277
|
+
* // "metadata": {},
|
|
6278
|
+
* // "name": "my_name",
|
|
6279
|
+
* // "response": {}
|
|
6280
|
+
* // }
|
|
6281
|
+
* }
|
|
6282
|
+
*
|
|
6283
|
+
* main().catch(e => {
|
|
6284
|
+
* console.error(e);
|
|
6285
|
+
* throw e;
|
|
6286
|
+
* });
|
|
6287
|
+
*
|
|
6288
|
+
* ```
|
|
6289
|
+
*
|
|
6290
|
+
* @param params - Parameters for request
|
|
6291
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6292
|
+
* @param callback - Optional callback that handles the response.
|
|
6293
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6294
|
+
*/
|
|
6295
|
+
patch(
|
|
6296
|
+
params: Params$Resource$Projects$Locations$Skills$Patch,
|
|
6297
|
+
options: StreamMethodOptions
|
|
6298
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6299
|
+
patch(
|
|
6300
|
+
params?: Params$Resource$Projects$Locations$Skills$Patch,
|
|
6301
|
+
options?: MethodOptions
|
|
6302
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6303
|
+
patch(
|
|
6304
|
+
params: Params$Resource$Projects$Locations$Skills$Patch,
|
|
6305
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6306
|
+
callback: BodyResponseCallback<Readable>
|
|
6307
|
+
): void;
|
|
6308
|
+
patch(
|
|
6309
|
+
params: Params$Resource$Projects$Locations$Skills$Patch,
|
|
6310
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6311
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6312
|
+
): void;
|
|
6313
|
+
patch(
|
|
6314
|
+
params: Params$Resource$Projects$Locations$Skills$Patch,
|
|
6315
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6316
|
+
): void;
|
|
6317
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6318
|
+
patch(
|
|
6319
|
+
paramsOrCallback?:
|
|
6320
|
+
| Params$Resource$Projects$Locations$Skills$Patch
|
|
6321
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6322
|
+
| BodyResponseCallback<Readable>,
|
|
6323
|
+
optionsOrCallback?:
|
|
6324
|
+
| MethodOptions
|
|
6325
|
+
| StreamMethodOptions
|
|
6326
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6327
|
+
| BodyResponseCallback<Readable>,
|
|
6328
|
+
callback?:
|
|
6329
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4294
6330
|
):
|
|
4295
6331
|
| void
|
|
4296
6332
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
4297
6333
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4298
6334
|
let params = (paramsOrCallback ||
|
|
4299
|
-
{}) as Params$Resource$Projects$Locations$
|
|
6335
|
+
{}) as Params$Resource$Projects$Locations$Skills$Patch;
|
|
4300
6336
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4301
6337
|
|
|
4302
6338
|
if (typeof paramsOrCallback === 'function') {
|
|
4303
6339
|
callback = paramsOrCallback;
|
|
4304
|
-
params = {} as Params$Resource$Projects$Locations$
|
|
6340
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Patch;
|
|
4305
6341
|
options = {};
|
|
4306
6342
|
}
|
|
4307
6343
|
|
|
@@ -4315,11 +6351,163 @@ export namespace agentregistry_v1alpha {
|
|
|
4315
6351
|
const parameters = {
|
|
4316
6352
|
options: Object.assign(
|
|
4317
6353
|
{
|
|
4318
|
-
url: (rootUrl + '/v1alpha/{+
|
|
6354
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6355
|
+
method: 'PATCH',
|
|
6356
|
+
apiVersion: '',
|
|
6357
|
+
},
|
|
6358
|
+
options
|
|
6359
|
+
),
|
|
6360
|
+
params,
|
|
6361
|
+
requiredParams: ['name'],
|
|
6362
|
+
pathParams: ['name'],
|
|
6363
|
+
context: this.context,
|
|
6364
|
+
};
|
|
6365
|
+
if (callback) {
|
|
6366
|
+
createAPIRequest<Schema$Operation>(
|
|
6367
|
+
parameters,
|
|
6368
|
+
callback as BodyResponseCallback<unknown>
|
|
6369
|
+
);
|
|
6370
|
+
} else {
|
|
6371
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6372
|
+
}
|
|
6373
|
+
}
|
|
6374
|
+
|
|
6375
|
+
/**
|
|
6376
|
+
* Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
|
|
6377
|
+
* @example
|
|
6378
|
+
* ```js
|
|
6379
|
+
* // Before running the sample:
|
|
6380
|
+
* // - Enable the API at:
|
|
6381
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
6382
|
+
* // - Login into gcloud by running:
|
|
6383
|
+
* // ```sh
|
|
6384
|
+
* // $ gcloud auth application-default login
|
|
6385
|
+
* // ```
|
|
6386
|
+
* // - Install the npm module by running:
|
|
6387
|
+
* // ```sh
|
|
6388
|
+
* // $ npm install googleapis
|
|
6389
|
+
* // ```
|
|
6390
|
+
*
|
|
6391
|
+
* const {google} = require('googleapis');
|
|
6392
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
6393
|
+
*
|
|
6394
|
+
* async function main() {
|
|
6395
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6396
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6397
|
+
* scopes: [
|
|
6398
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
6399
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
6400
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6401
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
6402
|
+
* ],
|
|
6403
|
+
* });
|
|
6404
|
+
*
|
|
6405
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6406
|
+
* const authClient = await auth.getClient();
|
|
6407
|
+
* google.options({auth: authClient});
|
|
6408
|
+
*
|
|
6409
|
+
* // Do the magic
|
|
6410
|
+
* const res = await agentregistry.projects.locations.skills.search({
|
|
6411
|
+
* // Optional. Use this field to specify additional filter criteria on search results. Filter expressions can be used to restrict results based upon filterable fields, where equality operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `\>`, `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `\>` | |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
|
|
6412
|
+
* filter: 'placeholder-value',
|
|
6413
|
+
* // 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.
|
|
6414
|
+
* pageSize: 'placeholder-value',
|
|
6415
|
+
* // 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.
|
|
6416
|
+
* pageToken: 'placeholder-value',
|
|
6417
|
+
* // Required. Parent value for SearchSkillsRequest. Format: `projects/{project\}/locations/{location\}`.
|
|
6418
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
6419
|
+
* // Optional. Search criteria used to select the Skills to return. If no search criteria is specified then all accessible Skills 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 | |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | No | Included | | frontmatter.license | No | Yes | No | Included | Examples: * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill with the specified skill ID. * `name:important` to find skills whose name contains `important` as a word. * `displayName:works*` to find skills whose display name contains words that start with `works`.
|
|
6420
|
+
* searchString: 'placeholder-value',
|
|
6421
|
+
* // Optional. The type of search.
|
|
6422
|
+
* searchType: 'placeholder-value',
|
|
6423
|
+
* });
|
|
6424
|
+
* console.log(res.data);
|
|
6425
|
+
*
|
|
6426
|
+
* // Example response
|
|
6427
|
+
* // {
|
|
6428
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6429
|
+
* // "skills": []
|
|
6430
|
+
* // }
|
|
6431
|
+
* }
|
|
6432
|
+
*
|
|
6433
|
+
* main().catch(e => {
|
|
6434
|
+
* console.error(e);
|
|
6435
|
+
* throw e;
|
|
6436
|
+
* });
|
|
6437
|
+
*
|
|
6438
|
+
* ```
|
|
6439
|
+
*
|
|
6440
|
+
* @param params - Parameters for request
|
|
6441
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6442
|
+
* @param callback - Optional callback that handles the response.
|
|
6443
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6444
|
+
*/
|
|
6445
|
+
search(
|
|
6446
|
+
params: Params$Resource$Projects$Locations$Skills$Search,
|
|
6447
|
+
options: StreamMethodOptions
|
|
6448
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6449
|
+
search(
|
|
6450
|
+
params?: Params$Resource$Projects$Locations$Skills$Search,
|
|
6451
|
+
options?: MethodOptions
|
|
6452
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SearchSkillsResponse>>;
|
|
6453
|
+
search(
|
|
6454
|
+
params: Params$Resource$Projects$Locations$Skills$Search,
|
|
6455
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6456
|
+
callback: BodyResponseCallback<Readable>
|
|
6457
|
+
): void;
|
|
6458
|
+
search(
|
|
6459
|
+
params: Params$Resource$Projects$Locations$Skills$Search,
|
|
6460
|
+
options:
|
|
6461
|
+
MethodOptions | BodyResponseCallback<Schema$SearchSkillsResponse>,
|
|
6462
|
+
callback: BodyResponseCallback<Schema$SearchSkillsResponse>
|
|
6463
|
+
): void;
|
|
6464
|
+
search(
|
|
6465
|
+
params: Params$Resource$Projects$Locations$Skills$Search,
|
|
6466
|
+
callback: BodyResponseCallback<Schema$SearchSkillsResponse>
|
|
6467
|
+
): void;
|
|
6468
|
+
search(callback: BodyResponseCallback<Schema$SearchSkillsResponse>): void;
|
|
6469
|
+
search(
|
|
6470
|
+
paramsOrCallback?:
|
|
6471
|
+
| Params$Resource$Projects$Locations$Skills$Search
|
|
6472
|
+
| BodyResponseCallback<Schema$SearchSkillsResponse>
|
|
6473
|
+
| BodyResponseCallback<Readable>,
|
|
6474
|
+
optionsOrCallback?:
|
|
6475
|
+
| MethodOptions
|
|
6476
|
+
| StreamMethodOptions
|
|
6477
|
+
| BodyResponseCallback<Schema$SearchSkillsResponse>
|
|
6478
|
+
| BodyResponseCallback<Readable>,
|
|
6479
|
+
callback?:
|
|
6480
|
+
| BodyResponseCallback<Schema$SearchSkillsResponse>
|
|
6481
|
+
| BodyResponseCallback<Readable>
|
|
6482
|
+
):
|
|
6483
|
+
| void
|
|
6484
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SearchSkillsResponse>>
|
|
6485
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6486
|
+
let params = (paramsOrCallback ||
|
|
6487
|
+
{}) as Params$Resource$Projects$Locations$Skills$Search;
|
|
6488
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6489
|
+
|
|
6490
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6491
|
+
callback = paramsOrCallback;
|
|
6492
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Search;
|
|
6493
|
+
options = {};
|
|
6494
|
+
}
|
|
6495
|
+
|
|
6496
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6497
|
+
callback = optionsOrCallback;
|
|
6498
|
+
options = {};
|
|
6499
|
+
}
|
|
6500
|
+
|
|
6501
|
+
const rootUrl =
|
|
6502
|
+
options.rootUrl || 'https://agentregistry.googleapis.com/';
|
|
6503
|
+
const parameters = {
|
|
6504
|
+
options: Object.assign(
|
|
6505
|
+
{
|
|
6506
|
+
url: (rootUrl + '/v1alpha/{+parent}/skills:search').replace(
|
|
4319
6507
|
/([^:]\/)\/+/g,
|
|
4320
6508
|
'$1'
|
|
4321
6509
|
),
|
|
4322
|
-
method: '
|
|
6510
|
+
method: 'GET',
|
|
4323
6511
|
apiVersion: '',
|
|
4324
6512
|
},
|
|
4325
6513
|
options
|
|
@@ -4330,17 +6518,131 @@ export namespace agentregistry_v1alpha {
|
|
|
4330
6518
|
context: this.context,
|
|
4331
6519
|
};
|
|
4332
6520
|
if (callback) {
|
|
4333
|
-
createAPIRequest<Schema$
|
|
6521
|
+
createAPIRequest<Schema$SearchSkillsResponse>(
|
|
4334
6522
|
parameters,
|
|
4335
6523
|
callback as BodyResponseCallback<unknown>
|
|
4336
6524
|
);
|
|
4337
6525
|
} else {
|
|
4338
|
-
return createAPIRequest<Schema$
|
|
6526
|
+
return createAPIRequest<Schema$SearchSkillsResponse>(parameters);
|
|
4339
6527
|
}
|
|
4340
6528
|
}
|
|
6529
|
+
}
|
|
4341
6530
|
|
|
6531
|
+
export interface Params$Resource$Projects$Locations$Skills$Create extends StandardParameters {
|
|
4342
6532
|
/**
|
|
4343
|
-
*
|
|
6533
|
+
* Required. The project and location location to bootstrap.
|
|
6534
|
+
*/
|
|
6535
|
+
parent?: string;
|
|
6536
|
+
/**
|
|
6537
|
+
* Optional. Signed UUID request idempotency token.
|
|
6538
|
+
*/
|
|
6539
|
+
requestId?: string;
|
|
6540
|
+
/**
|
|
6541
|
+
* Required. Custom, user-defined unique container identifier. Must be unique within the parent project and location. This value should be 4-64 characters, and valid characters are `/a-z-/`.
|
|
6542
|
+
*/
|
|
6543
|
+
skillId?: string;
|
|
6544
|
+
|
|
6545
|
+
/**
|
|
6546
|
+
* Request body metadata
|
|
6547
|
+
*/
|
|
6548
|
+
requestBody?: Schema$Skill;
|
|
6549
|
+
}
|
|
6550
|
+
export interface Params$Resource$Projects$Locations$Skills$Delete extends StandardParameters {
|
|
6551
|
+
/**
|
|
6552
|
+
* Optional. If set to true, any child SkillRevisions under this Skill will also be deleted. Otherwise, the request will only succeed if the Skill has no child SkillRevisions.
|
|
6553
|
+
*/
|
|
6554
|
+
force?: boolean;
|
|
6555
|
+
/**
|
|
6556
|
+
* Required. Target Skill container name to remove.
|
|
6557
|
+
*/
|
|
6558
|
+
name?: string;
|
|
6559
|
+
/**
|
|
6560
|
+
* Optional. Signed UUID request idempotency token.
|
|
6561
|
+
*/
|
|
6562
|
+
requestId?: string;
|
|
6563
|
+
}
|
|
6564
|
+
export interface Params$Resource$Projects$Locations$Skills$Get extends StandardParameters {
|
|
6565
|
+
/**
|
|
6566
|
+
* Required. Target resource container name.
|
|
6567
|
+
*/
|
|
6568
|
+
name?: string;
|
|
6569
|
+
}
|
|
6570
|
+
export interface Params$Resource$Projects$Locations$Skills$List extends StandardParameters {
|
|
6571
|
+
/**
|
|
6572
|
+
* Optional. Use this field to specify filter criteria on list results. Filter expressions can be used to restrict results based upon filterable fields, where equality operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `\>`, `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `\>` | |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
|
|
6573
|
+
*/
|
|
6574
|
+
filter?: string;
|
|
6575
|
+
/**
|
|
6576
|
+
* Optional. Hint for how to order the results
|
|
6577
|
+
*/
|
|
6578
|
+
orderBy?: string;
|
|
6579
|
+
/**
|
|
6580
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
6581
|
+
*/
|
|
6582
|
+
pageSize?: number;
|
|
6583
|
+
/**
|
|
6584
|
+
* Optional. A token identifying a page of results the server should return.
|
|
6585
|
+
*/
|
|
6586
|
+
pageToken?: string;
|
|
6587
|
+
/**
|
|
6588
|
+
* Required. Parent value for ListSkillsRequest
|
|
6589
|
+
*/
|
|
6590
|
+
parent?: string;
|
|
6591
|
+
}
|
|
6592
|
+
export interface Params$Resource$Projects$Locations$Skills$Patch extends StandardParameters {
|
|
6593
|
+
/**
|
|
6594
|
+
* Identifier. Resource name of the Skill. Format: `projects/{project\}/locations/{location\}/skills/{skill\}` The `{skill\}` segment acts as the resource ID. If the skill is associated with a Publisher, this segment typically uses a hyphenated namespace prefix corresponding to the publisher (e.g., `google-workspace-create-docs`).
|
|
6595
|
+
*/
|
|
6596
|
+
name?: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Optional. Signed UUID request idempotency token.
|
|
6599
|
+
*/
|
|
6600
|
+
requestId?: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Optional. Standard update target mask mapping relative fields.
|
|
6603
|
+
*/
|
|
6604
|
+
updateMask?: string;
|
|
6605
|
+
|
|
6606
|
+
/**
|
|
6607
|
+
* Request body metadata
|
|
6608
|
+
*/
|
|
6609
|
+
requestBody?: Schema$Skill;
|
|
6610
|
+
}
|
|
6611
|
+
export interface Params$Resource$Projects$Locations$Skills$Search extends StandardParameters {
|
|
6612
|
+
/**
|
|
6613
|
+
* Optional. Use this field to specify additional filter criteria on search results. Filter expressions can be used to restrict results based upon filterable fields, where equality operators can be used. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `<`, `\>`, `NOT`, `AND`, `OR`, and `()`. | Field | `=` | `<`, `\>` | |--------------|-----|----------| | state | Yes | No | | targetState | Yes | No | | createTime | Yes | Yes | | updateTime | Yes | Yes | Examples: * `state=ACTIVE` to restrict results to skills in the `ACTIVE` state.
|
|
6614
|
+
*/
|
|
6615
|
+
filter?: string;
|
|
6616
|
+
/**
|
|
6617
|
+
* 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.
|
|
6618
|
+
*/
|
|
6619
|
+
pageSize?: number;
|
|
6620
|
+
/**
|
|
6621
|
+
* 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.
|
|
6622
|
+
*/
|
|
6623
|
+
pageToken?: string;
|
|
6624
|
+
/**
|
|
6625
|
+
* Required. Parent value for SearchSkillsRequest. Format: `projects/{project\}/locations/{location\}`.
|
|
6626
|
+
*/
|
|
6627
|
+
parent?: string;
|
|
6628
|
+
/**
|
|
6629
|
+
* Optional. Search criteria used to select the Skills to return. If no search criteria is specified then all accessible Skills 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 | |---------------------------|-----|-----|-----|----------------| | skillId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | frontmatter.name | No | Yes | No | Included | | frontmatter.description | No | Yes | No | Included | | frontmatter.compatibility | No | Yes | No | Included | | frontmatter.license | No | Yes | No | Included | Examples: * `skillId="urn:skill:projects-1234:locations:global:private-important-skill"` to find the skill with the specified skill ID. * `name:important` to find skills whose name contains `important` as a word. * `displayName:works*` to find skills whose display name contains words that start with `works`.
|
|
6630
|
+
*/
|
|
6631
|
+
searchString?: string;
|
|
6632
|
+
/**
|
|
6633
|
+
* Optional. The type of search.
|
|
6634
|
+
*/
|
|
6635
|
+
searchType?: string;
|
|
6636
|
+
}
|
|
6637
|
+
|
|
6638
|
+
export class Resource$Projects$Locations$Skills$Revisions {
|
|
6639
|
+
context: APIRequestContext;
|
|
6640
|
+
constructor(context: APIRequestContext) {
|
|
6641
|
+
this.context = context;
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
/**
|
|
6645
|
+
* Creates a new immutable revision and triggers validation pipelines.
|
|
4344
6646
|
* @example
|
|
4345
6647
|
* ```js
|
|
4346
6648
|
* // Before running the sample:
|
|
@@ -4362,8 +6664,10 @@ export namespace agentregistry_v1alpha {
|
|
|
4362
6664
|
* const auth = new google.auth.GoogleAuth({
|
|
4363
6665
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4364
6666
|
* scopes: [
|
|
6667
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4365
6668
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4366
6669
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6670
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4367
6671
|
* ],
|
|
4368
6672
|
* });
|
|
4369
6673
|
*
|
|
@@ -4372,11 +6676,29 @@ export namespace agentregistry_v1alpha {
|
|
|
4372
6676
|
* google.options({auth: authClient});
|
|
4373
6677
|
*
|
|
4374
6678
|
* // Do the magic
|
|
4375
|
-
* const res = await agentregistry.projects.locations.
|
|
4376
|
-
* // Required.
|
|
4377
|
-
*
|
|
4378
|
-
* // Optional.
|
|
6679
|
+
* const res = await agentregistry.projects.locations.skills.revisions.create({
|
|
6680
|
+
* // Required. Parent logical container name.
|
|
6681
|
+
* parent: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
6682
|
+
* // Optional. Signed UUID request idempotency token.
|
|
4379
6683
|
* requestId: 'placeholder-value',
|
|
6684
|
+
* // Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`
|
|
6685
|
+
* skillRevisionId: 'placeholder-value',
|
|
6686
|
+
*
|
|
6687
|
+
* // Request body metadata
|
|
6688
|
+
* requestBody: {
|
|
6689
|
+
* // request body parameters
|
|
6690
|
+
* // {
|
|
6691
|
+
* // "archiveUploadSource": {},
|
|
6692
|
+
* // "createTime": "my_createTime",
|
|
6693
|
+
* // "frontmatter": {},
|
|
6694
|
+
* // "gcsSource": {},
|
|
6695
|
+
* // "name": "my_name",
|
|
6696
|
+
* // "sha256Hash": "my_sha256Hash",
|
|
6697
|
+
* // "sizeBytes": "my_sizeBytes",
|
|
6698
|
+
* // "state": "my_state",
|
|
6699
|
+
* // "uid": "my_uid"
|
|
6700
|
+
* // }
|
|
6701
|
+
* },
|
|
4380
6702
|
* });
|
|
4381
6703
|
* console.log(res.data);
|
|
4382
6704
|
*
|
|
@@ -4402,32 +6724,32 @@ export namespace agentregistry_v1alpha {
|
|
|
4402
6724
|
* @param callback - Optional callback that handles the response.
|
|
4403
6725
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4404
6726
|
*/
|
|
4405
|
-
|
|
4406
|
-
params: Params$Resource$Projects$Locations$
|
|
6727
|
+
create(
|
|
6728
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Create,
|
|
4407
6729
|
options: StreamMethodOptions
|
|
4408
6730
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4409
|
-
|
|
4410
|
-
params?: Params$Resource$Projects$Locations$
|
|
6731
|
+
create(
|
|
6732
|
+
params?: Params$Resource$Projects$Locations$Skills$Revisions$Create,
|
|
4411
6733
|
options?: MethodOptions
|
|
4412
6734
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4413
|
-
|
|
4414
|
-
params: Params$Resource$Projects$Locations$
|
|
6735
|
+
create(
|
|
6736
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Create,
|
|
4415
6737
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4416
6738
|
callback: BodyResponseCallback<Readable>
|
|
4417
6739
|
): void;
|
|
4418
|
-
|
|
4419
|
-
params: Params$Resource$Projects$Locations$
|
|
6740
|
+
create(
|
|
6741
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Create,
|
|
4420
6742
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
4421
6743
|
callback: BodyResponseCallback<Schema$Operation>
|
|
4422
6744
|
): void;
|
|
4423
|
-
|
|
4424
|
-
params: Params$Resource$Projects$Locations$
|
|
6745
|
+
create(
|
|
6746
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Create,
|
|
4425
6747
|
callback: BodyResponseCallback<Schema$Operation>
|
|
4426
6748
|
): void;
|
|
4427
|
-
|
|
4428
|
-
|
|
6749
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6750
|
+
create(
|
|
4429
6751
|
paramsOrCallback?:
|
|
4430
|
-
| Params$Resource$Projects$Locations$
|
|
6752
|
+
| Params$Resource$Projects$Locations$Skills$Revisions$Create
|
|
4431
6753
|
| BodyResponseCallback<Schema$Operation>
|
|
4432
6754
|
| BodyResponseCallback<Readable>,
|
|
4433
6755
|
optionsOrCallback?:
|
|
@@ -4436,19 +6758,19 @@ export namespace agentregistry_v1alpha {
|
|
|
4436
6758
|
| BodyResponseCallback<Schema$Operation>
|
|
4437
6759
|
| BodyResponseCallback<Readable>,
|
|
4438
6760
|
callback?:
|
|
4439
|
-
|
|
4440
|
-
| BodyResponseCallback<Readable>
|
|
6761
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4441
6762
|
):
|
|
4442
6763
|
| void
|
|
4443
6764
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
4444
6765
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4445
6766
|
let params = (paramsOrCallback ||
|
|
4446
|
-
{}) as Params$Resource$Projects$Locations$
|
|
6767
|
+
{}) as Params$Resource$Projects$Locations$Skills$Revisions$Create;
|
|
4447
6768
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4448
6769
|
|
|
4449
6770
|
if (typeof paramsOrCallback === 'function') {
|
|
4450
6771
|
callback = paramsOrCallback;
|
|
4451
|
-
params =
|
|
6772
|
+
params =
|
|
6773
|
+
{} as Params$Resource$Projects$Locations$Skills$Revisions$Create;
|
|
4452
6774
|
options = {};
|
|
4453
6775
|
}
|
|
4454
6776
|
|
|
@@ -4462,15 +6784,18 @@ export namespace agentregistry_v1alpha {
|
|
|
4462
6784
|
const parameters = {
|
|
4463
6785
|
options: Object.assign(
|
|
4464
6786
|
{
|
|
4465
|
-
url: (rootUrl + '/v1alpha/{+
|
|
4466
|
-
|
|
6787
|
+
url: (rootUrl + '/v1alpha/{+parent}/revisions').replace(
|
|
6788
|
+
/([^:]\/)\/+/g,
|
|
6789
|
+
'$1'
|
|
6790
|
+
),
|
|
6791
|
+
method: 'POST',
|
|
4467
6792
|
apiVersion: '',
|
|
4468
6793
|
},
|
|
4469
6794
|
options
|
|
4470
6795
|
),
|
|
4471
6796
|
params,
|
|
4472
|
-
requiredParams: ['
|
|
4473
|
-
pathParams: ['
|
|
6797
|
+
requiredParams: ['parent'],
|
|
6798
|
+
pathParams: ['parent'],
|
|
4474
6799
|
context: this.context,
|
|
4475
6800
|
};
|
|
4476
6801
|
if (callback) {
|
|
@@ -4484,7 +6809,7 @@ export namespace agentregistry_v1alpha {
|
|
|
4484
6809
|
}
|
|
4485
6810
|
|
|
4486
6811
|
/**
|
|
4487
|
-
*
|
|
6812
|
+
* Deletes a specific revision (restricted to admins to purge accidentally committed secrets).
|
|
4488
6813
|
* @example
|
|
4489
6814
|
* ```js
|
|
4490
6815
|
* // Before running the sample:
|
|
@@ -4518,24 +6843,21 @@ export namespace agentregistry_v1alpha {
|
|
|
4518
6843
|
* google.options({auth: authClient});
|
|
4519
6844
|
*
|
|
4520
6845
|
* // Do the magic
|
|
4521
|
-
* const res = await agentregistry.projects.locations.
|
|
4522
|
-
* // Required.
|
|
4523
|
-
* name: 'projects/my-project/locations/my-location/
|
|
6846
|
+
* const res = await agentregistry.projects.locations.skills.revisions.delete({
|
|
6847
|
+
* // Required. Target revision name to remove.
|
|
6848
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill/revisions/my-revision',
|
|
6849
|
+
* // Optional. Signed UUID request idempotency token.
|
|
6850
|
+
* requestId: 'placeholder-value',
|
|
4524
6851
|
* });
|
|
4525
6852
|
* console.log(res.data);
|
|
4526
6853
|
*
|
|
4527
6854
|
* // Example response
|
|
4528
6855
|
* // {
|
|
4529
|
-
* // "
|
|
4530
|
-
* // "
|
|
4531
|
-
* // "
|
|
4532
|
-
* // "displayName": "my_displayName",
|
|
4533
|
-
* // "endpointSpec": {},
|
|
4534
|
-
* // "interfaces": [],
|
|
4535
|
-
* // "mcpServerSpec": {},
|
|
6856
|
+
* // "done": false,
|
|
6857
|
+
* // "error": {},
|
|
6858
|
+
* // "metadata": {},
|
|
4536
6859
|
* // "name": "my_name",
|
|
4537
|
-
* // "
|
|
4538
|
-
* // "updateTime": "my_updateTime"
|
|
6860
|
+
* // "response": {}
|
|
4539
6861
|
* // }
|
|
4540
6862
|
* }
|
|
4541
6863
|
*
|
|
@@ -4551,53 +6873,53 @@ export namespace agentregistry_v1alpha {
|
|
|
4551
6873
|
* @param callback - Optional callback that handles the response.
|
|
4552
6874
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4553
6875
|
*/
|
|
4554
|
-
|
|
4555
|
-
params: Params$Resource$Projects$Locations$
|
|
6876
|
+
delete(
|
|
6877
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Delete,
|
|
4556
6878
|
options: StreamMethodOptions
|
|
4557
6879
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4558
|
-
|
|
4559
|
-
params?: Params$Resource$Projects$Locations$
|
|
6880
|
+
delete(
|
|
6881
|
+
params?: Params$Resource$Projects$Locations$Skills$Revisions$Delete,
|
|
4560
6882
|
options?: MethodOptions
|
|
4561
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
4562
|
-
|
|
4563
|
-
params: Params$Resource$Projects$Locations$
|
|
6883
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6884
|
+
delete(
|
|
6885
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Delete,
|
|
4564
6886
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4565
6887
|
callback: BodyResponseCallback<Readable>
|
|
4566
6888
|
): void;
|
|
4567
|
-
|
|
4568
|
-
params: Params$Resource$Projects$Locations$
|
|
4569
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4570
|
-
callback: BodyResponseCallback<Schema$
|
|
6889
|
+
delete(
|
|
6890
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Delete,
|
|
6891
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6892
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4571
6893
|
): void;
|
|
4572
|
-
|
|
4573
|
-
params: Params$Resource$Projects$Locations$
|
|
4574
|
-
callback: BodyResponseCallback<Schema$
|
|
6894
|
+
delete(
|
|
6895
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Delete,
|
|
6896
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4575
6897
|
): void;
|
|
4576
|
-
|
|
4577
|
-
|
|
6898
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6899
|
+
delete(
|
|
4578
6900
|
paramsOrCallback?:
|
|
4579
|
-
| Params$Resource$Projects$Locations$
|
|
4580
|
-
| BodyResponseCallback<Schema$
|
|
6901
|
+
| Params$Resource$Projects$Locations$Skills$Revisions$Delete
|
|
6902
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4581
6903
|
| BodyResponseCallback<Readable>,
|
|
4582
6904
|
optionsOrCallback?:
|
|
4583
6905
|
| MethodOptions
|
|
4584
6906
|
| StreamMethodOptions
|
|
4585
|
-
| BodyResponseCallback<Schema$
|
|
6907
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4586
6908
|
| BodyResponseCallback<Readable>,
|
|
4587
6909
|
callback?:
|
|
4588
|
-
|
|
4589
|
-
| BodyResponseCallback<Readable>
|
|
6910
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
4590
6911
|
):
|
|
4591
6912
|
| void
|
|
4592
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
6913
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
4593
6914
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4594
6915
|
let params = (paramsOrCallback ||
|
|
4595
|
-
{}) as Params$Resource$Projects$Locations$
|
|
6916
|
+
{}) as Params$Resource$Projects$Locations$Skills$Revisions$Delete;
|
|
4596
6917
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4597
6918
|
|
|
4598
6919
|
if (typeof paramsOrCallback === 'function') {
|
|
4599
6920
|
callback = paramsOrCallback;
|
|
4600
|
-
params =
|
|
6921
|
+
params =
|
|
6922
|
+
{} as Params$Resource$Projects$Locations$Skills$Revisions$Delete;
|
|
4601
6923
|
options = {};
|
|
4602
6924
|
}
|
|
4603
6925
|
|
|
@@ -4612,7 +6934,7 @@ export namespace agentregistry_v1alpha {
|
|
|
4612
6934
|
options: Object.assign(
|
|
4613
6935
|
{
|
|
4614
6936
|
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4615
|
-
method: '
|
|
6937
|
+
method: 'DELETE',
|
|
4616
6938
|
apiVersion: '',
|
|
4617
6939
|
},
|
|
4618
6940
|
options
|
|
@@ -4623,17 +6945,17 @@ export namespace agentregistry_v1alpha {
|
|
|
4623
6945
|
context: this.context,
|
|
4624
6946
|
};
|
|
4625
6947
|
if (callback) {
|
|
4626
|
-
createAPIRequest<Schema$
|
|
6948
|
+
createAPIRequest<Schema$Operation>(
|
|
4627
6949
|
parameters,
|
|
4628
6950
|
callback as BodyResponseCallback<unknown>
|
|
4629
6951
|
);
|
|
4630
6952
|
} else {
|
|
4631
|
-
return createAPIRequest<Schema$
|
|
6953
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
4632
6954
|
}
|
|
4633
6955
|
}
|
|
4634
6956
|
|
|
4635
6957
|
/**
|
|
4636
|
-
*
|
|
6958
|
+
* Gets details of a single immutable Revision.
|
|
4637
6959
|
* @example
|
|
4638
6960
|
* ```js
|
|
4639
6961
|
* // Before running the sample:
|
|
@@ -4667,22 +6989,23 @@ export namespace agentregistry_v1alpha {
|
|
|
4667
6989
|
* google.options({auth: authClient});
|
|
4668
6990
|
*
|
|
4669
6991
|
* // Do the magic
|
|
4670
|
-
* const res = await agentregistry.projects.locations.
|
|
4671
|
-
* //
|
|
4672
|
-
*
|
|
4673
|
-
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
4674
|
-
* pageSize: 'placeholder-value',
|
|
4675
|
-
* // Optional. A token identifying a page of results the server should return.
|
|
4676
|
-
* pageToken: 'placeholder-value',
|
|
4677
|
-
* // Required. The project and location to list services in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
4678
|
-
* parent: 'projects/my-project/locations/my-location',
|
|
6992
|
+
* const res = await agentregistry.projects.locations.skills.revisions.get({
|
|
6993
|
+
* // Required. Target revision name.
|
|
6994
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill/revisions/my-revision',
|
|
4679
6995
|
* });
|
|
4680
6996
|
* console.log(res.data);
|
|
4681
6997
|
*
|
|
4682
6998
|
* // Example response
|
|
4683
6999
|
* // {
|
|
4684
|
-
* // "
|
|
4685
|
-
* // "
|
|
7000
|
+
* // "archiveUploadSource": {},
|
|
7001
|
+
* // "createTime": "my_createTime",
|
|
7002
|
+
* // "frontmatter": {},
|
|
7003
|
+
* // "gcsSource": {},
|
|
7004
|
+
* // "name": "my_name",
|
|
7005
|
+
* // "sha256Hash": "my_sha256Hash",
|
|
7006
|
+
* // "sizeBytes": "my_sizeBytes",
|
|
7007
|
+
* // "state": "my_state",
|
|
7008
|
+
* // "uid": "my_uid"
|
|
4686
7009
|
* // }
|
|
4687
7010
|
* }
|
|
4688
7011
|
*
|
|
@@ -4698,55 +7021,53 @@ export namespace agentregistry_v1alpha {
|
|
|
4698
7021
|
* @param callback - Optional callback that handles the response.
|
|
4699
7022
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4700
7023
|
*/
|
|
4701
|
-
|
|
4702
|
-
params: Params$Resource$Projects$Locations$
|
|
7024
|
+
get(
|
|
7025
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Get,
|
|
4703
7026
|
options: StreamMethodOptions
|
|
4704
7027
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4705
|
-
|
|
4706
|
-
params?: Params$Resource$Projects$Locations$
|
|
7028
|
+
get(
|
|
7029
|
+
params?: Params$Resource$Projects$Locations$Skills$Revisions$Get,
|
|
4707
7030
|
options?: MethodOptions
|
|
4708
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
4709
|
-
|
|
4710
|
-
params: Params$Resource$Projects$Locations$
|
|
7031
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SkillRevision>>;
|
|
7032
|
+
get(
|
|
7033
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Get,
|
|
4711
7034
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4712
7035
|
callback: BodyResponseCallback<Readable>
|
|
4713
7036
|
): void;
|
|
4714
|
-
|
|
4715
|
-
params: Params$Resource$Projects$Locations$
|
|
4716
|
-
options:
|
|
4717
|
-
|
|
4718
|
-
| BodyResponseCallback<Schema$ListServicesResponse>,
|
|
4719
|
-
callback: BodyResponseCallback<Schema$ListServicesResponse>
|
|
7037
|
+
get(
|
|
7038
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Get,
|
|
7039
|
+
options: MethodOptions | BodyResponseCallback<Schema$SkillRevision>,
|
|
7040
|
+
callback: BodyResponseCallback<Schema$SkillRevision>
|
|
4720
7041
|
): void;
|
|
4721
|
-
|
|
4722
|
-
params: Params$Resource$Projects$Locations$
|
|
4723
|
-
callback: BodyResponseCallback<Schema$
|
|
7042
|
+
get(
|
|
7043
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$Get,
|
|
7044
|
+
callback: BodyResponseCallback<Schema$SkillRevision>
|
|
4724
7045
|
): void;
|
|
4725
|
-
|
|
4726
|
-
|
|
7046
|
+
get(callback: BodyResponseCallback<Schema$SkillRevision>): void;
|
|
7047
|
+
get(
|
|
4727
7048
|
paramsOrCallback?:
|
|
4728
|
-
| Params$Resource$Projects$Locations$
|
|
4729
|
-
| BodyResponseCallback<Schema$
|
|
7049
|
+
| Params$Resource$Projects$Locations$Skills$Revisions$Get
|
|
7050
|
+
| BodyResponseCallback<Schema$SkillRevision>
|
|
4730
7051
|
| BodyResponseCallback<Readable>,
|
|
4731
7052
|
optionsOrCallback?:
|
|
4732
7053
|
| MethodOptions
|
|
4733
7054
|
| StreamMethodOptions
|
|
4734
|
-
| BodyResponseCallback<Schema$
|
|
7055
|
+
| BodyResponseCallback<Schema$SkillRevision>
|
|
4735
7056
|
| BodyResponseCallback<Readable>,
|
|
4736
7057
|
callback?:
|
|
4737
|
-
| BodyResponseCallback<Schema$
|
|
7058
|
+
| BodyResponseCallback<Schema$SkillRevision>
|
|
4738
7059
|
| BodyResponseCallback<Readable>
|
|
4739
7060
|
):
|
|
4740
7061
|
| void
|
|
4741
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
7062
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SkillRevision>>
|
|
4742
7063
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4743
7064
|
let params = (paramsOrCallback ||
|
|
4744
|
-
{}) as Params$Resource$Projects$Locations$
|
|
7065
|
+
{}) as Params$Resource$Projects$Locations$Skills$Revisions$Get;
|
|
4745
7066
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4746
7067
|
|
|
4747
7068
|
if (typeof paramsOrCallback === 'function') {
|
|
4748
7069
|
callback = paramsOrCallback;
|
|
4749
|
-
params = {} as Params$Resource$Projects$Locations$
|
|
7070
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Revisions$Get;
|
|
4750
7071
|
options = {};
|
|
4751
7072
|
}
|
|
4752
7073
|
|
|
@@ -4760,32 +7081,29 @@ export namespace agentregistry_v1alpha {
|
|
|
4760
7081
|
const parameters = {
|
|
4761
7082
|
options: Object.assign(
|
|
4762
7083
|
{
|
|
4763
|
-
url: (rootUrl + '/v1alpha/{+
|
|
4764
|
-
/([^:]\/)\/+/g,
|
|
4765
|
-
'$1'
|
|
4766
|
-
),
|
|
7084
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4767
7085
|
method: 'GET',
|
|
4768
7086
|
apiVersion: '',
|
|
4769
7087
|
},
|
|
4770
7088
|
options
|
|
4771
7089
|
),
|
|
4772
7090
|
params,
|
|
4773
|
-
requiredParams: ['
|
|
4774
|
-
pathParams: ['
|
|
7091
|
+
requiredParams: ['name'],
|
|
7092
|
+
pathParams: ['name'],
|
|
4775
7093
|
context: this.context,
|
|
4776
7094
|
};
|
|
4777
7095
|
if (callback) {
|
|
4778
|
-
createAPIRequest<Schema$
|
|
7096
|
+
createAPIRequest<Schema$SkillRevision>(
|
|
4779
7097
|
parameters,
|
|
4780
7098
|
callback as BodyResponseCallback<unknown>
|
|
4781
7099
|
);
|
|
4782
7100
|
} else {
|
|
4783
|
-
return createAPIRequest<Schema$
|
|
7101
|
+
return createAPIRequest<Schema$SkillRevision>(parameters);
|
|
4784
7102
|
}
|
|
4785
7103
|
}
|
|
4786
7104
|
|
|
4787
7105
|
/**
|
|
4788
|
-
*
|
|
7106
|
+
* Lists all revisions belonging to a parent Skill.
|
|
4789
7107
|
* @example
|
|
4790
7108
|
* ```js
|
|
4791
7109
|
* // Before running the sample:
|
|
@@ -4807,8 +7125,10 @@ export namespace agentregistry_v1alpha {
|
|
|
4807
7125
|
* const auth = new google.auth.GoogleAuth({
|
|
4808
7126
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4809
7127
|
* scopes: [
|
|
7128
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4810
7129
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4811
7130
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7131
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4812
7132
|
* ],
|
|
4813
7133
|
* });
|
|
4814
7134
|
*
|
|
@@ -4817,40 +7137,20 @@ export namespace agentregistry_v1alpha {
|
|
|
4817
7137
|
* google.options({auth: authClient});
|
|
4818
7138
|
*
|
|
4819
7139
|
* // Do the magic
|
|
4820
|
-
* const res = await agentregistry.projects.locations.
|
|
4821
|
-
* //
|
|
4822
|
-
*
|
|
4823
|
-
* // Optional.
|
|
4824
|
-
*
|
|
4825
|
-
* //
|
|
4826
|
-
*
|
|
4827
|
-
*
|
|
4828
|
-
* // Request body metadata
|
|
4829
|
-
* requestBody: {
|
|
4830
|
-
* // request body parameters
|
|
4831
|
-
* // {
|
|
4832
|
-
* // "agentSpec": {},
|
|
4833
|
-
* // "createTime": "my_createTime",
|
|
4834
|
-
* // "description": "my_description",
|
|
4835
|
-
* // "displayName": "my_displayName",
|
|
4836
|
-
* // "endpointSpec": {},
|
|
4837
|
-
* // "interfaces": [],
|
|
4838
|
-
* // "mcpServerSpec": {},
|
|
4839
|
-
* // "name": "my_name",
|
|
4840
|
-
* // "registryResource": "my_registryResource",
|
|
4841
|
-
* // "updateTime": "my_updateTime"
|
|
4842
|
-
* // }
|
|
4843
|
-
* },
|
|
7140
|
+
* const res = await agentregistry.projects.locations.skills.revisions.list({
|
|
7141
|
+
* // Optional. Page limit size.
|
|
7142
|
+
* pageSize: 'placeholder-value',
|
|
7143
|
+
* // Optional. Page offset token.
|
|
7144
|
+
* pageToken: 'placeholder-value',
|
|
7145
|
+
* // Required. Parent logical container name to query.
|
|
7146
|
+
* parent: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
4844
7147
|
* });
|
|
4845
7148
|
* console.log(res.data);
|
|
4846
7149
|
*
|
|
4847
7150
|
* // Example response
|
|
4848
7151
|
* // {
|
|
4849
|
-
* // "
|
|
4850
|
-
* // "
|
|
4851
|
-
* // "metadata": {},
|
|
4852
|
-
* // "name": "my_name",
|
|
4853
|
-
* // "response": {}
|
|
7152
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
7153
|
+
* // "skillRevisions": []
|
|
4854
7154
|
* // }
|
|
4855
7155
|
* }
|
|
4856
7156
|
*
|
|
@@ -4866,53 +7166,56 @@ export namespace agentregistry_v1alpha {
|
|
|
4866
7166
|
* @param callback - Optional callback that handles the response.
|
|
4867
7167
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4868
7168
|
*/
|
|
4869
|
-
|
|
4870
|
-
params: Params$Resource$Projects$Locations$
|
|
7169
|
+
list(
|
|
7170
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$List,
|
|
4871
7171
|
options: StreamMethodOptions
|
|
4872
7172
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4873
|
-
|
|
4874
|
-
params?: Params$Resource$Projects$Locations$
|
|
7173
|
+
list(
|
|
7174
|
+
params?: Params$Resource$Projects$Locations$Skills$Revisions$List,
|
|
4875
7175
|
options?: MethodOptions
|
|
4876
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
4877
|
-
|
|
4878
|
-
params: Params$Resource$Projects$Locations$
|
|
7176
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListSkillRevisionsResponse>>;
|
|
7177
|
+
list(
|
|
7178
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$List,
|
|
4879
7179
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4880
7180
|
callback: BodyResponseCallback<Readable>
|
|
4881
7181
|
): void;
|
|
4882
|
-
|
|
4883
|
-
params: Params$Resource$Projects$Locations$
|
|
4884
|
-
options:
|
|
4885
|
-
|
|
7182
|
+
list(
|
|
7183
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$List,
|
|
7184
|
+
options:
|
|
7185
|
+
MethodOptions | BodyResponseCallback<Schema$ListSkillRevisionsResponse>,
|
|
7186
|
+
callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
4886
7187
|
): void;
|
|
4887
|
-
|
|
4888
|
-
params: Params$Resource$Projects$Locations$
|
|
4889
|
-
callback: BodyResponseCallback<Schema$
|
|
7188
|
+
list(
|
|
7189
|
+
params: Params$Resource$Projects$Locations$Skills$Revisions$List,
|
|
7190
|
+
callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
4890
7191
|
): void;
|
|
4891
|
-
|
|
4892
|
-
|
|
7192
|
+
list(
|
|
7193
|
+
callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
7194
|
+
): void;
|
|
7195
|
+
list(
|
|
4893
7196
|
paramsOrCallback?:
|
|
4894
|
-
| Params$Resource$Projects$Locations$
|
|
4895
|
-
| BodyResponseCallback<Schema$
|
|
7197
|
+
| Params$Resource$Projects$Locations$Skills$Revisions$List
|
|
7198
|
+
| BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
4896
7199
|
| BodyResponseCallback<Readable>,
|
|
4897
7200
|
optionsOrCallback?:
|
|
4898
7201
|
| MethodOptions
|
|
4899
7202
|
| StreamMethodOptions
|
|
4900
|
-
| BodyResponseCallback<Schema$
|
|
7203
|
+
| BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
4901
7204
|
| BodyResponseCallback<Readable>,
|
|
4902
7205
|
callback?:
|
|
4903
|
-
| BodyResponseCallback<Schema$
|
|
7206
|
+
| BodyResponseCallback<Schema$ListSkillRevisionsResponse>
|
|
4904
7207
|
| BodyResponseCallback<Readable>
|
|
4905
7208
|
):
|
|
4906
7209
|
| void
|
|
4907
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
7210
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListSkillRevisionsResponse>>
|
|
4908
7211
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4909
7212
|
let params = (paramsOrCallback ||
|
|
4910
|
-
{}) as Params$Resource$Projects$Locations$
|
|
7213
|
+
{}) as Params$Resource$Projects$Locations$Skills$Revisions$List;
|
|
4911
7214
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4912
7215
|
|
|
4913
7216
|
if (typeof paramsOrCallback === 'function') {
|
|
4914
7217
|
callback = paramsOrCallback;
|
|
4915
|
-
params = {} as Params$Resource$Projects$Locations$
|
|
7218
|
+
params = {} as Params$Resource$Projects$Locations$Skills$Revisions$List;
|
|
4916
7219
|
options = {};
|
|
4917
7220
|
}
|
|
4918
7221
|
|
|
@@ -4926,98 +7229,78 @@ export namespace agentregistry_v1alpha {
|
|
|
4926
7229
|
const parameters = {
|
|
4927
7230
|
options: Object.assign(
|
|
4928
7231
|
{
|
|
4929
|
-
url: (rootUrl + '/v1alpha/{+
|
|
4930
|
-
|
|
7232
|
+
url: (rootUrl + '/v1alpha/{+parent}/revisions').replace(
|
|
7233
|
+
/([^:]\/)\/+/g,
|
|
7234
|
+
'$1'
|
|
7235
|
+
),
|
|
7236
|
+
method: 'GET',
|
|
4931
7237
|
apiVersion: '',
|
|
4932
7238
|
},
|
|
4933
7239
|
options
|
|
4934
7240
|
),
|
|
4935
7241
|
params,
|
|
4936
|
-
requiredParams: ['
|
|
4937
|
-
pathParams: ['
|
|
7242
|
+
requiredParams: ['parent'],
|
|
7243
|
+
pathParams: ['parent'],
|
|
4938
7244
|
context: this.context,
|
|
4939
7245
|
};
|
|
4940
7246
|
if (callback) {
|
|
4941
|
-
createAPIRequest<Schema$
|
|
7247
|
+
createAPIRequest<Schema$ListSkillRevisionsResponse>(
|
|
4942
7248
|
parameters,
|
|
4943
7249
|
callback as BodyResponseCallback<unknown>
|
|
4944
7250
|
);
|
|
4945
7251
|
} else {
|
|
4946
|
-
return createAPIRequest<Schema$
|
|
7252
|
+
return createAPIRequest<Schema$ListSkillRevisionsResponse>(parameters);
|
|
4947
7253
|
}
|
|
4948
7254
|
}
|
|
4949
7255
|
}
|
|
4950
7256
|
|
|
4951
|
-
export interface Params$Resource$Projects$Locations$
|
|
7257
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Create extends StandardParameters {
|
|
4952
7258
|
/**
|
|
4953
|
-
* Required.
|
|
7259
|
+
* Required. Parent logical container name.
|
|
4954
7260
|
*/
|
|
4955
7261
|
parent?: string;
|
|
4956
7262
|
/**
|
|
4957
|
-
* Optional.
|
|
7263
|
+
* Optional. Signed UUID request idempotency token.
|
|
4958
7264
|
*/
|
|
4959
7265
|
requestId?: string;
|
|
4960
7266
|
/**
|
|
4961
|
-
*
|
|
7267
|
+
* Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`
|
|
4962
7268
|
*/
|
|
4963
|
-
|
|
7269
|
+
skillRevisionId?: string;
|
|
4964
7270
|
|
|
4965
7271
|
/**
|
|
4966
7272
|
* Request body metadata
|
|
4967
7273
|
*/
|
|
4968
|
-
requestBody?: Schema$
|
|
7274
|
+
requestBody?: Schema$SkillRevision;
|
|
4969
7275
|
}
|
|
4970
|
-
export interface Params$Resource$Projects$Locations$
|
|
7276
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Delete extends StandardParameters {
|
|
4971
7277
|
/**
|
|
4972
|
-
* Required.
|
|
7278
|
+
* Required. Target revision name to remove.
|
|
4973
7279
|
*/
|
|
4974
7280
|
name?: string;
|
|
4975
7281
|
/**
|
|
4976
|
-
* Optional.
|
|
7282
|
+
* Optional. Signed UUID request idempotency token.
|
|
4977
7283
|
*/
|
|
4978
7284
|
requestId?: string;
|
|
4979
7285
|
}
|
|
4980
|
-
export interface Params$Resource$Projects$Locations$
|
|
7286
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Get extends StandardParameters {
|
|
4981
7287
|
/**
|
|
4982
|
-
* Required.
|
|
7288
|
+
* Required. Target revision name.
|
|
4983
7289
|
*/
|
|
4984
7290
|
name?: string;
|
|
4985
7291
|
}
|
|
4986
|
-
export interface Params$Resource$Projects$Locations$
|
|
4987
|
-
/**
|
|
4988
|
-
* 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"`
|
|
4989
|
-
*/
|
|
4990
|
-
filter?: string;
|
|
7292
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$List extends StandardParameters {
|
|
4991
7293
|
/**
|
|
4992
|
-
* Optional.
|
|
7294
|
+
* Optional. Page limit size.
|
|
4993
7295
|
*/
|
|
4994
7296
|
pageSize?: number;
|
|
4995
7297
|
/**
|
|
4996
|
-
* Optional.
|
|
7298
|
+
* Optional. Page offset token.
|
|
4997
7299
|
*/
|
|
4998
7300
|
pageToken?: string;
|
|
4999
7301
|
/**
|
|
5000
|
-
* Required.
|
|
7302
|
+
* Required. Parent logical container name to query.
|
|
5001
7303
|
*/
|
|
5002
7304
|
parent?: string;
|
|
5003
7305
|
}
|
|
5004
|
-
export interface Params$Resource$Projects$Locations$Services$Patch extends StandardParameters {
|
|
5005
|
-
/**
|
|
5006
|
-
* Identifier. The resource name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
5007
|
-
*/
|
|
5008
|
-
name?: string;
|
|
5009
|
-
/**
|
|
5010
|
-
* 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).
|
|
5011
|
-
*/
|
|
5012
|
-
requestId?: string;
|
|
5013
|
-
/**
|
|
5014
|
-
* 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.
|
|
5015
|
-
*/
|
|
5016
|
-
updateMask?: string;
|
|
5017
|
-
|
|
5018
|
-
/**
|
|
5019
|
-
* Request body metadata
|
|
5020
|
-
*/
|
|
5021
|
-
requestBody?: Schema$Service;
|
|
5022
|
-
}
|
|
5023
7306
|
}
|