| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/redis/cluster/apiv1", |
| 4 |
"version": "1.18.2", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.redis.cluster.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "redis_v1_generated_CloudRedisCluster_BackupCluster_sync", |
| 16 |
"title": "redis BackupCluster Sample", |
| 17 |
"description": "BackupCluster backup Redis Cluster.\nIf this is the first time a backup is being created, a backup collection\nwill be created at the backend, and this backup belongs to this collection.\nBoth collection and backup will have a resource name. Backup will be\nexecuted for each shard. A replica (primary if nonHA) will be selected to\nperform the execution. Backup call will be rejected if there is an ongoing\nbackup or update operation. Be aware that during preview, if the cluster's\ninternal software version is too old, critical update will be performed\nbefore actual backup. Once the internal software version is updated to the\nminimum version required by the backup feature, subsequent backups will not\nrequire critical update. After preview, there will be no critical update\nneeded for backup.", |
| 18 |
"file": "CloudRedisClusterClient/BackupCluster/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "BackupCluster", |
| 22 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.BackupCluster", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "clusterpb.BackupClusterRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "BackupClusterOperation", |
| 38 |
"client": { |
| 39 |
"shortName": "CloudRedisClusterClient", |
| 40 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "BackupCluster", |
| 44 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.BackupCluster", |
| 45 |
"service": { |
| 46 |
"shortName": "CloudRedisCluster", |
| 47 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"origin": "API_DEFINITION", |
| 52 |
"segments": [ |
| 53 |
{ |
| 54 |
"start": 18, |
| 55 |
"end": 58, |
| 56 |
"type": "FULL" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
{ |
| 61 |
"regionTag": "redis_v1_generated_CloudRedisCluster_CancelOperation_sync", |
| 62 |
"title": "redis CancelOperation Sample", |
| 63 |
"description": "CancelOperation is a utility method from google.longrunning.Operations.", |
| 64 |
"file": "CloudRedisClusterClient/CancelOperation/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "CancelOperation", |
| 68 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.CancelOperation", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "longrunningpb.CancelOperationRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"client": { |
| 84 |
"shortName": "CloudRedisClusterClient", |
| 85 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 86 |
}, |
| 87 |
"method": { |
| 88 |
"shortName": "CancelOperation", |
| 89 |
"fullName": "google.longrunning.Operations.CancelOperation", |
| 90 |
"service": { |
| 91 |
"shortName": "Operations", |
| 92 |
"fullName": "google.longrunning.Operations" |
| 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": "redis_v1_generated_CloudRedisCluster_CreateCluster_sync", |
| 107 |
"title": "redis CreateCluster Sample", |
| 108 |
"description": "CreateCluster creates a Redis cluster based on the specified properties.\nThe creation is executed asynchronously and callers may check the returned\noperation to track its progress. Once the operation is completed the Redis\ncluster will be fully functional. The completed longrunning.Operation will\ncontain the new cluster object in the response field.\n\nThe returned operation is automatically deleted after a few hours, so there\nis no need to call DeleteOperation.", |
| 109 |
"file": "CloudRedisClusterClient/CreateCluster/main.go", |
| 110 |
"language": "GO", |
| 111 |
"clientMethod": { |
| 112 |
"shortName": "CreateCluster", |
| 113 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.CreateCluster", |
| 114 |
"parameters": [ |
| 115 |
{ |
| 116 |
"type": "context.Context", |
| 117 |
"name": "ctx" |
| 118 |
}, |
| 119 |
{ |
| 120 |
"type": "clusterpb.CreateClusterRequest", |
| 121 |
"name": "req" |
| 122 |
}, |
| 123 |
{ |
| 124 |
"type": "...gax.CallOption", |
| 125 |
"name": "opts" |
| 126 |
} |
| 127 |
], |
| 128 |
"resultType": "CreateClusterOperation", |
| 129 |
"client": { |
| 130 |
"shortName": "CloudRedisClusterClient", |
| 131 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 132 |
}, |
| 133 |
"method": { |
| 134 |
"shortName": "CreateCluster", |
| 135 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.CreateCluster", |
| 136 |
"service": { |
| 137 |
"shortName": "CloudRedisCluster", |
| 138 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 139 |
} |
| 140 |
} |
| 141 |
}, |
| 142 |
"origin": "API_DEFINITION", |
| 143 |
"segments": [ |
| 144 |
{ |
| 145 |
"start": 18, |
| 146 |
"end": 58, |
| 147 |
"type": "FULL" |
| 148 |
} |
| 149 |
] |
| 150 |
}, |
| 151 |
{ |
| 152 |
"regionTag": "redis_v1_generated_CloudRedisCluster_DeleteBackup_sync", |
| 153 |
"title": "redis DeleteBackup Sample", |
| 154 |
"description": "DeleteBackup deletes a specific backup.", |
| 155 |
"file": "CloudRedisClusterClient/DeleteBackup/main.go", |
| 156 |
"language": "GO", |
| 157 |
"clientMethod": { |
| 158 |
"shortName": "DeleteBackup", |
| 159 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.DeleteBackup", |
| 160 |
"parameters": [ |
| 161 |
{ |
| 162 |
"type": "context.Context", |
| 163 |
"name": "ctx" |
| 164 |
}, |
| 165 |
{ |
| 166 |
"type": "clusterpb.DeleteBackupRequest", |
| 167 |
"name": "req" |
| 168 |
}, |
| 169 |
{ |
| 170 |
"type": "...gax.CallOption", |
| 171 |
"name": "opts" |
| 172 |
} |
| 173 |
], |
| 174 |
"resultType": "DeleteBackupOperation", |
| 175 |
"client": { |
| 176 |
"shortName": "CloudRedisClusterClient", |
| 177 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 178 |
}, |
| 179 |
"method": { |
| 180 |
"shortName": "DeleteBackup", |
| 181 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteBackup", |
| 182 |
"service": { |
| 183 |
"shortName": "CloudRedisCluster", |
| 184 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 185 |
} |
| 186 |
} |
| 187 |
}, |
| 188 |
"origin": "API_DEFINITION", |
| 189 |
"segments": [ |
| 190 |
{ |
| 191 |
"start": 18, |
| 192 |
"end": 56, |
| 193 |
"type": "FULL" |
| 194 |
} |
| 195 |
] |
| 196 |
}, |
| 197 |
{ |
| 198 |
"regionTag": "redis_v1_generated_CloudRedisCluster_DeleteCluster_sync", |
| 199 |
"title": "redis DeleteCluster Sample", |
| 200 |
"description": "DeleteCluster deletes a specific Redis cluster. Cluster stops serving and data is\ndeleted.", |
| 201 |
"file": "CloudRedisClusterClient/DeleteCluster/main.go", |
| 202 |
"language": "GO", |
| 203 |
"clientMethod": { |
| 204 |
"shortName": "DeleteCluster", |
| 205 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.DeleteCluster", |
| 206 |
"parameters": [ |
| 207 |
{ |
| 208 |
"type": "context.Context", |
| 209 |
"name": "ctx" |
| 210 |
}, |
| 211 |
{ |
| 212 |
"type": "clusterpb.DeleteClusterRequest", |
| 213 |
"name": "req" |
| 214 |
}, |
| 215 |
{ |
| 216 |
"type": "...gax.CallOption", |
| 217 |
"name": "opts" |
| 218 |
} |
| 219 |
], |
| 220 |
"resultType": "DeleteClusterOperation", |
| 221 |
"client": { |
| 222 |
"shortName": "CloudRedisClusterClient", |
| 223 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 224 |
}, |
| 225 |
"method": { |
| 226 |
"shortName": "DeleteCluster", |
| 227 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteCluster", |
| 228 |
"service": { |
| 229 |
"shortName": "CloudRedisCluster", |
| 230 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 231 |
} |
| 232 |
} |
| 233 |
}, |
| 234 |
"origin": "API_DEFINITION", |
| 235 |
"segments": [ |
| 236 |
{ |
| 237 |
"start": 18, |
| 238 |
"end": 56, |
| 239 |
"type": "FULL" |
| 240 |
} |
| 241 |
] |
| 242 |
}, |
| 243 |
{ |
| 244 |
"regionTag": "redis_v1_generated_CloudRedisCluster_DeleteOperation_sync", |
| 245 |
"title": "redis DeleteOperation Sample", |
| 246 |
"description": "DeleteOperation is a utility method from google.longrunning.Operations.", |
| 247 |
"file": "CloudRedisClusterClient/DeleteOperation/main.go", |
| 248 |
"language": "GO", |
| 249 |
"clientMethod": { |
| 250 |
"shortName": "DeleteOperation", |
| 251 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.DeleteOperation", |
| 252 |
"parameters": [ |
| 253 |
{ |
| 254 |
"type": "context.Context", |
| 255 |
"name": "ctx" |
| 256 |
}, |
| 257 |
{ |
| 258 |
"type": "longrunningpb.DeleteOperationRequest", |
| 259 |
"name": "req" |
| 260 |
}, |
| 261 |
{ |
| 262 |
"type": "...gax.CallOption", |
| 263 |
"name": "opts" |
| 264 |
} |
| 265 |
], |
| 266 |
"client": { |
| 267 |
"shortName": "CloudRedisClusterClient", |
| 268 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 269 |
}, |
| 270 |
"method": { |
| 271 |
"shortName": "DeleteOperation", |
| 272 |
"fullName": "google.longrunning.Operations.DeleteOperation", |
| 273 |
"service": { |
| 274 |
"shortName": "Operations", |
| 275 |
"fullName": "google.longrunning.Operations" |
| 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": "redis_v1_generated_CloudRedisCluster_ExportBackup_sync", |
| 290 |
"title": "redis ExportBackup Sample", |
| 291 |
"description": "ExportBackup exports a specific backup to a customer target Cloud Storage URI.", |
| 292 |
"file": "CloudRedisClusterClient/ExportBackup/main.go", |
| 293 |
"language": "GO", |
| 294 |
"clientMethod": { |
| 295 |
"shortName": "ExportBackup", |
| 296 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ExportBackup", |
| 297 |
"parameters": [ |
| 298 |
{ |
| 299 |
"type": "context.Context", |
| 300 |
"name": "ctx" |
| 301 |
}, |
| 302 |
{ |
| 303 |
"type": "clusterpb.ExportBackupRequest", |
| 304 |
"name": "req" |
| 305 |
}, |
| 306 |
{ |
| 307 |
"type": "...gax.CallOption", |
| 308 |
"name": "opts" |
| 309 |
} |
| 310 |
], |
| 311 |
"resultType": "ExportBackupOperation", |
| 312 |
"client": { |
| 313 |
"shortName": "CloudRedisClusterClient", |
| 314 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 315 |
}, |
| 316 |
"method": { |
| 317 |
"shortName": "ExportBackup", |
| 318 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ExportBackup", |
| 319 |
"service": { |
| 320 |
"shortName": "CloudRedisCluster", |
| 321 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 322 |
} |
| 323 |
} |
| 324 |
}, |
| 325 |
"origin": "API_DEFINITION", |
| 326 |
"segments": [ |
| 327 |
{ |
| 328 |
"start": 18, |
| 329 |
"end": 58, |
| 330 |
"type": "FULL" |
| 331 |
} |
| 332 |
] |
| 333 |
}, |
| 334 |
{ |
| 335 |
"regionTag": "redis_v1_generated_CloudRedisCluster_GetBackup_sync", |
| 336 |
"title": "redis GetBackup Sample", |
| 337 |
"description": "GetBackup gets the details of a specific backup.", |
| 338 |
"file": "CloudRedisClusterClient/GetBackup/main.go", |
| 339 |
"language": "GO", |
| 340 |
"clientMethod": { |
| 341 |
"shortName": "GetBackup", |
| 342 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetBackup", |
| 343 |
"parameters": [ |
| 344 |
{ |
| 345 |
"type": "context.Context", |
| 346 |
"name": "ctx" |
| 347 |
}, |
| 348 |
{ |
| 349 |
"type": "clusterpb.GetBackupRequest", |
| 350 |
"name": "req" |
| 351 |
}, |
| 352 |
{ |
| 353 |
"type": "...gax.CallOption", |
| 354 |
"name": "opts" |
| 355 |
} |
| 356 |
], |
| 357 |
"resultType": "*clusterpb.Backup", |
| 358 |
"client": { |
| 359 |
"shortName": "CloudRedisClusterClient", |
| 360 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 361 |
}, |
| 362 |
"method": { |
| 363 |
"shortName": "GetBackup", |
| 364 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackup", |
| 365 |
"service": { |
| 366 |
"shortName": "CloudRedisCluster", |
| 367 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 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": "redis_v1_generated_CloudRedisCluster_GetBackupCollection_sync", |
| 382 |
"title": "redis GetBackupCollection Sample", |
| 383 |
"description": "GetBackupCollection get a backup collection.", |
| 384 |
"file": "CloudRedisClusterClient/GetBackupCollection/main.go", |
| 385 |
"language": "GO", |
| 386 |
"clientMethod": { |
| 387 |
"shortName": "GetBackupCollection", |
| 388 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetBackupCollection", |
| 389 |
"parameters": [ |
| 390 |
{ |
| 391 |
"type": "context.Context", |
| 392 |
"name": "ctx" |
| 393 |
}, |
| 394 |
{ |
| 395 |
"type": "clusterpb.GetBackupCollectionRequest", |
| 396 |
"name": "req" |
| 397 |
}, |
| 398 |
{ |
| 399 |
"type": "...gax.CallOption", |
| 400 |
"name": "opts" |
| 401 |
} |
| 402 |
], |
| 403 |
"resultType": "*clusterpb.BackupCollection", |
| 404 |
"client": { |
| 405 |
"shortName": "CloudRedisClusterClient", |
| 406 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 407 |
}, |
| 408 |
"method": { |
| 409 |
"shortName": "GetBackupCollection", |
| 410 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackupCollection", |
| 411 |
"service": { |
| 412 |
"shortName": "CloudRedisCluster", |
| 413 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 414 |
} |
| 415 |
} |
| 416 |
}, |
| 417 |
"origin": "API_DEFINITION", |
| 418 |
"segments": [ |
| 419 |
{ |
| 420 |
"start": 18, |
| 421 |
"end": 53, |
| 422 |
"type": "FULL" |
| 423 |
} |
| 424 |
] |
| 425 |
}, |
| 426 |
{ |
| 427 |
"regionTag": "redis_v1_generated_CloudRedisCluster_GetCluster_sync", |
| 428 |
"title": "redis GetCluster Sample", |
| 429 |
"description": "GetCluster gets the details of a specific Redis cluster.", |
| 430 |
"file": "CloudRedisClusterClient/GetCluster/main.go", |
| 431 |
"language": "GO", |
| 432 |
"clientMethod": { |
| 433 |
"shortName": "GetCluster", |
| 434 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetCluster", |
| 435 |
"parameters": [ |
| 436 |
{ |
| 437 |
"type": "context.Context", |
| 438 |
"name": "ctx" |
| 439 |
}, |
| 440 |
{ |
| 441 |
"type": "clusterpb.GetClusterRequest", |
| 442 |
"name": "req" |
| 443 |
}, |
| 444 |
{ |
| 445 |
"type": "...gax.CallOption", |
| 446 |
"name": "opts" |
| 447 |
} |
| 448 |
], |
| 449 |
"resultType": "*clusterpb.Cluster", |
| 450 |
"client": { |
| 451 |
"shortName": "CloudRedisClusterClient", |
| 452 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 453 |
}, |
| 454 |
"method": { |
| 455 |
"shortName": "GetCluster", |
| 456 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetCluster", |
| 457 |
"service": { |
| 458 |
"shortName": "CloudRedisCluster", |
| 459 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 460 |
} |
| 461 |
} |
| 462 |
}, |
| 463 |
"origin": "API_DEFINITION", |
| 464 |
"segments": [ |
| 465 |
{ |
| 466 |
"start": 18, |
| 467 |
"end": 53, |
| 468 |
"type": "FULL" |
| 469 |
} |
| 470 |
] |
| 471 |
}, |
| 472 |
{ |
| 473 |
"regionTag": "redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_sync", |
| 474 |
"title": "redis GetClusterCertificateAuthority Sample", |
| 475 |
"description": "GetClusterCertificateAuthority gets the details of certificate authority information for Redis cluster.", |
| 476 |
"file": "CloudRedisClusterClient/GetClusterCertificateAuthority/main.go", |
| 477 |
"language": "GO", |
| 478 |
"clientMethod": { |
| 479 |
"shortName": "GetClusterCertificateAuthority", |
| 480 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetClusterCertificateAuthority", |
| 481 |
"parameters": [ |
| 482 |
{ |
| 483 |
"type": "context.Context", |
| 484 |
"name": "ctx" |
| 485 |
}, |
| 486 |
{ |
| 487 |
"type": "clusterpb.GetClusterCertificateAuthorityRequest", |
| 488 |
"name": "req" |
| 489 |
}, |
| 490 |
{ |
| 491 |
"type": "...gax.CallOption", |
| 492 |
"name": "opts" |
| 493 |
} |
| 494 |
], |
| 495 |
"resultType": "*clusterpb.CertificateAuthority", |
| 496 |
"client": { |
| 497 |
"shortName": "CloudRedisClusterClient", |
| 498 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 499 |
}, |
| 500 |
"method": { |
| 501 |
"shortName": "GetClusterCertificateAuthority", |
| 502 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetClusterCertificateAuthority", |
| 503 |
"service": { |
| 504 |
"shortName": "CloudRedisCluster", |
| 505 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 506 |
} |
| 507 |
} |
| 508 |
}, |
| 509 |
"origin": "API_DEFINITION", |
| 510 |
"segments": [ |
| 511 |
{ |
| 512 |
"start": 18, |
| 513 |
"end": 53, |
| 514 |
"type": "FULL" |
| 515 |
} |
| 516 |
] |
| 517 |
}, |
| 518 |
{ |
| 519 |
"regionTag": "redis_v1_generated_CloudRedisCluster_GetLocation_sync", |
| 520 |
"title": "redis GetLocation Sample", |
| 521 |
"description": "GetLocation gets information about a location.", |
| 522 |
"file": "CloudRedisClusterClient/GetLocation/main.go", |
| 523 |
"language": "GO", |
| 524 |
"clientMethod": { |
| 525 |
"shortName": "GetLocation", |
| 526 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetLocation", |
| 527 |
"parameters": [ |
| 528 |
{ |
| 529 |
"type": "context.Context", |
| 530 |
"name": "ctx" |
| 531 |
}, |
| 532 |
{ |
| 533 |
"type": "locationpb.GetLocationRequest", |
| 534 |
"name": "req" |
| 535 |
}, |
| 536 |
{ |
| 537 |
"type": "...gax.CallOption", |
| 538 |
"name": "opts" |
| 539 |
} |
| 540 |
], |
| 541 |
"resultType": "*locationpb.Location", |
| 542 |
"client": { |
| 543 |
"shortName": "CloudRedisClusterClient", |
| 544 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 545 |
}, |
| 546 |
"method": { |
| 547 |
"shortName": "GetLocation", |
| 548 |
"fullName": "google.cloud.location.Locations.GetLocation", |
| 549 |
"service": { |
| 550 |
"shortName": "Locations", |
| 551 |
"fullName": "google.cloud.location.Locations" |
| 552 |
} |
| 553 |
} |
| 554 |
}, |
| 555 |
"origin": "API_DEFINITION", |
| 556 |
"segments": [ |
| 557 |
{ |
| 558 |
"start": 18, |
| 559 |
"end": 53, |
| 560 |
"type": "FULL" |
| 561 |
} |
| 562 |
] |
| 563 |
}, |
| 564 |
{ |
| 565 |
"regionTag": "redis_v1_generated_CloudRedisCluster_GetOperation_sync", |
| 566 |
"title": "redis GetOperation Sample", |
| 567 |
"description": "GetOperation is a utility method from google.longrunning.Operations.", |
| 568 |
"file": "CloudRedisClusterClient/GetOperation/main.go", |
| 569 |
"language": "GO", |
| 570 |
"clientMethod": { |
| 571 |
"shortName": "GetOperation", |
| 572 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.GetOperation", |
| 573 |
"parameters": [ |
| 574 |
{ |
| 575 |
"type": "context.Context", |
| 576 |
"name": "ctx" |
| 577 |
}, |
| 578 |
{ |
| 579 |
"type": "longrunningpb.GetOperationRequest", |
| 580 |
"name": "req" |
| 581 |
}, |
| 582 |
{ |
| 583 |
"type": "...gax.CallOption", |
| 584 |
"name": "opts" |
| 585 |
} |
| 586 |
], |
| 587 |
"resultType": "*longrunningpb.Operation", |
| 588 |
"client": { |
| 589 |
"shortName": "CloudRedisClusterClient", |
| 590 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 591 |
}, |
| 592 |
"method": { |
| 593 |
"shortName": "GetOperation", |
| 594 |
"fullName": "google.longrunning.Operations.GetOperation", |
| 595 |
"service": { |
| 596 |
"shortName": "Operations", |
| 597 |
"fullName": "google.longrunning.Operations" |
| 598 |
} |
| 599 |
} |
| 600 |
}, |
| 601 |
"origin": "API_DEFINITION", |
| 602 |
"segments": [ |
| 603 |
{ |
| 604 |
"start": 18, |
| 605 |
"end": 53, |
| 606 |
"type": "FULL" |
| 607 |
} |
| 608 |
] |
| 609 |
}, |
| 610 |
{ |
| 611 |
"regionTag": "redis_v1_generated_CloudRedisCluster_ListBackupCollections_sync", |
| 612 |
"title": "redis ListBackupCollections Sample", |
| 613 |
"description": "ListBackupCollections lists all backup collections owned by a consumer project in either the\nspecified location (region) or all locations.\n\nIf `location_id` is specified as `-` (wildcard), then all regions\navailable to the project are queried, and the results are aggregated.", |
| 614 |
"file": "CloudRedisClusterClient/ListBackupCollections/main.go", |
| 615 |
"language": "GO", |
| 616 |
"clientMethod": { |
| 617 |
"shortName": "ListBackupCollections", |
| 618 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollections", |
| 619 |
"parameters": [ |
| 620 |
{ |
| 621 |
"type": "context.Context", |
| 622 |
"name": "ctx" |
| 623 |
}, |
| 624 |
{ |
| 625 |
"type": "clusterpb.ListBackupCollectionsRequest", |
| 626 |
"name": "req" |
| 627 |
}, |
| 628 |
{ |
| 629 |
"type": "...gax.CallOption", |
| 630 |
"name": "opts" |
| 631 |
} |
| 632 |
], |
| 633 |
"resultType": "BackupCollectionIterator", |
| 634 |
"client": { |
| 635 |
"shortName": "CloudRedisClusterClient", |
| 636 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 637 |
}, |
| 638 |
"method": { |
| 639 |
"shortName": "ListBackupCollections", |
| 640 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackupCollections", |
| 641 |
"service": { |
| 642 |
"shortName": "CloudRedisCluster", |
| 643 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 644 |
} |
| 645 |
} |
| 646 |
}, |
| 647 |
"origin": "API_DEFINITION", |
| 648 |
"segments": [ |
| 649 |
{ |
| 650 |
"start": 18, |
| 651 |
"end": 66, |
| 652 |
"type": "FULL" |
| 653 |
} |
| 654 |
] |
| 655 |
}, |
| 656 |
{ |
| 657 |
"regionTag": "redis_v1_generated_CloudRedisCluster_ListBackups_sync", |
| 658 |
"title": "redis ListBackups Sample", |
| 659 |
"description": "ListBackups lists all backups owned by a backup collection.", |
| 660 |
"file": "CloudRedisClusterClient/ListBackups/main.go", |
| 661 |
"language": "GO", |
| 662 |
"clientMethod": { |
| 663 |
"shortName": "ListBackups", |
| 664 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackups", |
| 665 |
"parameters": [ |
| 666 |
{ |
| 667 |
"type": "context.Context", |
| 668 |
"name": "ctx" |
| 669 |
}, |
| 670 |
{ |
| 671 |
"type": "clusterpb.ListBackupsRequest", |
| 672 |
"name": "req" |
| 673 |
}, |
| 674 |
{ |
| 675 |
"type": "...gax.CallOption", |
| 676 |
"name": "opts" |
| 677 |
} |
| 678 |
], |
| 679 |
"resultType": "BackupIterator", |
| 680 |
"client": { |
| 681 |
"shortName": "CloudRedisClusterClient", |
| 682 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 683 |
}, |
| 684 |
"method": { |
| 685 |
"shortName": "ListBackups", |
| 686 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackups", |
| 687 |
"service": { |
| 688 |
"shortName": "CloudRedisCluster", |
| 689 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 690 |
} |
| 691 |
} |
| 692 |
}, |
| 693 |
"origin": "API_DEFINITION", |
| 694 |
"segments": [ |
| 695 |
{ |
| 696 |
"start": 18, |
| 697 |
"end": 66, |
| 698 |
"type": "FULL" |
| 699 |
} |
| 700 |
] |
| 701 |
}, |
| 702 |
{ |
| 703 |
"regionTag": "redis_v1_generated_CloudRedisCluster_ListClusters_sync", |
| 704 |
"title": "redis ListClusters Sample", |
| 705 |
"description": "ListClusters lists all Redis clusters owned by a project in either the specified\nlocation (region) or all locations.\n\nThe location should have the following format: \n\n* `projects/{project_id}/locations/{location_id}`\n\nIf `location_id` is specified as `-` (wildcard), then all regions\navailable to the project are queried, and the results are aggregated.", |
| 706 |
"file": "CloudRedisClusterClient/ListClusters/main.go", |
| 707 |
"language": "GO", |
| 708 |
"clientMethod": { |
| 709 |
"shortName": "ListClusters", |
| 710 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClusters", |
| 711 |
"parameters": [ |
| 712 |
{ |
| 713 |
"type": "context.Context", |
| 714 |
"name": "ctx" |
| 715 |
}, |
| 716 |
{ |
| 717 |
"type": "clusterpb.ListClustersRequest", |
| 718 |
"name": "req" |
| 719 |
}, |
| 720 |
{ |
| 721 |
"type": "...gax.CallOption", |
| 722 |
"name": "opts" |
| 723 |
} |
| 724 |
], |
| 725 |
"resultType": "ClusterIterator", |
| 726 |
"client": { |
| 727 |
"shortName": "CloudRedisClusterClient", |
| 728 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 729 |
}, |
| 730 |
"method": { |
| 731 |
"shortName": "ListClusters", |
| 732 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListClusters", |
| 733 |
"service": { |
| 734 |
"shortName": "CloudRedisCluster", |
| 735 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 736 |
} |
| 737 |
} |
| 738 |
}, |
| 739 |
"origin": "API_DEFINITION", |
| 740 |
"segments": [ |
| 741 |
{ |
| 742 |
"start": 18, |
| 743 |
"end": 66, |
| 744 |
"type": "FULL" |
| 745 |
} |
| 746 |
] |
| 747 |
}, |
| 748 |
{ |
| 749 |
"regionTag": "redis_v1_generated_CloudRedisCluster_ListLocations_sync", |
| 750 |
"title": "redis ListLocations Sample", |
| 751 |
"description": "ListLocations lists information about the supported locations for this service.", |
| 752 |
"file": "CloudRedisClusterClient/ListLocations/main.go", |
| 753 |
"language": "GO", |
| 754 |
"clientMethod": { |
| 755 |
"shortName": "ListLocations", |
| 756 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocations", |
| 757 |
"parameters": [ |
| 758 |
{ |
| 759 |
"type": "context.Context", |
| 760 |
"name": "ctx" |
| 761 |
}, |
| 762 |
{ |
| 763 |
"type": "locationpb.ListLocationsRequest", |
| 764 |
"name": "req" |
| 765 |
}, |
| 766 |
{ |
| 767 |
"type": "...gax.CallOption", |
| 768 |
"name": "opts" |
| 769 |
} |
| 770 |
], |
| 771 |
"resultType": "LocationIterator", |
| 772 |
"client": { |
| 773 |
"shortName": "CloudRedisClusterClient", |
| 774 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 775 |
}, |
| 776 |
"method": { |
| 777 |
"shortName": "ListLocations", |
| 778 |
"fullName": "google.cloud.location.Locations.ListLocations", |
| 779 |
"service": { |
| 780 |
"shortName": "Locations", |
| 781 |
"fullName": "google.cloud.location.Locations" |
| 782 |
} |
| 783 |
} |
| 784 |
}, |
| 785 |
"origin": "API_DEFINITION", |
| 786 |
"segments": [ |
| 787 |
{ |
| 788 |
"start": 18, |
| 789 |
"end": 66, |
| 790 |
"type": "FULL" |
| 791 |
} |
| 792 |
] |
| 793 |
}, |
| 794 |
{ |
| 795 |
"regionTag": "redis_v1_generated_CloudRedisCluster_ListOperations_sync", |
| 796 |
"title": "redis ListOperations Sample", |
| 797 |
"description": "ListOperations is a utility method from google.longrunning.Operations.", |
| 798 |
"file": "CloudRedisClusterClient/ListOperations/main.go", |
| 799 |
"language": "GO", |
| 800 |
"clientMethod": { |
| 801 |
"shortName": "ListOperations", |
| 802 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListOperations", |
| 803 |
"parameters": [ |
| 804 |
{ |
| 805 |
"type": "context.Context", |
| 806 |
"name": "ctx" |
| 807 |
}, |
| 808 |
{ |
| 809 |
"type": "longrunningpb.ListOperationsRequest", |
| 810 |
"name": "req" |
| 811 |
}, |
| 812 |
{ |
| 813 |
"type": "...gax.CallOption", |
| 814 |
"name": "opts" |
| 815 |
} |
| 816 |
], |
| 817 |
"resultType": "OperationIterator", |
| 818 |
"client": { |
| 819 |
"shortName": "CloudRedisClusterClient", |
| 820 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 821 |
}, |
| 822 |
"method": { |
| 823 |
"shortName": "ListOperations", |
| 824 |
"fullName": "google.longrunning.Operations.ListOperations", |
| 825 |
"service": { |
| 826 |
"shortName": "Operations", |
| 827 |
"fullName": "google.longrunning.Operations" |
| 828 |
} |
| 829 |
} |
| 830 |
}, |
| 831 |
"origin": "API_DEFINITION", |
| 832 |
"segments": [ |
| 833 |
{ |
| 834 |
"start": 18, |
| 835 |
"end": 66, |
| 836 |
"type": "FULL" |
| 837 |
} |
| 838 |
] |
| 839 |
}, |
| 840 |
{ |
| 841 |
"regionTag": "redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_sync", |
| 842 |
"title": "redis RescheduleClusterMaintenance Sample", |
| 843 |
"description": "RescheduleClusterMaintenance reschedules upcoming maintenance event.", |
| 844 |
"file": "CloudRedisClusterClient/RescheduleClusterMaintenance/main.go", |
| 845 |
"language": "GO", |
| 846 |
"clientMethod": { |
| 847 |
"shortName": "RescheduleClusterMaintenance", |
| 848 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.RescheduleClusterMaintenance", |
| 849 |
"parameters": [ |
| 850 |
{ |
| 851 |
"type": "context.Context", |
| 852 |
"name": "ctx" |
| 853 |
}, |
| 854 |
{ |
| 855 |
"type": "clusterpb.RescheduleClusterMaintenanceRequest", |
| 856 |
"name": "req" |
| 857 |
}, |
| 858 |
{ |
| 859 |
"type": "...gax.CallOption", |
| 860 |
"name": "opts" |
| 861 |
} |
| 862 |
], |
| 863 |
"resultType": "RescheduleClusterMaintenanceOperation", |
| 864 |
"client": { |
| 865 |
"shortName": "CloudRedisClusterClient", |
| 866 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 867 |
}, |
| 868 |
"method": { |
| 869 |
"shortName": "RescheduleClusterMaintenance", |
| 870 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.RescheduleClusterMaintenance", |
| 871 |
"service": { |
| 872 |
"shortName": "CloudRedisCluster", |
| 873 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 874 |
} |
| 875 |
} |
| 876 |
}, |
| 877 |
"origin": "API_DEFINITION", |
| 878 |
"segments": [ |
| 879 |
{ |
| 880 |
"start": 18, |
| 881 |
"end": 58, |
| 882 |
"type": "FULL" |
| 883 |
} |
| 884 |
] |
| 885 |
}, |
| 886 |
{ |
| 887 |
"regionTag": "redis_v1_generated_CloudRedisCluster_UpdateCluster_sync", |
| 888 |
"title": "redis UpdateCluster Sample", |
| 889 |
"description": "UpdateCluster updates the metadata and configuration of a specific Redis cluster.\n\nCompleted longrunning.Operation will contain the new cluster object\nin the response field. The returned operation is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.", |
| 890 |
"file": "CloudRedisClusterClient/UpdateCluster/main.go", |
| 891 |
"language": "GO", |
| 892 |
"clientMethod": { |
| 893 |
"shortName": "UpdateCluster", |
| 894 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient.UpdateCluster", |
| 895 |
"parameters": [ |
| 896 |
{ |
| 897 |
"type": "context.Context", |
| 898 |
"name": "ctx" |
| 899 |
}, |
| 900 |
{ |
| 901 |
"type": "clusterpb.UpdateClusterRequest", |
| 902 |
"name": "req" |
| 903 |
}, |
| 904 |
{ |
| 905 |
"type": "...gax.CallOption", |
| 906 |
"name": "opts" |
| 907 |
} |
| 908 |
], |
| 909 |
"resultType": "UpdateClusterOperation", |
| 910 |
"client": { |
| 911 |
"shortName": "CloudRedisClusterClient", |
| 912 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" |
| 913 |
}, |
| 914 |
"method": { |
| 915 |
"shortName": "UpdateCluster", |
| 916 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.UpdateCluster", |
| 917 |
"service": { |
| 918 |
"shortName": "CloudRedisCluster", |
| 919 |
"fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" |
| 920 |
} |
| 921 |
} |
| 922 |
}, |
| 923 |
"origin": "API_DEFINITION", |
| 924 |
"segments": [ |
| 925 |
{ |
| 926 |
"start": 18, |
| 927 |
"end": 58, |
| 928 |
"type": "FULL" |
| 929 |
} |
| 930 |
] |
| 931 |
} |
| 932 |
] |
| 933 |
} |