Debian Codegraph @

internal/generated/snippets/iam/credentials/apiv1/snippet_metadata.google.iam.credentials.v1.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/iam/credentials/apiv1",
4 "version": "1.5.2",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.iam.credentials.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateAccessToken_sync",
16 "title": "iamcredentials GenerateAccessToken Sample",
17 "description": "GenerateAccessToken generates an OAuth 2.0 access token for a service account.",
18 "file": "IamCredentialsClient/GenerateAccessToken/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "GenerateAccessToken",
22 "fullName": "google.iam.credentials.v1.IamCredentialsClient.GenerateAccessToken",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "credentialspb.GenerateAccessTokenRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*credentialspb.GenerateAccessTokenResponse",
38 "client": {
39 "shortName": "IamCredentialsClient",
40 "fullName": "google.iam.credentials.v1.IamCredentialsClient"
41 },
42 "method": {
43 "shortName": "GenerateAccessToken",
44 "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateAccessToken",
45 "service": {
46 "shortName": "IAMCredentials",
47 "fullName": "google.iam.credentials.v1.IAMCredentials"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 53,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateIdToken_sync",
62 "title": "iamcredentials GenerateIdToken Sample",
63 "description": "GenerateIdToken generates an OpenID Connect ID token for a service account.",
64 "file": "IamCredentialsClient/GenerateIdToken/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "GenerateIdToken",
68 "fullName": "google.iam.credentials.v1.IamCredentialsClient.GenerateIdToken",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "credentialspb.GenerateIdTokenRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "*credentialspb.GenerateIdTokenResponse",
84 "client": {
85 "shortName": "IamCredentialsClient",
86 "fullName": "google.iam.credentials.v1.IamCredentialsClient"
87 },
88 "method": {
89 "shortName": "GenerateIdToken",
90 "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateIdToken",
91 "service": {
92 "shortName": "IAMCredentials",
93 "fullName": "google.iam.credentials.v1.IAMCredentials"
94 }
95 }
96 },
97 "origin": "API_DEFINITION",
98 "segments": [
99 {
100 "start": 18,
101 "end": 53,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignBlob_sync",
108 "title": "iamcredentials SignBlob Sample",
109 "description": "SignBlob signs a blob using a service account's system-managed private key.",
110 "file": "IamCredentialsClient/SignBlob/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "SignBlob",
114 "fullName": "google.iam.credentials.v1.IamCredentialsClient.SignBlob",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "credentialspb.SignBlobRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "*credentialspb.SignBlobResponse",
130 "client": {
131 "shortName": "IamCredentialsClient",
132 "fullName": "google.iam.credentials.v1.IamCredentialsClient"
133 },
134 "method": {
135 "shortName": "SignBlob",
136 "fullName": "google.iam.credentials.v1.IAMCredentials.SignBlob",
137 "service": {
138 "shortName": "IAMCredentials",
139 "fullName": "google.iam.credentials.v1.IAMCredentials"
140 }
141 }
142 },
143 "origin": "API_DEFINITION",
144 "segments": [
145 {
146 "start": 18,
147 "end": 53,
148 "type": "FULL"
149 }
150 ]
151 },
152 {
153 "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignJwt_sync",
154 "title": "iamcredentials SignJwt Sample",
155 "description": "SignJwt signs a JWT using a service account's system-managed private key.",
156 "file": "IamCredentialsClient/SignJwt/main.go",
157 "language": "GO",
158 "clientMethod": {
159 "shortName": "SignJwt",
160 "fullName": "google.iam.credentials.v1.IamCredentialsClient.SignJwt",
161 "parameters": [
162 {
163 "type": "context.Context",
164 "name": "ctx"
165 },
166 {
167 "type": "credentialspb.SignJwtRequest",
168 "name": "req"
169 },
170 {
171 "type": "...gax.CallOption",
172 "name": "opts"
173 }
174 ],
175 "resultType": "*credentialspb.SignJwtResponse",
176 "client": {
177 "shortName": "IamCredentialsClient",
178 "fullName": "google.iam.credentials.v1.IamCredentialsClient"
179 },
180 "method": {
181 "shortName": "SignJwt",
182 "fullName": "google.iam.credentials.v1.IAMCredentials.SignJwt",
183 "service": {
184 "shortName": "IAMCredentials",
185 "fullName": "google.iam.credentials.v1.IAMCredentials"
186 }
187 }
188 },
189 "origin": "API_DEFINITION",
190 "segments": [
191 {
192 "start": 18,
193 "end": 53,
194 "type": "FULL"
195 }
196 ]
197 }
198 ]
199 }