| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/gsuiteaddons/apiv1", |
| 4 |
"version": "1.7.7", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.gsuiteaddons.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_sync", |
| 16 |
"title": "gsuiteaddons CreateDeployment Sample", |
| 17 |
"description": "CreateDeployment creates a deployment with the specified name and configuration.", |
| 18 |
"file": "Client/CreateDeployment/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "CreateDeployment", |
| 22 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.CreateDeployment", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "gsuiteaddonspb.CreateDeploymentRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "*gsuiteaddonspb.Deployment", |
| 38 |
"client": { |
| 39 |
"shortName": "Client", |
| 40 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "CreateDeployment", |
| 44 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", |
| 45 |
"service": { |
| 46 |
"shortName": "GSuiteAddOns", |
| 47 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 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": "gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_sync", |
| 62 |
"title": "gsuiteaddons DeleteDeployment Sample", |
| 63 |
"description": "DeleteDeployment deletes the deployment with the given name.", |
| 64 |
"file": "Client/DeleteDeployment/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "DeleteDeployment", |
| 68 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.DeleteDeployment", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "gsuiteaddonspb.DeleteDeploymentRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"client": { |
| 84 |
"shortName": "Client", |
| 85 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 86 |
}, |
| 87 |
"method": { |
| 88 |
"shortName": "DeleteDeployment", |
| 89 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", |
| 90 |
"service": { |
| 91 |
"shortName": "GSuiteAddOns", |
| 92 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 93 |
} |
| 94 |
} |
| 95 |
}, |
| 96 |
"origin": "API_DEFINITION", |
| 97 |
"segments": [ |
| 98 |
{ |
| 99 |
"start": 18, |
| 100 |
"end": 51, |
| 101 |
"type": "FULL" |
| 102 |
} |
| 103 |
] |
| 104 |
}, |
| 105 |
{ |
| 106 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_sync", |
| 107 |
"title": "gsuiteaddons GetAuthorization Sample", |
| 108 |
"description": "GetAuthorization gets the authorization information for deployments in a given project.", |
| 109 |
"file": "Client/GetAuthorization/main.go", |
| 110 |
"language": "GO", |
| 111 |
"clientMethod": { |
| 112 |
"shortName": "GetAuthorization", |
| 113 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.GetAuthorization", |
| 114 |
"parameters": [ |
| 115 |
{ |
| 116 |
"type": "context.Context", |
| 117 |
"name": "ctx" |
| 118 |
}, |
| 119 |
{ |
| 120 |
"type": "gsuiteaddonspb.GetAuthorizationRequest", |
| 121 |
"name": "req" |
| 122 |
}, |
| 123 |
{ |
| 124 |
"type": "...gax.CallOption", |
| 125 |
"name": "opts" |
| 126 |
} |
| 127 |
], |
| 128 |
"resultType": "*gsuiteaddonspb.Authorization", |
| 129 |
"client": { |
| 130 |
"shortName": "Client", |
| 131 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 132 |
}, |
| 133 |
"method": { |
| 134 |
"shortName": "GetAuthorization", |
| 135 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", |
| 136 |
"service": { |
| 137 |
"shortName": "GSuiteAddOns", |
| 138 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 139 |
} |
| 140 |
} |
| 141 |
}, |
| 142 |
"origin": "API_DEFINITION", |
| 143 |
"segments": [ |
| 144 |
{ |
| 145 |
"start": 18, |
| 146 |
"end": 53, |
| 147 |
"type": "FULL" |
| 148 |
} |
| 149 |
] |
| 150 |
}, |
| 151 |
{ |
| 152 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_sync", |
| 153 |
"title": "gsuiteaddons GetDeployment Sample", |
| 154 |
"description": "GetDeployment gets the deployment with the specified name.", |
| 155 |
"file": "Client/GetDeployment/main.go", |
| 156 |
"language": "GO", |
| 157 |
"clientMethod": { |
| 158 |
"shortName": "GetDeployment", |
| 159 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.GetDeployment", |
| 160 |
"parameters": [ |
| 161 |
{ |
| 162 |
"type": "context.Context", |
| 163 |
"name": "ctx" |
| 164 |
}, |
| 165 |
{ |
| 166 |
"type": "gsuiteaddonspb.GetDeploymentRequest", |
| 167 |
"name": "req" |
| 168 |
}, |
| 169 |
{ |
| 170 |
"type": "...gax.CallOption", |
| 171 |
"name": "opts" |
| 172 |
} |
| 173 |
], |
| 174 |
"resultType": "*gsuiteaddonspb.Deployment", |
| 175 |
"client": { |
| 176 |
"shortName": "Client", |
| 177 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 178 |
}, |
| 179 |
"method": { |
| 180 |
"shortName": "GetDeployment", |
| 181 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", |
| 182 |
"service": { |
| 183 |
"shortName": "GSuiteAddOns", |
| 184 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 185 |
} |
| 186 |
} |
| 187 |
}, |
| 188 |
"origin": "API_DEFINITION", |
| 189 |
"segments": [ |
| 190 |
{ |
| 191 |
"start": 18, |
| 192 |
"end": 53, |
| 193 |
"type": "FULL" |
| 194 |
} |
| 195 |
] |
| 196 |
}, |
| 197 |
{ |
| 198 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_sync", |
| 199 |
"title": "gsuiteaddons GetInstallStatus Sample", |
| 200 |
"description": "GetInstallStatus fetches the install status of a developer mode deployment.", |
| 201 |
"file": "Client/GetInstallStatus/main.go", |
| 202 |
"language": "GO", |
| 203 |
"clientMethod": { |
| 204 |
"shortName": "GetInstallStatus", |
| 205 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.GetInstallStatus", |
| 206 |
"parameters": [ |
| 207 |
{ |
| 208 |
"type": "context.Context", |
| 209 |
"name": "ctx" |
| 210 |
}, |
| 211 |
{ |
| 212 |
"type": "gsuiteaddonspb.GetInstallStatusRequest", |
| 213 |
"name": "req" |
| 214 |
}, |
| 215 |
{ |
| 216 |
"type": "...gax.CallOption", |
| 217 |
"name": "opts" |
| 218 |
} |
| 219 |
], |
| 220 |
"resultType": "*gsuiteaddonspb.InstallStatus", |
| 221 |
"client": { |
| 222 |
"shortName": "Client", |
| 223 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 224 |
}, |
| 225 |
"method": { |
| 226 |
"shortName": "GetInstallStatus", |
| 227 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", |
| 228 |
"service": { |
| 229 |
"shortName": "GSuiteAddOns", |
| 230 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 231 |
} |
| 232 |
} |
| 233 |
}, |
| 234 |
"origin": "API_DEFINITION", |
| 235 |
"segments": [ |
| 236 |
{ |
| 237 |
"start": 18, |
| 238 |
"end": 53, |
| 239 |
"type": "FULL" |
| 240 |
} |
| 241 |
] |
| 242 |
}, |
| 243 |
{ |
| 244 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_sync", |
| 245 |
"title": "gsuiteaddons InstallDeployment Sample", |
| 246 |
"description": "InstallDeployment installs a deployment in developer mode.\nSee: \nhttps: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", |
| 247 |
"file": "Client/InstallDeployment/main.go", |
| 248 |
"language": "GO", |
| 249 |
"clientMethod": { |
| 250 |
"shortName": "InstallDeployment", |
| 251 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.InstallDeployment", |
| 252 |
"parameters": [ |
| 253 |
{ |
| 254 |
"type": "context.Context", |
| 255 |
"name": "ctx" |
| 256 |
}, |
| 257 |
{ |
| 258 |
"type": "gsuiteaddonspb.InstallDeploymentRequest", |
| 259 |
"name": "req" |
| 260 |
}, |
| 261 |
{ |
| 262 |
"type": "...gax.CallOption", |
| 263 |
"name": "opts" |
| 264 |
} |
| 265 |
], |
| 266 |
"client": { |
| 267 |
"shortName": "Client", |
| 268 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 269 |
}, |
| 270 |
"method": { |
| 271 |
"shortName": "InstallDeployment", |
| 272 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", |
| 273 |
"service": { |
| 274 |
"shortName": "GSuiteAddOns", |
| 275 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 276 |
} |
| 277 |
} |
| 278 |
}, |
| 279 |
"origin": "API_DEFINITION", |
| 280 |
"segments": [ |
| 281 |
{ |
| 282 |
"start": 18, |
| 283 |
"end": 51, |
| 284 |
"type": "FULL" |
| 285 |
} |
| 286 |
] |
| 287 |
}, |
| 288 |
{ |
| 289 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_sync", |
| 290 |
"title": "gsuiteaddons ListDeployments Sample", |
| 291 |
"description": "ListDeployments lists all deployments in a particular project.", |
| 292 |
"file": "Client/ListDeployments/main.go", |
| 293 |
"language": "GO", |
| 294 |
"clientMethod": { |
| 295 |
"shortName": "ListDeployments", |
| 296 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.ListDeployments", |
| 297 |
"parameters": [ |
| 298 |
{ |
| 299 |
"type": "context.Context", |
| 300 |
"name": "ctx" |
| 301 |
}, |
| 302 |
{ |
| 303 |
"type": "gsuiteaddonspb.ListDeploymentsRequest", |
| 304 |
"name": "req" |
| 305 |
}, |
| 306 |
{ |
| 307 |
"type": "...gax.CallOption", |
| 308 |
"name": "opts" |
| 309 |
} |
| 310 |
], |
| 311 |
"resultType": "DeploymentIterator", |
| 312 |
"client": { |
| 313 |
"shortName": "Client", |
| 314 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 315 |
}, |
| 316 |
"method": { |
| 317 |
"shortName": "ListDeployments", |
| 318 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", |
| 319 |
"service": { |
| 320 |
"shortName": "GSuiteAddOns", |
| 321 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 322 |
} |
| 323 |
} |
| 324 |
}, |
| 325 |
"origin": "API_DEFINITION", |
| 326 |
"segments": [ |
| 327 |
{ |
| 328 |
"start": 18, |
| 329 |
"end": 66, |
| 330 |
"type": "FULL" |
| 331 |
} |
| 332 |
] |
| 333 |
}, |
| 334 |
{ |
| 335 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_sync", |
| 336 |
"title": "gsuiteaddons ReplaceDeployment Sample", |
| 337 |
"description": "ReplaceDeployment creates or replaces a deployment with the specified name.", |
| 338 |
"file": "Client/ReplaceDeployment/main.go", |
| 339 |
"language": "GO", |
| 340 |
"clientMethod": { |
| 341 |
"shortName": "ReplaceDeployment", |
| 342 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.ReplaceDeployment", |
| 343 |
"parameters": [ |
| 344 |
{ |
| 345 |
"type": "context.Context", |
| 346 |
"name": "ctx" |
| 347 |
}, |
| 348 |
{ |
| 349 |
"type": "gsuiteaddonspb.ReplaceDeploymentRequest", |
| 350 |
"name": "req" |
| 351 |
}, |
| 352 |
{ |
| 353 |
"type": "...gax.CallOption", |
| 354 |
"name": "opts" |
| 355 |
} |
| 356 |
], |
| 357 |
"resultType": "*gsuiteaddonspb.Deployment", |
| 358 |
"client": { |
| 359 |
"shortName": "Client", |
| 360 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 361 |
}, |
| 362 |
"method": { |
| 363 |
"shortName": "ReplaceDeployment", |
| 364 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", |
| 365 |
"service": { |
| 366 |
"shortName": "GSuiteAddOns", |
| 367 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 368 |
} |
| 369 |
} |
| 370 |
}, |
| 371 |
"origin": "API_DEFINITION", |
| 372 |
"segments": [ |
| 373 |
{ |
| 374 |
"start": 18, |
| 375 |
"end": 53, |
| 376 |
"type": "FULL" |
| 377 |
} |
| 378 |
] |
| 379 |
}, |
| 380 |
{ |
| 381 |
"regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_sync", |
| 382 |
"title": "gsuiteaddons UninstallDeployment Sample", |
| 383 |
"description": "UninstallDeployment uninstalls a developer mode deployment.\nSee: \nhttps: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", |
| 384 |
"file": "Client/UninstallDeployment/main.go", |
| 385 |
"language": "GO", |
| 386 |
"clientMethod": { |
| 387 |
"shortName": "UninstallDeployment", |
| 388 |
"fullName": "google.cloud.gsuiteaddons.v1.Client.UninstallDeployment", |
| 389 |
"parameters": [ |
| 390 |
{ |
| 391 |
"type": "context.Context", |
| 392 |
"name": "ctx" |
| 393 |
}, |
| 394 |
{ |
| 395 |
"type": "gsuiteaddonspb.UninstallDeploymentRequest", |
| 396 |
"name": "req" |
| 397 |
}, |
| 398 |
{ |
| 399 |
"type": "...gax.CallOption", |
| 400 |
"name": "opts" |
| 401 |
} |
| 402 |
], |
| 403 |
"client": { |
| 404 |
"shortName": "Client", |
| 405 |
"fullName": "google.cloud.gsuiteaddons.v1.Client" |
| 406 |
}, |
| 407 |
"method": { |
| 408 |
"shortName": "UninstallDeployment", |
| 409 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", |
| 410 |
"service": { |
| 411 |
"shortName": "GSuiteAddOns", |
| 412 |
"fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" |
| 413 |
} |
| 414 |
} |
| 415 |
}, |
| 416 |
"origin": "API_DEFINITION", |
| 417 |
"segments": [ |
| 418 |
{ |
| 419 |
"start": 18, |
| 420 |
"end": 51, |
| 421 |
"type": "FULL" |
| 422 |
} |
| 423 |
] |
| 424 |
} |
| 425 |
] |
| 426 |
} |