@googleapis/agentregistry 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -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 +3027 -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 +5010 -0
- package/v1alpha.ts +2591 -308
package/build/v1alpha.d.ts
CHANGED
|
@@ -70,6 +70,31 @@ export declare namespace agentregistry_v1alpha {
|
|
|
70
70
|
projects: Resource$Projects;
|
|
71
71
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Represents the skills of an Agent.
|
|
75
|
+
*/
|
|
76
|
+
export interface Schema$A2ASkill {
|
|
77
|
+
/**
|
|
78
|
+
* Output only. A more detailed description of the skill.
|
|
79
|
+
*/
|
|
80
|
+
description?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Output only. Example prompts or scenarios this skill can handle.
|
|
83
|
+
*/
|
|
84
|
+
examples?: string[] | null;
|
|
85
|
+
/**
|
|
86
|
+
* Output only. A unique identifier for the agent's skill.
|
|
87
|
+
*/
|
|
88
|
+
id?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Output only. A human-readable name for the agent's skill.
|
|
91
|
+
*/
|
|
92
|
+
name?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Output only. Keywords describing the skill.
|
|
95
|
+
*/
|
|
96
|
+
tags?: string[] | null;
|
|
97
|
+
}
|
|
73
98
|
/**
|
|
74
99
|
* Represents an Agent. "A2A" below refers to the Agent-to-Agent protocol.
|
|
75
100
|
*/
|
|
@@ -117,7 +142,7 @@ export declare namespace agentregistry_v1alpha {
|
|
|
117
142
|
/**
|
|
118
143
|
* Output only. Skills the agent possesses, often obtained from the A2A Agent Card.
|
|
119
144
|
*/
|
|
120
|
-
skills?: Schema$
|
|
145
|
+
skills?: Schema$A2ASkill[];
|
|
121
146
|
/**
|
|
122
147
|
* Output only. A universally unique identifier for the Agent.
|
|
123
148
|
*/
|
|
@@ -171,6 +196,15 @@ export declare namespace agentregistry_v1alpha {
|
|
|
171
196
|
*/
|
|
172
197
|
title?: string | null;
|
|
173
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* Direct write-only raw archive payload upload.
|
|
201
|
+
*/
|
|
202
|
+
export interface Schema$ArchiveUploadSource {
|
|
203
|
+
/**
|
|
204
|
+
* Required. Input only. Write-only raw ZIP/TAR archive payload bytes containing the skill package.
|
|
205
|
+
*/
|
|
206
|
+
archiveContent?: string | null;
|
|
207
|
+
}
|
|
174
208
|
/**
|
|
175
209
|
* The AuthProvider of the Binding.
|
|
176
210
|
*/
|
|
@@ -319,6 +353,46 @@ export declare namespace agentregistry_v1alpha {
|
|
|
319
353
|
*/
|
|
320
354
|
nextPageToken?: string | null;
|
|
321
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Structured metadata attributes extracted from the package's local SKILL.md frontmatter.
|
|
358
|
+
*/
|
|
359
|
+
export interface Schema$Frontmatter {
|
|
360
|
+
/**
|
|
361
|
+
* Optional. Environmental dependencies or local sidecars.
|
|
362
|
+
*/
|
|
363
|
+
compatibility?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* Required. Functional description.
|
|
366
|
+
*/
|
|
367
|
+
description?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* Optional. License.
|
|
370
|
+
*/
|
|
371
|
+
license?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* Optional. Extensible flattened map mapping custom tags, authors, and version parameters.
|
|
374
|
+
*/
|
|
375
|
+
metadata?: {
|
|
376
|
+
[key: string]: string;
|
|
377
|
+
} | null;
|
|
378
|
+
/**
|
|
379
|
+
* Required. The name of the skill.
|
|
380
|
+
*/
|
|
381
|
+
name?: string | null;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Specifications for Cloud Storage objects.
|
|
385
|
+
*/
|
|
386
|
+
export interface Schema$GcsSource {
|
|
387
|
+
/**
|
|
388
|
+
* Optional. Cloud Storage object generation ID. If not specified, the latest generation is used.
|
|
389
|
+
*/
|
|
390
|
+
generation?: string | null;
|
|
391
|
+
/**
|
|
392
|
+
* Required. Cloud Storage object URI. Format: `gs://{bucket_name\}/{object_name\}`
|
|
393
|
+
*/
|
|
394
|
+
uri?: string | null;
|
|
395
|
+
}
|
|
322
396
|
/**
|
|
323
397
|
* Represents the connection details for an Agent or MCP Server.
|
|
324
398
|
*/
|
|
@@ -414,6 +488,19 @@ export declare namespace agentregistry_v1alpha {
|
|
|
414
488
|
*/
|
|
415
489
|
unreachable?: string[] | null;
|
|
416
490
|
}
|
|
491
|
+
/**
|
|
492
|
+
* Response listing Publishers.
|
|
493
|
+
*/
|
|
494
|
+
export interface Schema$ListPublishersResponse {
|
|
495
|
+
/**
|
|
496
|
+
* Page offset continuation token.
|
|
497
|
+
*/
|
|
498
|
+
nextPageToken?: string | null;
|
|
499
|
+
/**
|
|
500
|
+
* The returned list of Publishers.
|
|
501
|
+
*/
|
|
502
|
+
publishers?: Schema$Publisher[];
|
|
503
|
+
}
|
|
417
504
|
/**
|
|
418
505
|
* Message for response to listing Services
|
|
419
506
|
*/
|
|
@@ -427,6 +514,36 @@ export declare namespace agentregistry_v1alpha {
|
|
|
427
514
|
*/
|
|
428
515
|
services?: Schema$Service[];
|
|
429
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Response listing Revisions.
|
|
519
|
+
*/
|
|
520
|
+
export interface Schema$ListSkillRevisionsResponse {
|
|
521
|
+
/**
|
|
522
|
+
* Page offset continuation token.
|
|
523
|
+
*/
|
|
524
|
+
nextPageToken?: string | null;
|
|
525
|
+
/**
|
|
526
|
+
* Returned version snapshot list.
|
|
527
|
+
*/
|
|
528
|
+
skillRevisions?: Schema$SkillRevision[];
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Response structure listing logical Skills.
|
|
532
|
+
*/
|
|
533
|
+
export interface Schema$ListSkillsResponse {
|
|
534
|
+
/**
|
|
535
|
+
* Page continuation continuation token.
|
|
536
|
+
*/
|
|
537
|
+
nextPageToken?: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* Returned container list.
|
|
540
|
+
*/
|
|
541
|
+
skills?: Schema$Skill[];
|
|
542
|
+
/**
|
|
543
|
+
* Unreachable locations or failures.
|
|
544
|
+
*/
|
|
545
|
+
unreachable?: string[] | null;
|
|
546
|
+
}
|
|
430
547
|
/**
|
|
431
548
|
* A resource that represents a Google Cloud location.
|
|
432
549
|
*/
|
|
@@ -595,6 +712,35 @@ export declare namespace agentregistry_v1alpha {
|
|
|
595
712
|
*/
|
|
596
713
|
type?: string | null;
|
|
597
714
|
}
|
|
715
|
+
/**
|
|
716
|
+
* Represents a verified Publisher of Skills. Prepopulated publishers include `publishers/cloud.google.com` and `publishers/workspace.google.com`.
|
|
717
|
+
*/
|
|
718
|
+
export interface Schema$Publisher {
|
|
719
|
+
/**
|
|
720
|
+
* Optional. Human readable display name of the publisher.
|
|
721
|
+
*/
|
|
722
|
+
displayName?: string | null;
|
|
723
|
+
/**
|
|
724
|
+
* Optional. URI pointing to official publisher documentation.
|
|
725
|
+
*/
|
|
726
|
+
documentationUri?: string | null;
|
|
727
|
+
/**
|
|
728
|
+
* Identifier. Resource name of the publisher. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
729
|
+
*/
|
|
730
|
+
name?: string | null;
|
|
731
|
+
/**
|
|
732
|
+
* Output only. The curation tier of the publisher.
|
|
733
|
+
*/
|
|
734
|
+
publisherTier?: string | null;
|
|
735
|
+
/**
|
|
736
|
+
* Optional. URI pointing to the support portal or email.
|
|
737
|
+
*/
|
|
738
|
+
supportUri?: string | null;
|
|
739
|
+
/**
|
|
740
|
+
* 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.
|
|
741
|
+
*/
|
|
742
|
+
verifiedPrefix?: string | null;
|
|
743
|
+
}
|
|
598
744
|
/**
|
|
599
745
|
* Message for searching Agents
|
|
600
746
|
*/
|
|
@@ -655,6 +801,19 @@ export declare namespace agentregistry_v1alpha {
|
|
|
655
801
|
*/
|
|
656
802
|
nextPageToken?: string | null;
|
|
657
803
|
}
|
|
804
|
+
/**
|
|
805
|
+
* Response listing searched Skills.
|
|
806
|
+
*/
|
|
807
|
+
export interface Schema$SearchSkillsResponse {
|
|
808
|
+
/**
|
|
809
|
+
* Query page offset continuation token.
|
|
810
|
+
*/
|
|
811
|
+
nextPageToken?: string | null;
|
|
812
|
+
/**
|
|
813
|
+
* Matched Skills list.
|
|
814
|
+
*/
|
|
815
|
+
skills?: Schema$Skill[];
|
|
816
|
+
}
|
|
658
817
|
/**
|
|
659
818
|
* Represents a user-defined Service.
|
|
660
819
|
*/
|
|
@@ -701,29 +860,106 @@ export declare namespace agentregistry_v1alpha {
|
|
|
701
860
|
updateTime?: string | null;
|
|
702
861
|
}
|
|
703
862
|
/**
|
|
704
|
-
* Represents
|
|
863
|
+
* Represents an Executable Agent Skill or a Composite Tool Suite (Bundle). Sibling resource with Agent and McpServer under agentregistry.googleapis.com.
|
|
705
864
|
*/
|
|
706
865
|
export interface Schema$Skill {
|
|
707
866
|
/**
|
|
708
|
-
* Output only.
|
|
867
|
+
* Output only. Create time.
|
|
868
|
+
*/
|
|
869
|
+
createTime?: string | null;
|
|
870
|
+
/**
|
|
871
|
+
* Optional. The full resource name of the revision currently served by default (floating track). Format: `projects/{project\}/locations/{location\}/skills/{skill\}/revisions/{revision\}`
|
|
872
|
+
*/
|
|
873
|
+
defaultRevision?: string | null;
|
|
874
|
+
/**
|
|
875
|
+
* Optional. Brief summary describing the capabilities of the skill. Maximum length is 2048 characters.
|
|
709
876
|
*/
|
|
710
877
|
description?: string | null;
|
|
711
878
|
/**
|
|
712
|
-
*
|
|
879
|
+
* Required. Human-readable display name of the skill. Maximum length is 128 characters.
|
|
713
880
|
*/
|
|
714
|
-
|
|
881
|
+
displayName?: string | null;
|
|
715
882
|
/**
|
|
716
|
-
* Output only.
|
|
883
|
+
* Output only. Lightweight frontmatter metadata attributes copied from the default revision.
|
|
717
884
|
*/
|
|
718
|
-
|
|
885
|
+
frontmatter?: Schema$Frontmatter;
|
|
719
886
|
/**
|
|
720
|
-
*
|
|
887
|
+
* 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.
|
|
888
|
+
*/
|
|
889
|
+
initialRevision?: Schema$SkillRevision;
|
|
890
|
+
/**
|
|
891
|
+
* 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`).
|
|
721
892
|
*/
|
|
722
893
|
name?: string | null;
|
|
723
894
|
/**
|
|
724
|
-
*
|
|
895
|
+
* 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).
|
|
725
896
|
*/
|
|
726
|
-
|
|
897
|
+
publisher?: string | null;
|
|
898
|
+
/**
|
|
899
|
+
* 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`
|
|
900
|
+
*/
|
|
901
|
+
skillId?: string | null;
|
|
902
|
+
/**
|
|
903
|
+
* Output only. The system-managed state of the skill.
|
|
904
|
+
*/
|
|
905
|
+
state?: string | null;
|
|
906
|
+
/**
|
|
907
|
+
* Required. User-managed target state of the skill.
|
|
908
|
+
*/
|
|
909
|
+
targetState?: string | null;
|
|
910
|
+
/**
|
|
911
|
+
* Required. Structural deployment type (SIMPLE leaf vs COMPOSITE bundle).
|
|
912
|
+
*/
|
|
913
|
+
type?: string | null;
|
|
914
|
+
/**
|
|
915
|
+
* Output only. Universally unique identifier (UUID4) for the logical container.
|
|
916
|
+
*/
|
|
917
|
+
uid?: string | null;
|
|
918
|
+
/**
|
|
919
|
+
* Output only. Update time.
|
|
920
|
+
*/
|
|
921
|
+
updateTime?: string | null;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Represents an immutable, versioned snapshot of a Skill package.
|
|
925
|
+
*/
|
|
926
|
+
export interface Schema$SkillRevision {
|
|
927
|
+
/**
|
|
928
|
+
* Optional. Immutable. Direct write-only raw archive upload source.
|
|
929
|
+
*/
|
|
930
|
+
archiveUploadSource?: Schema$ArchiveUploadSource;
|
|
931
|
+
/**
|
|
932
|
+
* Output only. Revision creation timestamp.
|
|
933
|
+
*/
|
|
934
|
+
createTime?: string | null;
|
|
935
|
+
/**
|
|
936
|
+
* Output only. Extracted YAML frontmatter configuration snapshot.
|
|
937
|
+
*/
|
|
938
|
+
frontmatter?: Schema$Frontmatter;
|
|
939
|
+
/**
|
|
940
|
+
* Optional. Immutable. Cloud Storage object generation URI.
|
|
941
|
+
*/
|
|
942
|
+
gcsSource?: Schema$GcsSource;
|
|
943
|
+
/**
|
|
944
|
+
* Identifier. Resource name of the SkillRevision. Format: `projects/{project\}/locations/{location\}/skills/{skill\}/revisions/{revision\}`
|
|
945
|
+
*/
|
|
946
|
+
name?: string | null;
|
|
947
|
+
/**
|
|
948
|
+
* Output only. Cryptographic SHA-256 integrity and deduplication digest of the payload zip.
|
|
949
|
+
*/
|
|
950
|
+
sha256Hash?: string | null;
|
|
951
|
+
/**
|
|
952
|
+
* Output only. Size of the compiled zip payload in bytes (assists client download progress).
|
|
953
|
+
*/
|
|
954
|
+
sizeBytes?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
* Output only. The system-managed lifecycle state of this revision.
|
|
957
|
+
*/
|
|
958
|
+
state?: string | null;
|
|
959
|
+
/**
|
|
960
|
+
* Output only. Universally unique identifier (UUID4) for the skill revision.
|
|
961
|
+
*/
|
|
962
|
+
uid?: string | null;
|
|
727
963
|
}
|
|
728
964
|
/**
|
|
729
965
|
* The source of the Binding.
|
|
@@ -791,7 +1027,9 @@ export declare namespace agentregistry_v1alpha {
|
|
|
791
1027
|
endpoints: Resource$Projects$Locations$Endpoints;
|
|
792
1028
|
mcpServers: Resource$Projects$Locations$Mcpservers;
|
|
793
1029
|
operations: Resource$Projects$Locations$Operations;
|
|
1030
|
+
publishers: Resource$Projects$Locations$Publishers;
|
|
794
1031
|
services: Resource$Projects$Locations$Services;
|
|
1032
|
+
skills: Resource$Projects$Locations$Skills;
|
|
795
1033
|
constructor(context: APIRequestContext);
|
|
796
1034
|
/**
|
|
797
1035
|
* Gets information about a location.
|
|
@@ -1256,8 +1494,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
1256
1494
|
* const auth = new google.auth.GoogleAuth({
|
|
1257
1495
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1258
1496
|
* scopes: [
|
|
1497
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1259
1498
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1260
1499
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1500
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1261
1501
|
* ],
|
|
1262
1502
|
* });
|
|
1263
1503
|
*
|
|
@@ -1342,8 +1582,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
1342
1582
|
* const auth = new google.auth.GoogleAuth({
|
|
1343
1583
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1344
1584
|
* scopes: [
|
|
1585
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1345
1586
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1346
1587
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1588
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1347
1589
|
* ],
|
|
1348
1590
|
* });
|
|
1349
1591
|
*
|
|
@@ -1631,8 +1873,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
1631
1873
|
* const auth = new google.auth.GoogleAuth({
|
|
1632
1874
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1633
1875
|
* scopes: [
|
|
1876
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
1634
1877
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
1635
1878
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1879
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
1636
1880
|
* ],
|
|
1637
1881
|
* });
|
|
1638
1882
|
*
|
|
@@ -2546,11 +2790,11 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2546
2790
|
*/
|
|
2547
2791
|
returnPartialSuccess?: boolean;
|
|
2548
2792
|
}
|
|
2549
|
-
export class Resource$Projects$Locations$
|
|
2793
|
+
export class Resource$Projects$Locations$Publishers {
|
|
2550
2794
|
context: APIRequestContext;
|
|
2551
2795
|
constructor(context: APIRequestContext);
|
|
2552
2796
|
/**
|
|
2553
|
-
*
|
|
2797
|
+
* Fetches details of a specific Publisher.
|
|
2554
2798
|
* @example
|
|
2555
2799
|
* ```js
|
|
2556
2800
|
* // Before running the sample:
|
|
@@ -2572,8 +2816,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2572
2816
|
* const auth = new google.auth.GoogleAuth({
|
|
2573
2817
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2574
2818
|
* scopes: [
|
|
2819
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2575
2820
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2576
2821
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2822
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2577
2823
|
* ],
|
|
2578
2824
|
* });
|
|
2579
2825
|
*
|
|
@@ -2582,40 +2828,20 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2582
2828
|
* google.options({auth: authClient});
|
|
2583
2829
|
*
|
|
2584
2830
|
* // Do the magic
|
|
2585
|
-
* const res = await agentregistry.projects.locations.
|
|
2586
|
-
* // Required.
|
|
2587
|
-
*
|
|
2588
|
-
* // 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).
|
|
2589
|
-
* requestId: 'placeholder-value',
|
|
2590
|
-
* // 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-/`.
|
|
2591
|
-
* serviceId: 'placeholder-value',
|
|
2592
|
-
*
|
|
2593
|
-
* // Request body metadata
|
|
2594
|
-
* requestBody: {
|
|
2595
|
-
* // request body parameters
|
|
2596
|
-
* // {
|
|
2597
|
-
* // "agentSpec": {},
|
|
2598
|
-
* // "createTime": "my_createTime",
|
|
2599
|
-
* // "description": "my_description",
|
|
2600
|
-
* // "displayName": "my_displayName",
|
|
2601
|
-
* // "endpointSpec": {},
|
|
2602
|
-
* // "interfaces": [],
|
|
2603
|
-
* // "mcpServerSpec": {},
|
|
2604
|
-
* // "name": "my_name",
|
|
2605
|
-
* // "registryResource": "my_registryResource",
|
|
2606
|
-
* // "updateTime": "my_updateTime"
|
|
2607
|
-
* // }
|
|
2608
|
-
* },
|
|
2831
|
+
* const res = await agentregistry.projects.locations.publishers.get({
|
|
2832
|
+
* // Required. Target publisher resource name. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
2833
|
+
* name: 'projects/my-project/locations/my-location/publishers/my-publisher',
|
|
2609
2834
|
* });
|
|
2610
2835
|
* console.log(res.data);
|
|
2611
2836
|
*
|
|
2612
2837
|
* // Example response
|
|
2613
2838
|
* // {
|
|
2614
|
-
* // "
|
|
2615
|
-
* // "
|
|
2616
|
-
* // "metadata": {},
|
|
2839
|
+
* // "displayName": "my_displayName",
|
|
2840
|
+
* // "documentationUri": "my_documentationUri",
|
|
2617
2841
|
* // "name": "my_name",
|
|
2618
|
-
* // "
|
|
2842
|
+
* // "publisherTier": "my_publisherTier",
|
|
2843
|
+
* // "supportUri": "my_supportUri",
|
|
2844
|
+
* // "verifiedPrefix": "my_verifiedPrefix"
|
|
2619
2845
|
* // }
|
|
2620
2846
|
* }
|
|
2621
2847
|
*
|
|
@@ -2631,14 +2857,14 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2631
2857
|
* @param callback - Optional callback that handles the response.
|
|
2632
2858
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2633
2859
|
*/
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2860
|
+
get(params: Params$Resource$Projects$Locations$Publishers$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2861
|
+
get(params?: Params$Resource$Projects$Locations$Publishers$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Publisher>>;
|
|
2862
|
+
get(params: Params$Resource$Projects$Locations$Publishers$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2863
|
+
get(params: Params$Resource$Projects$Locations$Publishers$Get, options: MethodOptions | BodyResponseCallback<Schema$Publisher>, callback: BodyResponseCallback<Schema$Publisher>): void;
|
|
2864
|
+
get(params: Params$Resource$Projects$Locations$Publishers$Get, callback: BodyResponseCallback<Schema$Publisher>): void;
|
|
2865
|
+
get(callback: BodyResponseCallback<Schema$Publisher>): void;
|
|
2640
2866
|
/**
|
|
2641
|
-
*
|
|
2867
|
+
* Lists all Publishers in a location.
|
|
2642
2868
|
* @example
|
|
2643
2869
|
* ```js
|
|
2644
2870
|
* // Before running the sample:
|
|
@@ -2660,8 +2886,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2660
2886
|
* const auth = new google.auth.GoogleAuth({
|
|
2661
2887
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2662
2888
|
* scopes: [
|
|
2889
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2663
2890
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2664
2891
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2892
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2665
2893
|
* ],
|
|
2666
2894
|
* });
|
|
2667
2895
|
*
|
|
@@ -2670,21 +2898,20 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2670
2898
|
* google.options({auth: authClient});
|
|
2671
2899
|
*
|
|
2672
2900
|
* // Do the magic
|
|
2673
|
-
* const res = await agentregistry.projects.locations.
|
|
2674
|
-
* //
|
|
2675
|
-
*
|
|
2676
|
-
* // Optional.
|
|
2677
|
-
*
|
|
2901
|
+
* const res = await agentregistry.projects.locations.publishers.list({
|
|
2902
|
+
* // Optional. Page limit size.
|
|
2903
|
+
* pageSize: 'placeholder-value',
|
|
2904
|
+
* // Optional. Page offset token.
|
|
2905
|
+
* pageToken: 'placeholder-value',
|
|
2906
|
+
* // Required. Parent location to query. Format: `projects/{project\}/locations/{location\}`
|
|
2907
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2678
2908
|
* });
|
|
2679
2909
|
* console.log(res.data);
|
|
2680
2910
|
*
|
|
2681
2911
|
* // Example response
|
|
2682
2912
|
* // {
|
|
2683
|
-
* // "
|
|
2684
|
-
* // "
|
|
2685
|
-
* // "metadata": {},
|
|
2686
|
-
* // "name": "my_name",
|
|
2687
|
-
* // "response": {}
|
|
2913
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2914
|
+
* // "publishers": []
|
|
2688
2915
|
* // }
|
|
2689
2916
|
* }
|
|
2690
2917
|
*
|
|
@@ -2700,14 +2927,38 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2700
2927
|
* @param callback - Optional callback that handles the response.
|
|
2701
2928
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2702
2929
|
*/
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2930
|
+
list(params: Params$Resource$Projects$Locations$Publishers$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2931
|
+
list(params?: Params$Resource$Projects$Locations$Publishers$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListPublishersResponse>>;
|
|
2932
|
+
list(params: Params$Resource$Projects$Locations$Publishers$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2933
|
+
list(params: Params$Resource$Projects$Locations$Publishers$List, options: MethodOptions | BodyResponseCallback<Schema$ListPublishersResponse>, callback: BodyResponseCallback<Schema$ListPublishersResponse>): void;
|
|
2934
|
+
list(params: Params$Resource$Projects$Locations$Publishers$List, callback: BodyResponseCallback<Schema$ListPublishersResponse>): void;
|
|
2935
|
+
list(callback: BodyResponseCallback<Schema$ListPublishersResponse>): void;
|
|
2936
|
+
}
|
|
2937
|
+
export interface Params$Resource$Projects$Locations$Publishers$Get extends StandardParameters {
|
|
2709
2938
|
/**
|
|
2710
|
-
*
|
|
2939
|
+
* Required. Target publisher resource name. Format: `projects/{project\}/locations/{location\}/publishers/{publisher\}`
|
|
2940
|
+
*/
|
|
2941
|
+
name?: string;
|
|
2942
|
+
}
|
|
2943
|
+
export interface Params$Resource$Projects$Locations$Publishers$List extends StandardParameters {
|
|
2944
|
+
/**
|
|
2945
|
+
* Optional. Page limit size.
|
|
2946
|
+
*/
|
|
2947
|
+
pageSize?: number;
|
|
2948
|
+
/**
|
|
2949
|
+
* Optional. Page offset token.
|
|
2950
|
+
*/
|
|
2951
|
+
pageToken?: string;
|
|
2952
|
+
/**
|
|
2953
|
+
* Required. Parent location to query. Format: `projects/{project\}/locations/{location\}`
|
|
2954
|
+
*/
|
|
2955
|
+
parent?: string;
|
|
2956
|
+
}
|
|
2957
|
+
export class Resource$Projects$Locations$Services {
|
|
2958
|
+
context: APIRequestContext;
|
|
2959
|
+
constructor(context: APIRequestContext);
|
|
2960
|
+
/**
|
|
2961
|
+
* Creates a new Service in a given project and location.
|
|
2711
2962
|
* @example
|
|
2712
2963
|
* ```js
|
|
2713
2964
|
* // Before running the sample:
|
|
@@ -2741,7 +2992,168 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2741
2992
|
* google.options({auth: authClient});
|
|
2742
2993
|
*
|
|
2743
2994
|
* // Do the magic
|
|
2744
|
-
* const res = await agentregistry.projects.locations.services.
|
|
2995
|
+
* const res = await agentregistry.projects.locations.services.create({
|
|
2996
|
+
* // Required. The project and location to create the Service in. Expected format: `projects/{project\}/locations/{location\}`.
|
|
2997
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2998
|
+
* // 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).
|
|
2999
|
+
* requestId: 'placeholder-value',
|
|
3000
|
+
* // 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-/`.
|
|
3001
|
+
* serviceId: 'placeholder-value',
|
|
3002
|
+
*
|
|
3003
|
+
* // Request body metadata
|
|
3004
|
+
* requestBody: {
|
|
3005
|
+
* // request body parameters
|
|
3006
|
+
* // {
|
|
3007
|
+
* // "agentSpec": {},
|
|
3008
|
+
* // "createTime": "my_createTime",
|
|
3009
|
+
* // "description": "my_description",
|
|
3010
|
+
* // "displayName": "my_displayName",
|
|
3011
|
+
* // "endpointSpec": {},
|
|
3012
|
+
* // "interfaces": [],
|
|
3013
|
+
* // "mcpServerSpec": {},
|
|
3014
|
+
* // "name": "my_name",
|
|
3015
|
+
* // "registryResource": "my_registryResource",
|
|
3016
|
+
* // "updateTime": "my_updateTime"
|
|
3017
|
+
* // }
|
|
3018
|
+
* },
|
|
3019
|
+
* });
|
|
3020
|
+
* console.log(res.data);
|
|
3021
|
+
*
|
|
3022
|
+
* // Example response
|
|
3023
|
+
* // {
|
|
3024
|
+
* // "done": false,
|
|
3025
|
+
* // "error": {},
|
|
3026
|
+
* // "metadata": {},
|
|
3027
|
+
* // "name": "my_name",
|
|
3028
|
+
* // "response": {}
|
|
3029
|
+
* // }
|
|
3030
|
+
* }
|
|
3031
|
+
*
|
|
3032
|
+
* main().catch(e => {
|
|
3033
|
+
* console.error(e);
|
|
3034
|
+
* throw e;
|
|
3035
|
+
* });
|
|
3036
|
+
*
|
|
3037
|
+
* ```
|
|
3038
|
+
*
|
|
3039
|
+
* @param params - Parameters for request
|
|
3040
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3041
|
+
* @param callback - Optional callback that handles the response.
|
|
3042
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3043
|
+
*/
|
|
3044
|
+
create(params: Params$Resource$Projects$Locations$Services$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3045
|
+
create(params?: Params$Resource$Projects$Locations$Services$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3046
|
+
create(params: Params$Resource$Projects$Locations$Services$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3047
|
+
create(params: Params$Resource$Projects$Locations$Services$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3048
|
+
create(params: Params$Resource$Projects$Locations$Services$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3049
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3050
|
+
/**
|
|
3051
|
+
* Deletes a single Service.
|
|
3052
|
+
* @example
|
|
3053
|
+
* ```js
|
|
3054
|
+
* // Before running the sample:
|
|
3055
|
+
* // - Enable the API at:
|
|
3056
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3057
|
+
* // - Login into gcloud by running:
|
|
3058
|
+
* // ```sh
|
|
3059
|
+
* // $ gcloud auth application-default login
|
|
3060
|
+
* // ```
|
|
3061
|
+
* // - Install the npm module by running:
|
|
3062
|
+
* // ```sh
|
|
3063
|
+
* // $ npm install googleapis
|
|
3064
|
+
* // ```
|
|
3065
|
+
*
|
|
3066
|
+
* const {google} = require('googleapis');
|
|
3067
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3068
|
+
*
|
|
3069
|
+
* async function main() {
|
|
3070
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3071
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3072
|
+
* scopes: [
|
|
3073
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3074
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3075
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3076
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3077
|
+
* ],
|
|
3078
|
+
* });
|
|
3079
|
+
*
|
|
3080
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3081
|
+
* const authClient = await auth.getClient();
|
|
3082
|
+
* google.options({auth: authClient});
|
|
3083
|
+
*
|
|
3084
|
+
* // Do the magic
|
|
3085
|
+
* const res = await agentregistry.projects.locations.services.delete({
|
|
3086
|
+
* // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
3087
|
+
* name: 'projects/my-project/locations/my-location/services/my-service',
|
|
3088
|
+
* // 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).
|
|
3089
|
+
* requestId: 'placeholder-value',
|
|
3090
|
+
* });
|
|
3091
|
+
* console.log(res.data);
|
|
3092
|
+
*
|
|
3093
|
+
* // Example response
|
|
3094
|
+
* // {
|
|
3095
|
+
* // "done": false,
|
|
3096
|
+
* // "error": {},
|
|
3097
|
+
* // "metadata": {},
|
|
3098
|
+
* // "name": "my_name",
|
|
3099
|
+
* // "response": {}
|
|
3100
|
+
* // }
|
|
3101
|
+
* }
|
|
3102
|
+
*
|
|
3103
|
+
* main().catch(e => {
|
|
3104
|
+
* console.error(e);
|
|
3105
|
+
* throw e;
|
|
3106
|
+
* });
|
|
3107
|
+
*
|
|
3108
|
+
* ```
|
|
3109
|
+
*
|
|
3110
|
+
* @param params - Parameters for request
|
|
3111
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3112
|
+
* @param callback - Optional callback that handles the response.
|
|
3113
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3114
|
+
*/
|
|
3115
|
+
delete(params: Params$Resource$Projects$Locations$Services$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3116
|
+
delete(params?: Params$Resource$Projects$Locations$Services$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3117
|
+
delete(params: Params$Resource$Projects$Locations$Services$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3118
|
+
delete(params: Params$Resource$Projects$Locations$Services$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3119
|
+
delete(params: Params$Resource$Projects$Locations$Services$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3120
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3121
|
+
/**
|
|
3122
|
+
* Gets details of a single Service.
|
|
3123
|
+
* @example
|
|
3124
|
+
* ```js
|
|
3125
|
+
* // Before running the sample:
|
|
3126
|
+
* // - Enable the API at:
|
|
3127
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3128
|
+
* // - Login into gcloud by running:
|
|
3129
|
+
* // ```sh
|
|
3130
|
+
* // $ gcloud auth application-default login
|
|
3131
|
+
* // ```
|
|
3132
|
+
* // - Install the npm module by running:
|
|
3133
|
+
* // ```sh
|
|
3134
|
+
* // $ npm install googleapis
|
|
3135
|
+
* // ```
|
|
3136
|
+
*
|
|
3137
|
+
* const {google} = require('googleapis');
|
|
3138
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3139
|
+
*
|
|
3140
|
+
* async function main() {
|
|
3141
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3142
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3143
|
+
* scopes: [
|
|
3144
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3145
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3146
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3147
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3148
|
+
* ],
|
|
3149
|
+
* });
|
|
3150
|
+
*
|
|
3151
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3152
|
+
* const authClient = await auth.getClient();
|
|
3153
|
+
* google.options({auth: authClient});
|
|
3154
|
+
*
|
|
3155
|
+
* // Do the magic
|
|
3156
|
+
* const res = await agentregistry.projects.locations.services.get({
|
|
2745
3157
|
* // Required. The name of the Service. Format: `projects/{project\}/locations/{location\}/services/{service\}`.
|
|
2746
3158
|
* name: 'projects/my-project/locations/my-location/services/my-service',
|
|
2747
3159
|
* });
|
|
@@ -2875,8 +3287,10 @@ export declare namespace agentregistry_v1alpha {
|
|
|
2875
3287
|
* const auth = new google.auth.GoogleAuth({
|
|
2876
3288
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2877
3289
|
* scopes: [
|
|
3290
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
2878
3291
|
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
2879
3292
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3293
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2880
3294
|
* ],
|
|
2881
3295
|
* });
|
|
2882
3296
|
*
|
|
@@ -3011,5 +3425,959 @@ export declare namespace agentregistry_v1alpha {
|
|
|
3011
3425
|
*/
|
|
3012
3426
|
requestBody?: Schema$Service;
|
|
3013
3427
|
}
|
|
3428
|
+
export class Resource$Projects$Locations$Skills {
|
|
3429
|
+
context: APIRequestContext;
|
|
3430
|
+
revisions: Resource$Projects$Locations$Skills$Revisions;
|
|
3431
|
+
constructor(context: APIRequestContext);
|
|
3432
|
+
/**
|
|
3433
|
+
* ========================================================================= # Skills Collection APIs Creates a Skill resource container, optionally publishing the initial SkillRevision inline in a single, atomic CRUD roundtrip.
|
|
3434
|
+
* @example
|
|
3435
|
+
* ```js
|
|
3436
|
+
* // Before running the sample:
|
|
3437
|
+
* // - Enable the API at:
|
|
3438
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3439
|
+
* // - Login into gcloud by running:
|
|
3440
|
+
* // ```sh
|
|
3441
|
+
* // $ gcloud auth application-default login
|
|
3442
|
+
* // ```
|
|
3443
|
+
* // - Install the npm module by running:
|
|
3444
|
+
* // ```sh
|
|
3445
|
+
* // $ npm install googleapis
|
|
3446
|
+
* // ```
|
|
3447
|
+
*
|
|
3448
|
+
* const {google} = require('googleapis');
|
|
3449
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3450
|
+
*
|
|
3451
|
+
* async function main() {
|
|
3452
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3453
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3454
|
+
* scopes: [
|
|
3455
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3456
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3457
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3458
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3459
|
+
* ],
|
|
3460
|
+
* });
|
|
3461
|
+
*
|
|
3462
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3463
|
+
* const authClient = await auth.getClient();
|
|
3464
|
+
* google.options({auth: authClient});
|
|
3465
|
+
*
|
|
3466
|
+
* // Do the magic
|
|
3467
|
+
* const res = await agentregistry.projects.locations.skills.create({
|
|
3468
|
+
* // Required. The project and location location to bootstrap.
|
|
3469
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3470
|
+
* // Optional. Signed UUID request idempotency token.
|
|
3471
|
+
* requestId: 'placeholder-value',
|
|
3472
|
+
* // Required. Custom, user-defined unique container identifier. Must be unique within the parent project and location. This value should be 4-63 characters, and valid characters are `/a-z-/`.
|
|
3473
|
+
* skillId: 'placeholder-value',
|
|
3474
|
+
*
|
|
3475
|
+
* // Request body metadata
|
|
3476
|
+
* requestBody: {
|
|
3477
|
+
* // request body parameters
|
|
3478
|
+
* // {
|
|
3479
|
+
* // "createTime": "my_createTime",
|
|
3480
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
3481
|
+
* // "description": "my_description",
|
|
3482
|
+
* // "displayName": "my_displayName",
|
|
3483
|
+
* // "frontmatter": {},
|
|
3484
|
+
* // "initialRevision": {},
|
|
3485
|
+
* // "name": "my_name",
|
|
3486
|
+
* // "publisher": "my_publisher",
|
|
3487
|
+
* // "skillId": "my_skillId",
|
|
3488
|
+
* // "state": "my_state",
|
|
3489
|
+
* // "targetState": "my_targetState",
|
|
3490
|
+
* // "type": "my_type",
|
|
3491
|
+
* // "uid": "my_uid",
|
|
3492
|
+
* // "updateTime": "my_updateTime"
|
|
3493
|
+
* // }
|
|
3494
|
+
* },
|
|
3495
|
+
* });
|
|
3496
|
+
* console.log(res.data);
|
|
3497
|
+
*
|
|
3498
|
+
* // Example response
|
|
3499
|
+
* // {
|
|
3500
|
+
* // "done": false,
|
|
3501
|
+
* // "error": {},
|
|
3502
|
+
* // "metadata": {},
|
|
3503
|
+
* // "name": "my_name",
|
|
3504
|
+
* // "response": {}
|
|
3505
|
+
* // }
|
|
3506
|
+
* }
|
|
3507
|
+
*
|
|
3508
|
+
* main().catch(e => {
|
|
3509
|
+
* console.error(e);
|
|
3510
|
+
* throw e;
|
|
3511
|
+
* });
|
|
3512
|
+
*
|
|
3513
|
+
* ```
|
|
3514
|
+
*
|
|
3515
|
+
* @param params - Parameters for request
|
|
3516
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3517
|
+
* @param callback - Optional callback that handles the response.
|
|
3518
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3519
|
+
*/
|
|
3520
|
+
create(params: Params$Resource$Projects$Locations$Skills$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3521
|
+
create(params?: Params$Resource$Projects$Locations$Skills$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3522
|
+
create(params: Params$Resource$Projects$Locations$Skills$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3523
|
+
create(params: Params$Resource$Projects$Locations$Skills$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3524
|
+
create(params: Params$Resource$Projects$Locations$Skills$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3525
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3526
|
+
/**
|
|
3527
|
+
* Deletes a Skill container along with all its revisions.
|
|
3528
|
+
* @example
|
|
3529
|
+
* ```js
|
|
3530
|
+
* // Before running the sample:
|
|
3531
|
+
* // - Enable the API at:
|
|
3532
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3533
|
+
* // - Login into gcloud by running:
|
|
3534
|
+
* // ```sh
|
|
3535
|
+
* // $ gcloud auth application-default login
|
|
3536
|
+
* // ```
|
|
3537
|
+
* // - Install the npm module by running:
|
|
3538
|
+
* // ```sh
|
|
3539
|
+
* // $ npm install googleapis
|
|
3540
|
+
* // ```
|
|
3541
|
+
*
|
|
3542
|
+
* const {google} = require('googleapis');
|
|
3543
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3544
|
+
*
|
|
3545
|
+
* async function main() {
|
|
3546
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3547
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3548
|
+
* scopes: [
|
|
3549
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3550
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3551
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3552
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3553
|
+
* ],
|
|
3554
|
+
* });
|
|
3555
|
+
*
|
|
3556
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3557
|
+
* const authClient = await auth.getClient();
|
|
3558
|
+
* google.options({auth: authClient});
|
|
3559
|
+
*
|
|
3560
|
+
* // Do the magic
|
|
3561
|
+
* const res = await agentregistry.projects.locations.skills.delete({
|
|
3562
|
+
* // 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.
|
|
3563
|
+
* force: 'placeholder-value',
|
|
3564
|
+
* // Required. Target Skill container name to remove.
|
|
3565
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
3566
|
+
* // Optional. Signed UUID request idempotency token.
|
|
3567
|
+
* requestId: 'placeholder-value',
|
|
3568
|
+
* });
|
|
3569
|
+
* console.log(res.data);
|
|
3570
|
+
*
|
|
3571
|
+
* // Example response
|
|
3572
|
+
* // {
|
|
3573
|
+
* // "done": false,
|
|
3574
|
+
* // "error": {},
|
|
3575
|
+
* // "metadata": {},
|
|
3576
|
+
* // "name": "my_name",
|
|
3577
|
+
* // "response": {}
|
|
3578
|
+
* // }
|
|
3579
|
+
* }
|
|
3580
|
+
*
|
|
3581
|
+
* main().catch(e => {
|
|
3582
|
+
* console.error(e);
|
|
3583
|
+
* throw e;
|
|
3584
|
+
* });
|
|
3585
|
+
*
|
|
3586
|
+
* ```
|
|
3587
|
+
*
|
|
3588
|
+
* @param params - Parameters for request
|
|
3589
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3590
|
+
* @param callback - Optional callback that handles the response.
|
|
3591
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3592
|
+
*/
|
|
3593
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3594
|
+
delete(params?: Params$Resource$Projects$Locations$Skills$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3595
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3596
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3597
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3598
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3599
|
+
/**
|
|
3600
|
+
* Fetches the active configuration and metadata of a Skill.
|
|
3601
|
+
* @example
|
|
3602
|
+
* ```js
|
|
3603
|
+
* // Before running the sample:
|
|
3604
|
+
* // - Enable the API at:
|
|
3605
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3606
|
+
* // - Login into gcloud by running:
|
|
3607
|
+
* // ```sh
|
|
3608
|
+
* // $ gcloud auth application-default login
|
|
3609
|
+
* // ```
|
|
3610
|
+
* // - Install the npm module by running:
|
|
3611
|
+
* // ```sh
|
|
3612
|
+
* // $ npm install googleapis
|
|
3613
|
+
* // ```
|
|
3614
|
+
*
|
|
3615
|
+
* const {google} = require('googleapis');
|
|
3616
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3617
|
+
*
|
|
3618
|
+
* async function main() {
|
|
3619
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3620
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3621
|
+
* scopes: [
|
|
3622
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3623
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3624
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3625
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3626
|
+
* ],
|
|
3627
|
+
* });
|
|
3628
|
+
*
|
|
3629
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3630
|
+
* const authClient = await auth.getClient();
|
|
3631
|
+
* google.options({auth: authClient});
|
|
3632
|
+
*
|
|
3633
|
+
* // Do the magic
|
|
3634
|
+
* const res = await agentregistry.projects.locations.skills.get({
|
|
3635
|
+
* // Required. Target resource container name.
|
|
3636
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
3637
|
+
* });
|
|
3638
|
+
* console.log(res.data);
|
|
3639
|
+
*
|
|
3640
|
+
* // Example response
|
|
3641
|
+
* // {
|
|
3642
|
+
* // "createTime": "my_createTime",
|
|
3643
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
3644
|
+
* // "description": "my_description",
|
|
3645
|
+
* // "displayName": "my_displayName",
|
|
3646
|
+
* // "frontmatter": {},
|
|
3647
|
+
* // "initialRevision": {},
|
|
3648
|
+
* // "name": "my_name",
|
|
3649
|
+
* // "publisher": "my_publisher",
|
|
3650
|
+
* // "skillId": "my_skillId",
|
|
3651
|
+
* // "state": "my_state",
|
|
3652
|
+
* // "targetState": "my_targetState",
|
|
3653
|
+
* // "type": "my_type",
|
|
3654
|
+
* // "uid": "my_uid",
|
|
3655
|
+
* // "updateTime": "my_updateTime"
|
|
3656
|
+
* // }
|
|
3657
|
+
* }
|
|
3658
|
+
*
|
|
3659
|
+
* main().catch(e => {
|
|
3660
|
+
* console.error(e);
|
|
3661
|
+
* throw e;
|
|
3662
|
+
* });
|
|
3663
|
+
*
|
|
3664
|
+
* ```
|
|
3665
|
+
*
|
|
3666
|
+
* @param params - Parameters for request
|
|
3667
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3668
|
+
* @param callback - Optional callback that handles the response.
|
|
3669
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3670
|
+
*/
|
|
3671
|
+
get(params: Params$Resource$Projects$Locations$Skills$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3672
|
+
get(params?: Params$Resource$Projects$Locations$Skills$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Skill>>;
|
|
3673
|
+
get(params: Params$Resource$Projects$Locations$Skills$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3674
|
+
get(params: Params$Resource$Projects$Locations$Skills$Get, options: MethodOptions | BodyResponseCallback<Schema$Skill>, callback: BodyResponseCallback<Schema$Skill>): void;
|
|
3675
|
+
get(params: Params$Resource$Projects$Locations$Skills$Get, callback: BodyResponseCallback<Schema$Skill>): void;
|
|
3676
|
+
get(callback: BodyResponseCallback<Schema$Skill>): void;
|
|
3677
|
+
/**
|
|
3678
|
+
* Lists logical Skills available in a project.
|
|
3679
|
+
* @example
|
|
3680
|
+
* ```js
|
|
3681
|
+
* // Before running the sample:
|
|
3682
|
+
* // - Enable the API at:
|
|
3683
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3684
|
+
* // - Login into gcloud by running:
|
|
3685
|
+
* // ```sh
|
|
3686
|
+
* // $ gcloud auth application-default login
|
|
3687
|
+
* // ```
|
|
3688
|
+
* // - Install the npm module by running:
|
|
3689
|
+
* // ```sh
|
|
3690
|
+
* // $ npm install googleapis
|
|
3691
|
+
* // ```
|
|
3692
|
+
*
|
|
3693
|
+
* const {google} = require('googleapis');
|
|
3694
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3695
|
+
*
|
|
3696
|
+
* async function main() {
|
|
3697
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3698
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3699
|
+
* scopes: [
|
|
3700
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3701
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3702
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3703
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3704
|
+
* ],
|
|
3705
|
+
* });
|
|
3706
|
+
*
|
|
3707
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3708
|
+
* const authClient = await auth.getClient();
|
|
3709
|
+
* google.options({auth: authClient});
|
|
3710
|
+
*
|
|
3711
|
+
* // Do the magic
|
|
3712
|
+
* const res = await agentregistry.projects.locations.skills.list({
|
|
3713
|
+
* // 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.
|
|
3714
|
+
* filter: 'placeholder-value',
|
|
3715
|
+
* // Optional. Hint for how to order the results
|
|
3716
|
+
* orderBy: 'placeholder-value',
|
|
3717
|
+
* // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3718
|
+
* pageSize: 'placeholder-value',
|
|
3719
|
+
* // Optional. A token identifying a page of results the server should return.
|
|
3720
|
+
* pageToken: 'placeholder-value',
|
|
3721
|
+
* // Required. Parent value for ListSkillsRequest
|
|
3722
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3723
|
+
* });
|
|
3724
|
+
* console.log(res.data);
|
|
3725
|
+
*
|
|
3726
|
+
* // Example response
|
|
3727
|
+
* // {
|
|
3728
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3729
|
+
* // "skills": [],
|
|
3730
|
+
* // "unreachable": []
|
|
3731
|
+
* // }
|
|
3732
|
+
* }
|
|
3733
|
+
*
|
|
3734
|
+
* main().catch(e => {
|
|
3735
|
+
* console.error(e);
|
|
3736
|
+
* throw e;
|
|
3737
|
+
* });
|
|
3738
|
+
*
|
|
3739
|
+
* ```
|
|
3740
|
+
*
|
|
3741
|
+
* @param params - Parameters for request
|
|
3742
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3743
|
+
* @param callback - Optional callback that handles the response.
|
|
3744
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3745
|
+
*/
|
|
3746
|
+
list(params: Params$Resource$Projects$Locations$Skills$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3747
|
+
list(params?: Params$Resource$Projects$Locations$Skills$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListSkillsResponse>>;
|
|
3748
|
+
list(params: Params$Resource$Projects$Locations$Skills$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3749
|
+
list(params: Params$Resource$Projects$Locations$Skills$List, options: MethodOptions | BodyResponseCallback<Schema$ListSkillsResponse>, callback: BodyResponseCallback<Schema$ListSkillsResponse>): void;
|
|
3750
|
+
list(params: Params$Resource$Projects$Locations$Skills$List, callback: BodyResponseCallback<Schema$ListSkillsResponse>): void;
|
|
3751
|
+
list(callback: BodyResponseCallback<Schema$ListSkillsResponse>): void;
|
|
3752
|
+
/**
|
|
3753
|
+
* Updates Skill metadata or overrides active pointers/state using REST standard PATCH.
|
|
3754
|
+
* @example
|
|
3755
|
+
* ```js
|
|
3756
|
+
* // Before running the sample:
|
|
3757
|
+
* // - Enable the API at:
|
|
3758
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3759
|
+
* // - Login into gcloud by running:
|
|
3760
|
+
* // ```sh
|
|
3761
|
+
* // $ gcloud auth application-default login
|
|
3762
|
+
* // ```
|
|
3763
|
+
* // - Install the npm module by running:
|
|
3764
|
+
* // ```sh
|
|
3765
|
+
* // $ npm install googleapis
|
|
3766
|
+
* // ```
|
|
3767
|
+
*
|
|
3768
|
+
* const {google} = require('googleapis');
|
|
3769
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3770
|
+
*
|
|
3771
|
+
* async function main() {
|
|
3772
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3773
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3774
|
+
* scopes: [
|
|
3775
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3776
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3777
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3778
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3779
|
+
* ],
|
|
3780
|
+
* });
|
|
3781
|
+
*
|
|
3782
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3783
|
+
* const authClient = await auth.getClient();
|
|
3784
|
+
* google.options({auth: authClient});
|
|
3785
|
+
*
|
|
3786
|
+
* // Do the magic
|
|
3787
|
+
* const res = await agentregistry.projects.locations.skills.patch({
|
|
3788
|
+
* // 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`).
|
|
3789
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
3790
|
+
* // Optional. Signed UUID request idempotency token.
|
|
3791
|
+
* requestId: 'placeholder-value',
|
|
3792
|
+
* // Optional. Standard update target mask mapping relative fields.
|
|
3793
|
+
* updateMask: 'placeholder-value',
|
|
3794
|
+
*
|
|
3795
|
+
* // Request body metadata
|
|
3796
|
+
* requestBody: {
|
|
3797
|
+
* // request body parameters
|
|
3798
|
+
* // {
|
|
3799
|
+
* // "createTime": "my_createTime",
|
|
3800
|
+
* // "defaultRevision": "my_defaultRevision",
|
|
3801
|
+
* // "description": "my_description",
|
|
3802
|
+
* // "displayName": "my_displayName",
|
|
3803
|
+
* // "frontmatter": {},
|
|
3804
|
+
* // "initialRevision": {},
|
|
3805
|
+
* // "name": "my_name",
|
|
3806
|
+
* // "publisher": "my_publisher",
|
|
3807
|
+
* // "skillId": "my_skillId",
|
|
3808
|
+
* // "state": "my_state",
|
|
3809
|
+
* // "targetState": "my_targetState",
|
|
3810
|
+
* // "type": "my_type",
|
|
3811
|
+
* // "uid": "my_uid",
|
|
3812
|
+
* // "updateTime": "my_updateTime"
|
|
3813
|
+
* // }
|
|
3814
|
+
* },
|
|
3815
|
+
* });
|
|
3816
|
+
* console.log(res.data);
|
|
3817
|
+
*
|
|
3818
|
+
* // Example response
|
|
3819
|
+
* // {
|
|
3820
|
+
* // "done": false,
|
|
3821
|
+
* // "error": {},
|
|
3822
|
+
* // "metadata": {},
|
|
3823
|
+
* // "name": "my_name",
|
|
3824
|
+
* // "response": {}
|
|
3825
|
+
* // }
|
|
3826
|
+
* }
|
|
3827
|
+
*
|
|
3828
|
+
* main().catch(e => {
|
|
3829
|
+
* console.error(e);
|
|
3830
|
+
* throw e;
|
|
3831
|
+
* });
|
|
3832
|
+
*
|
|
3833
|
+
* ```
|
|
3834
|
+
*
|
|
3835
|
+
* @param params - Parameters for request
|
|
3836
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3837
|
+
* @param callback - Optional callback that handles the response.
|
|
3838
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3839
|
+
*/
|
|
3840
|
+
patch(params: Params$Resource$Projects$Locations$Skills$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3841
|
+
patch(params?: Params$Resource$Projects$Locations$Skills$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3842
|
+
patch(params: Params$Resource$Projects$Locations$Skills$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3843
|
+
patch(params: Params$Resource$Projects$Locations$Skills$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3844
|
+
patch(params: Params$Resource$Projects$Locations$Skills$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3845
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3846
|
+
/**
|
|
3847
|
+
* Custom deep-search method to filter by frontmatter or query SKILL.md text blobs.
|
|
3848
|
+
* @example
|
|
3849
|
+
* ```js
|
|
3850
|
+
* // Before running the sample:
|
|
3851
|
+
* // - Enable the API at:
|
|
3852
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
3853
|
+
* // - Login into gcloud by running:
|
|
3854
|
+
* // ```sh
|
|
3855
|
+
* // $ gcloud auth application-default login
|
|
3856
|
+
* // ```
|
|
3857
|
+
* // - Install the npm module by running:
|
|
3858
|
+
* // ```sh
|
|
3859
|
+
* // $ npm install googleapis
|
|
3860
|
+
* // ```
|
|
3861
|
+
*
|
|
3862
|
+
* const {google} = require('googleapis');
|
|
3863
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
3864
|
+
*
|
|
3865
|
+
* async function main() {
|
|
3866
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3867
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3868
|
+
* scopes: [
|
|
3869
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
3870
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
3871
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3872
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3873
|
+
* ],
|
|
3874
|
+
* });
|
|
3875
|
+
*
|
|
3876
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3877
|
+
* const authClient = await auth.getClient();
|
|
3878
|
+
* google.options({auth: authClient});
|
|
3879
|
+
*
|
|
3880
|
+
* // Do the magic
|
|
3881
|
+
* const res = await agentregistry.projects.locations.skills.search({
|
|
3882
|
+
* // 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.
|
|
3883
|
+
* filter: 'placeholder-value',
|
|
3884
|
+
* // 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.
|
|
3885
|
+
* pageSize: 'placeholder-value',
|
|
3886
|
+
* // 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.
|
|
3887
|
+
* pageToken: 'placeholder-value',
|
|
3888
|
+
* // Required. Parent value for SearchSkillsRequest. Format: `projects/{project\}/locations/{location\}`.
|
|
3889
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3890
|
+
* // 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`.
|
|
3891
|
+
* searchString: 'placeholder-value',
|
|
3892
|
+
* // Optional. The type of search.
|
|
3893
|
+
* searchType: 'placeholder-value',
|
|
3894
|
+
* });
|
|
3895
|
+
* console.log(res.data);
|
|
3896
|
+
*
|
|
3897
|
+
* // Example response
|
|
3898
|
+
* // {
|
|
3899
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3900
|
+
* // "skills": []
|
|
3901
|
+
* // }
|
|
3902
|
+
* }
|
|
3903
|
+
*
|
|
3904
|
+
* main().catch(e => {
|
|
3905
|
+
* console.error(e);
|
|
3906
|
+
* throw e;
|
|
3907
|
+
* });
|
|
3908
|
+
*
|
|
3909
|
+
* ```
|
|
3910
|
+
*
|
|
3911
|
+
* @param params - Parameters for request
|
|
3912
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3913
|
+
* @param callback - Optional callback that handles the response.
|
|
3914
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3915
|
+
*/
|
|
3916
|
+
search(params: Params$Resource$Projects$Locations$Skills$Search, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3917
|
+
search(params?: Params$Resource$Projects$Locations$Skills$Search, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SearchSkillsResponse>>;
|
|
3918
|
+
search(params: Params$Resource$Projects$Locations$Skills$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3919
|
+
search(params: Params$Resource$Projects$Locations$Skills$Search, options: MethodOptions | BodyResponseCallback<Schema$SearchSkillsResponse>, callback: BodyResponseCallback<Schema$SearchSkillsResponse>): void;
|
|
3920
|
+
search(params: Params$Resource$Projects$Locations$Skills$Search, callback: BodyResponseCallback<Schema$SearchSkillsResponse>): void;
|
|
3921
|
+
search(callback: BodyResponseCallback<Schema$SearchSkillsResponse>): void;
|
|
3922
|
+
}
|
|
3923
|
+
export interface Params$Resource$Projects$Locations$Skills$Create extends StandardParameters {
|
|
3924
|
+
/**
|
|
3925
|
+
* Required. The project and location location to bootstrap.
|
|
3926
|
+
*/
|
|
3927
|
+
parent?: string;
|
|
3928
|
+
/**
|
|
3929
|
+
* Optional. Signed UUID request idempotency token.
|
|
3930
|
+
*/
|
|
3931
|
+
requestId?: string;
|
|
3932
|
+
/**
|
|
3933
|
+
* Required. Custom, user-defined unique container identifier. Must be unique within the parent project and location. This value should be 4-63 characters, and valid characters are `/a-z-/`.
|
|
3934
|
+
*/
|
|
3935
|
+
skillId?: string;
|
|
3936
|
+
/**
|
|
3937
|
+
* Request body metadata
|
|
3938
|
+
*/
|
|
3939
|
+
requestBody?: Schema$Skill;
|
|
3940
|
+
}
|
|
3941
|
+
export interface Params$Resource$Projects$Locations$Skills$Delete extends StandardParameters {
|
|
3942
|
+
/**
|
|
3943
|
+
* 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.
|
|
3944
|
+
*/
|
|
3945
|
+
force?: boolean;
|
|
3946
|
+
/**
|
|
3947
|
+
* Required. Target Skill container name to remove.
|
|
3948
|
+
*/
|
|
3949
|
+
name?: string;
|
|
3950
|
+
/**
|
|
3951
|
+
* Optional. Signed UUID request idempotency token.
|
|
3952
|
+
*/
|
|
3953
|
+
requestId?: string;
|
|
3954
|
+
}
|
|
3955
|
+
export interface Params$Resource$Projects$Locations$Skills$Get extends StandardParameters {
|
|
3956
|
+
/**
|
|
3957
|
+
* Required. Target resource container name.
|
|
3958
|
+
*/
|
|
3959
|
+
name?: string;
|
|
3960
|
+
}
|
|
3961
|
+
export interface Params$Resource$Projects$Locations$Skills$List extends StandardParameters {
|
|
3962
|
+
/**
|
|
3963
|
+
* 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.
|
|
3964
|
+
*/
|
|
3965
|
+
filter?: string;
|
|
3966
|
+
/**
|
|
3967
|
+
* Optional. Hint for how to order the results
|
|
3968
|
+
*/
|
|
3969
|
+
orderBy?: string;
|
|
3970
|
+
/**
|
|
3971
|
+
* Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
|
|
3972
|
+
*/
|
|
3973
|
+
pageSize?: number;
|
|
3974
|
+
/**
|
|
3975
|
+
* Optional. A token identifying a page of results the server should return.
|
|
3976
|
+
*/
|
|
3977
|
+
pageToken?: string;
|
|
3978
|
+
/**
|
|
3979
|
+
* Required. Parent value for ListSkillsRequest
|
|
3980
|
+
*/
|
|
3981
|
+
parent?: string;
|
|
3982
|
+
}
|
|
3983
|
+
export interface Params$Resource$Projects$Locations$Skills$Patch extends StandardParameters {
|
|
3984
|
+
/**
|
|
3985
|
+
* 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`).
|
|
3986
|
+
*/
|
|
3987
|
+
name?: string;
|
|
3988
|
+
/**
|
|
3989
|
+
* Optional. Signed UUID request idempotency token.
|
|
3990
|
+
*/
|
|
3991
|
+
requestId?: string;
|
|
3992
|
+
/**
|
|
3993
|
+
* Optional. Standard update target mask mapping relative fields.
|
|
3994
|
+
*/
|
|
3995
|
+
updateMask?: string;
|
|
3996
|
+
/**
|
|
3997
|
+
* Request body metadata
|
|
3998
|
+
*/
|
|
3999
|
+
requestBody?: Schema$Skill;
|
|
4000
|
+
}
|
|
4001
|
+
export interface Params$Resource$Projects$Locations$Skills$Search extends StandardParameters {
|
|
4002
|
+
/**
|
|
4003
|
+
* 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.
|
|
4004
|
+
*/
|
|
4005
|
+
filter?: string;
|
|
4006
|
+
/**
|
|
4007
|
+
* 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.
|
|
4008
|
+
*/
|
|
4009
|
+
pageSize?: number;
|
|
4010
|
+
/**
|
|
4011
|
+
* 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.
|
|
4012
|
+
*/
|
|
4013
|
+
pageToken?: string;
|
|
4014
|
+
/**
|
|
4015
|
+
* Required. Parent value for SearchSkillsRequest. Format: `projects/{project\}/locations/{location\}`.
|
|
4016
|
+
*/
|
|
4017
|
+
parent?: string;
|
|
4018
|
+
/**
|
|
4019
|
+
* 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`.
|
|
4020
|
+
*/
|
|
4021
|
+
searchString?: string;
|
|
4022
|
+
/**
|
|
4023
|
+
* Optional. The type of search.
|
|
4024
|
+
*/
|
|
4025
|
+
searchType?: string;
|
|
4026
|
+
}
|
|
4027
|
+
export class Resource$Projects$Locations$Skills$Revisions {
|
|
4028
|
+
context: APIRequestContext;
|
|
4029
|
+
constructor(context: APIRequestContext);
|
|
4030
|
+
/**
|
|
4031
|
+
* Creates a new immutable revision and triggers validation pipelines.
|
|
4032
|
+
* @example
|
|
4033
|
+
* ```js
|
|
4034
|
+
* // Before running the sample:
|
|
4035
|
+
* // - Enable the API at:
|
|
4036
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4037
|
+
* // - Login into gcloud by running:
|
|
4038
|
+
* // ```sh
|
|
4039
|
+
* // $ gcloud auth application-default login
|
|
4040
|
+
* // ```
|
|
4041
|
+
* // - Install the npm module by running:
|
|
4042
|
+
* // ```sh
|
|
4043
|
+
* // $ npm install googleapis
|
|
4044
|
+
* // ```
|
|
4045
|
+
*
|
|
4046
|
+
* const {google} = require('googleapis');
|
|
4047
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4048
|
+
*
|
|
4049
|
+
* async function main() {
|
|
4050
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4051
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4052
|
+
* scopes: [
|
|
4053
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4054
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4055
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4056
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4057
|
+
* ],
|
|
4058
|
+
* });
|
|
4059
|
+
*
|
|
4060
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4061
|
+
* const authClient = await auth.getClient();
|
|
4062
|
+
* google.options({auth: authClient});
|
|
4063
|
+
*
|
|
4064
|
+
* // Do the magic
|
|
4065
|
+
* const res = await agentregistry.projects.locations.skills.revisions.create({
|
|
4066
|
+
* // Required. Parent logical container name.
|
|
4067
|
+
* parent: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
4068
|
+
* // Optional. Signed UUID request idempotency token.
|
|
4069
|
+
* requestId: 'placeholder-value',
|
|
4070
|
+
* // Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`
|
|
4071
|
+
* skillRevisionId: 'placeholder-value',
|
|
4072
|
+
*
|
|
4073
|
+
* // Request body metadata
|
|
4074
|
+
* requestBody: {
|
|
4075
|
+
* // request body parameters
|
|
4076
|
+
* // {
|
|
4077
|
+
* // "archiveUploadSource": {},
|
|
4078
|
+
* // "createTime": "my_createTime",
|
|
4079
|
+
* // "frontmatter": {},
|
|
4080
|
+
* // "gcsSource": {},
|
|
4081
|
+
* // "name": "my_name",
|
|
4082
|
+
* // "sha256Hash": "my_sha256Hash",
|
|
4083
|
+
* // "sizeBytes": "my_sizeBytes",
|
|
4084
|
+
* // "state": "my_state",
|
|
4085
|
+
* // "uid": "my_uid"
|
|
4086
|
+
* // }
|
|
4087
|
+
* },
|
|
4088
|
+
* });
|
|
4089
|
+
* console.log(res.data);
|
|
4090
|
+
*
|
|
4091
|
+
* // Example response
|
|
4092
|
+
* // {
|
|
4093
|
+
* // "done": false,
|
|
4094
|
+
* // "error": {},
|
|
4095
|
+
* // "metadata": {},
|
|
4096
|
+
* // "name": "my_name",
|
|
4097
|
+
* // "response": {}
|
|
4098
|
+
* // }
|
|
4099
|
+
* }
|
|
4100
|
+
*
|
|
4101
|
+
* main().catch(e => {
|
|
4102
|
+
* console.error(e);
|
|
4103
|
+
* throw e;
|
|
4104
|
+
* });
|
|
4105
|
+
*
|
|
4106
|
+
* ```
|
|
4107
|
+
*
|
|
4108
|
+
* @param params - Parameters for request
|
|
4109
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4110
|
+
* @param callback - Optional callback that handles the response.
|
|
4111
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4112
|
+
*/
|
|
4113
|
+
create(params: Params$Resource$Projects$Locations$Skills$Revisions$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4114
|
+
create(params?: Params$Resource$Projects$Locations$Skills$Revisions$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4115
|
+
create(params: Params$Resource$Projects$Locations$Skills$Revisions$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4116
|
+
create(params: Params$Resource$Projects$Locations$Skills$Revisions$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4117
|
+
create(params: Params$Resource$Projects$Locations$Skills$Revisions$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4118
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4119
|
+
/**
|
|
4120
|
+
* Deletes a specific revision (restricted to admins to purge accidentally committed secrets).
|
|
4121
|
+
* @example
|
|
4122
|
+
* ```js
|
|
4123
|
+
* // Before running the sample:
|
|
4124
|
+
* // - Enable the API at:
|
|
4125
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4126
|
+
* // - Login into gcloud by running:
|
|
4127
|
+
* // ```sh
|
|
4128
|
+
* // $ gcloud auth application-default login
|
|
4129
|
+
* // ```
|
|
4130
|
+
* // - Install the npm module by running:
|
|
4131
|
+
* // ```sh
|
|
4132
|
+
* // $ npm install googleapis
|
|
4133
|
+
* // ```
|
|
4134
|
+
*
|
|
4135
|
+
* const {google} = require('googleapis');
|
|
4136
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4137
|
+
*
|
|
4138
|
+
* async function main() {
|
|
4139
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4140
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4141
|
+
* scopes: [
|
|
4142
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4143
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4144
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4145
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4146
|
+
* ],
|
|
4147
|
+
* });
|
|
4148
|
+
*
|
|
4149
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4150
|
+
* const authClient = await auth.getClient();
|
|
4151
|
+
* google.options({auth: authClient});
|
|
4152
|
+
*
|
|
4153
|
+
* // Do the magic
|
|
4154
|
+
* const res = await agentregistry.projects.locations.skills.revisions.delete({
|
|
4155
|
+
* // Required. Target revision name to remove.
|
|
4156
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill/revisions/my-revision',
|
|
4157
|
+
* // Optional. Signed UUID request idempotency token.
|
|
4158
|
+
* requestId: 'placeholder-value',
|
|
4159
|
+
* });
|
|
4160
|
+
* console.log(res.data);
|
|
4161
|
+
*
|
|
4162
|
+
* // Example response
|
|
4163
|
+
* // {
|
|
4164
|
+
* // "done": false,
|
|
4165
|
+
* // "error": {},
|
|
4166
|
+
* // "metadata": {},
|
|
4167
|
+
* // "name": "my_name",
|
|
4168
|
+
* // "response": {}
|
|
4169
|
+
* // }
|
|
4170
|
+
* }
|
|
4171
|
+
*
|
|
4172
|
+
* main().catch(e => {
|
|
4173
|
+
* console.error(e);
|
|
4174
|
+
* throw e;
|
|
4175
|
+
* });
|
|
4176
|
+
*
|
|
4177
|
+
* ```
|
|
4178
|
+
*
|
|
4179
|
+
* @param params - Parameters for request
|
|
4180
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4181
|
+
* @param callback - Optional callback that handles the response.
|
|
4182
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4183
|
+
*/
|
|
4184
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Revisions$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4185
|
+
delete(params?: Params$Resource$Projects$Locations$Skills$Revisions$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4186
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Revisions$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4187
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Revisions$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4188
|
+
delete(params: Params$Resource$Projects$Locations$Skills$Revisions$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4189
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4190
|
+
/**
|
|
4191
|
+
* Gets details of a single immutable Revision.
|
|
4192
|
+
* @example
|
|
4193
|
+
* ```js
|
|
4194
|
+
* // Before running the sample:
|
|
4195
|
+
* // - Enable the API at:
|
|
4196
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4197
|
+
* // - Login into gcloud by running:
|
|
4198
|
+
* // ```sh
|
|
4199
|
+
* // $ gcloud auth application-default login
|
|
4200
|
+
* // ```
|
|
4201
|
+
* // - Install the npm module by running:
|
|
4202
|
+
* // ```sh
|
|
4203
|
+
* // $ npm install googleapis
|
|
4204
|
+
* // ```
|
|
4205
|
+
*
|
|
4206
|
+
* const {google} = require('googleapis');
|
|
4207
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4208
|
+
*
|
|
4209
|
+
* async function main() {
|
|
4210
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4211
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4212
|
+
* scopes: [
|
|
4213
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4214
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4215
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4216
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4217
|
+
* ],
|
|
4218
|
+
* });
|
|
4219
|
+
*
|
|
4220
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4221
|
+
* const authClient = await auth.getClient();
|
|
4222
|
+
* google.options({auth: authClient});
|
|
4223
|
+
*
|
|
4224
|
+
* // Do the magic
|
|
4225
|
+
* const res = await agentregistry.projects.locations.skills.revisions.get({
|
|
4226
|
+
* // Required. Target revision name.
|
|
4227
|
+
* name: 'projects/my-project/locations/my-location/skills/my-skill/revisions/my-revision',
|
|
4228
|
+
* });
|
|
4229
|
+
* console.log(res.data);
|
|
4230
|
+
*
|
|
4231
|
+
* // Example response
|
|
4232
|
+
* // {
|
|
4233
|
+
* // "archiveUploadSource": {},
|
|
4234
|
+
* // "createTime": "my_createTime",
|
|
4235
|
+
* // "frontmatter": {},
|
|
4236
|
+
* // "gcsSource": {},
|
|
4237
|
+
* // "name": "my_name",
|
|
4238
|
+
* // "sha256Hash": "my_sha256Hash",
|
|
4239
|
+
* // "sizeBytes": "my_sizeBytes",
|
|
4240
|
+
* // "state": "my_state",
|
|
4241
|
+
* // "uid": "my_uid"
|
|
4242
|
+
* // }
|
|
4243
|
+
* }
|
|
4244
|
+
*
|
|
4245
|
+
* main().catch(e => {
|
|
4246
|
+
* console.error(e);
|
|
4247
|
+
* throw e;
|
|
4248
|
+
* });
|
|
4249
|
+
*
|
|
4250
|
+
* ```
|
|
4251
|
+
*
|
|
4252
|
+
* @param params - Parameters for request
|
|
4253
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4254
|
+
* @param callback - Optional callback that handles the response.
|
|
4255
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4256
|
+
*/
|
|
4257
|
+
get(params: Params$Resource$Projects$Locations$Skills$Revisions$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4258
|
+
get(params?: Params$Resource$Projects$Locations$Skills$Revisions$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$SkillRevision>>;
|
|
4259
|
+
get(params: Params$Resource$Projects$Locations$Skills$Revisions$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4260
|
+
get(params: Params$Resource$Projects$Locations$Skills$Revisions$Get, options: MethodOptions | BodyResponseCallback<Schema$SkillRevision>, callback: BodyResponseCallback<Schema$SkillRevision>): void;
|
|
4261
|
+
get(params: Params$Resource$Projects$Locations$Skills$Revisions$Get, callback: BodyResponseCallback<Schema$SkillRevision>): void;
|
|
4262
|
+
get(callback: BodyResponseCallback<Schema$SkillRevision>): void;
|
|
4263
|
+
/**
|
|
4264
|
+
* Lists all revisions belonging to a parent Skill.
|
|
4265
|
+
* @example
|
|
4266
|
+
* ```js
|
|
4267
|
+
* // Before running the sample:
|
|
4268
|
+
* // - Enable the API at:
|
|
4269
|
+
* // https://console.developers.google.com/apis/api/agentregistry.googleapis.com
|
|
4270
|
+
* // - Login into gcloud by running:
|
|
4271
|
+
* // ```sh
|
|
4272
|
+
* // $ gcloud auth application-default login
|
|
4273
|
+
* // ```
|
|
4274
|
+
* // - Install the npm module by running:
|
|
4275
|
+
* // ```sh
|
|
4276
|
+
* // $ npm install googleapis
|
|
4277
|
+
* // ```
|
|
4278
|
+
*
|
|
4279
|
+
* const {google} = require('googleapis');
|
|
4280
|
+
* const agentregistry = google.agentregistry('v1alpha');
|
|
4281
|
+
*
|
|
4282
|
+
* async function main() {
|
|
4283
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4284
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4285
|
+
* scopes: [
|
|
4286
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-only',
|
|
4287
|
+
* 'https://www.googleapis.com/auth/agentregistry.read-write',
|
|
4288
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4289
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4290
|
+
* ],
|
|
4291
|
+
* });
|
|
4292
|
+
*
|
|
4293
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4294
|
+
* const authClient = await auth.getClient();
|
|
4295
|
+
* google.options({auth: authClient});
|
|
4296
|
+
*
|
|
4297
|
+
* // Do the magic
|
|
4298
|
+
* const res = await agentregistry.projects.locations.skills.revisions.list({
|
|
4299
|
+
* // Optional. Page limit size.
|
|
4300
|
+
* pageSize: 'placeholder-value',
|
|
4301
|
+
* // Optional. Page offset token.
|
|
4302
|
+
* pageToken: 'placeholder-value',
|
|
4303
|
+
* // Required. Parent logical container name to query.
|
|
4304
|
+
* parent: 'projects/my-project/locations/my-location/skills/my-skill',
|
|
4305
|
+
* });
|
|
4306
|
+
* console.log(res.data);
|
|
4307
|
+
*
|
|
4308
|
+
* // Example response
|
|
4309
|
+
* // {
|
|
4310
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4311
|
+
* // "skillRevisions": []
|
|
4312
|
+
* // }
|
|
4313
|
+
* }
|
|
4314
|
+
*
|
|
4315
|
+
* main().catch(e => {
|
|
4316
|
+
* console.error(e);
|
|
4317
|
+
* throw e;
|
|
4318
|
+
* });
|
|
4319
|
+
*
|
|
4320
|
+
* ```
|
|
4321
|
+
*
|
|
4322
|
+
* @param params - Parameters for request
|
|
4323
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4324
|
+
* @param callback - Optional callback that handles the response.
|
|
4325
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4326
|
+
*/
|
|
4327
|
+
list(params: Params$Resource$Projects$Locations$Skills$Revisions$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4328
|
+
list(params?: Params$Resource$Projects$Locations$Skills$Revisions$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListSkillRevisionsResponse>>;
|
|
4329
|
+
list(params: Params$Resource$Projects$Locations$Skills$Revisions$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4330
|
+
list(params: Params$Resource$Projects$Locations$Skills$Revisions$List, options: MethodOptions | BodyResponseCallback<Schema$ListSkillRevisionsResponse>, callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>): void;
|
|
4331
|
+
list(params: Params$Resource$Projects$Locations$Skills$Revisions$List, callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>): void;
|
|
4332
|
+
list(callback: BodyResponseCallback<Schema$ListSkillRevisionsResponse>): void;
|
|
4333
|
+
}
|
|
4334
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Create extends StandardParameters {
|
|
4335
|
+
/**
|
|
4336
|
+
* Required. Parent logical container name.
|
|
4337
|
+
*/
|
|
4338
|
+
parent?: string;
|
|
4339
|
+
/**
|
|
4340
|
+
* Optional. Signed UUID request idempotency token.
|
|
4341
|
+
*/
|
|
4342
|
+
requestId?: string;
|
|
4343
|
+
/**
|
|
4344
|
+
* Optional. Custom, user-defined unique revision identifier. Format: 4-63 characters, matching regex `^[a-z]([a-z0-9-]{0,61\}[a-z0-9])?$`
|
|
4345
|
+
*/
|
|
4346
|
+
skillRevisionId?: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* Request body metadata
|
|
4349
|
+
*/
|
|
4350
|
+
requestBody?: Schema$SkillRevision;
|
|
4351
|
+
}
|
|
4352
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Delete extends StandardParameters {
|
|
4353
|
+
/**
|
|
4354
|
+
* Required. Target revision name to remove.
|
|
4355
|
+
*/
|
|
4356
|
+
name?: string;
|
|
4357
|
+
/**
|
|
4358
|
+
* Optional. Signed UUID request idempotency token.
|
|
4359
|
+
*/
|
|
4360
|
+
requestId?: string;
|
|
4361
|
+
}
|
|
4362
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$Get extends StandardParameters {
|
|
4363
|
+
/**
|
|
4364
|
+
* Required. Target revision name.
|
|
4365
|
+
*/
|
|
4366
|
+
name?: string;
|
|
4367
|
+
}
|
|
4368
|
+
export interface Params$Resource$Projects$Locations$Skills$Revisions$List extends StandardParameters {
|
|
4369
|
+
/**
|
|
4370
|
+
* Optional. Page limit size.
|
|
4371
|
+
*/
|
|
4372
|
+
pageSize?: number;
|
|
4373
|
+
/**
|
|
4374
|
+
* Optional. Page offset token.
|
|
4375
|
+
*/
|
|
4376
|
+
pageToken?: string;
|
|
4377
|
+
/**
|
|
4378
|
+
* Required. Parent logical container name to query.
|
|
4379
|
+
*/
|
|
4380
|
+
parent?: string;
|
|
4381
|
+
}
|
|
3014
4382
|
export {};
|
|
3015
4383
|
}
|