blob: 4f763e030cbac958d45c12467ad83aa5765f2697 [file] [log] [blame]
{
"clientLibrary": {
"name": "cloud.google.com/go/backupdr/apiv1",
"version": "0.1.1",
"language": "GO",
"apis": [
{
"id": "google.cloud.backupdr.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "backupdr_v1_generated_BackupDR_CancelOperation_sync",
"title": "backupdr CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "Client/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.backupdr.v1.Client.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.longrunning.Operations.CancelOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_CreateManagementServer_sync",
"title": "backupdr CreateManagementServer Sample",
"description": "CreateManagementServer creates a new ManagementServer in a given project and location.",
"file": "Client/CreateManagementServer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateManagementServer",
"fullName": "google.cloud.backupdr.v1.Client.CreateManagementServer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "backupdrpb.CreateManagementServerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateManagementServerOperation",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "CreateManagementServer",
"fullName": "google.cloud.backupdr.v1.BackupDR.CreateManagementServer",
"service": {
"shortName": "BackupDR",
"fullName": "google.cloud.backupdr.v1.BackupDR"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_DeleteManagementServer_sync",
"title": "backupdr DeleteManagementServer Sample",
"description": "DeleteManagementServer deletes a single ManagementServer.",
"file": "Client/DeleteManagementServer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteManagementServer",
"fullName": "google.cloud.backupdr.v1.Client.DeleteManagementServer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "backupdrpb.DeleteManagementServerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "DeleteManagementServerOperation",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "DeleteManagementServer",
"fullName": "google.cloud.backupdr.v1.BackupDR.DeleteManagementServer",
"service": {
"shortName": "BackupDR",
"fullName": "google.cloud.backupdr.v1.BackupDR"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_DeleteOperation_sync",
"title": "backupdr DeleteOperation Sample",
"description": "DeleteOperation is a utility method from google.longrunning.Operations.",
"file": "Client/DeleteOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteOperation",
"fullName": "google.cloud.backupdr.v1.Client.DeleteOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.DeleteOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "DeleteOperation",
"fullName": "google.longrunning.Operations.DeleteOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_GetIamPolicy_sync",
"title": "backupdr GetIamPolicy Sample",
"description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.",
"file": "Client/GetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetIamPolicy",
"fullName": "google.cloud.backupdr.v1.Client.GetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.GetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "GetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_GetLocation_sync",
"title": "backupdr GetLocation Sample",
"description": "GetLocation gets information about a location.",
"file": "Client/GetLocation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetLocation",
"fullName": "google.cloud.backupdr.v1.Client.GetLocation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.GetLocationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*locationpb.Location",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "GetLocation",
"fullName": "google.cloud.location.Locations.GetLocation",
"service": {
"shortName": "Locations",
"fullName": "google.cloud.location.Locations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_GetManagementServer_sync",
"title": "backupdr GetManagementServer Sample",
"description": "GetManagementServer gets details of a single ManagementServer.",
"file": "Client/GetManagementServer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetManagementServer",
"fullName": "google.cloud.backupdr.v1.Client.GetManagementServer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "backupdrpb.GetManagementServerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*backupdrpb.ManagementServer",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "GetManagementServer",
"fullName": "google.cloud.backupdr.v1.BackupDR.GetManagementServer",
"service": {
"shortName": "BackupDR",
"fullName": "google.cloud.backupdr.v1.BackupDR"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_GetOperation_sync",
"title": "backupdr GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "Client/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.backupdr.v1.Client.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*longrunningpb.Operation",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.longrunning.Operations.GetOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_ListLocations_sync",
"title": "backupdr ListLocations Sample",
"description": "ListLocations lists information about the supported locations for this service.",
"file": "Client/ListLocations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListLocations",
"fullName": "google.cloud.backupdr.v1.Client.ListLocations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "locationpb.ListLocationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "LocationIterator",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "ListLocations",
"fullName": "google.cloud.location.Locations.ListLocations",
"service": {
"shortName": "Locations",
"fullName": "google.cloud.location.Locations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_ListManagementServers_sync",
"title": "backupdr ListManagementServers Sample",
"description": "ListManagementServers lists ManagementServers in a given project and location.",
"file": "Client/ListManagementServers/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListManagementServers",
"fullName": "google.cloud.backupdr.v1.Client.ListManagementServers",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "backupdrpb.ListManagementServersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ManagementServerIterator",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "ListManagementServers",
"fullName": "google.cloud.backupdr.v1.BackupDR.ListManagementServers",
"service": {
"shortName": "BackupDR",
"fullName": "google.cloud.backupdr.v1.BackupDR"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_ListOperations_sync",
"title": "backupdr ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "Client/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.backupdr.v1.Client.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.longrunning.Operations.ListOperations",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 66,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_SetIamPolicy_sync",
"title": "backupdr SetIamPolicy Sample",
"description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.",
"file": "Client/SetIamPolicy/main.go",
"language": "GO",
"clientMethod": {
"shortName": "SetIamPolicy",
"fullName": "google.cloud.backupdr.v1.Client.SetIamPolicy",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.SetIamPolicyRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.Policy",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "SetIamPolicy",
"fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "backupdr_v1_generated_BackupDR_TestIamPermissions_sync",
"title": "backupdr TestIamPermissions Sample",
"description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.",
"file": "Client/TestIamPermissions/main.go",
"language": "GO",
"clientMethod": {
"shortName": "TestIamPermissions",
"fullName": "google.cloud.backupdr.v1.Client.TestIamPermissions",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "iampb.TestIamPermissionsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*iampb.TestIamPermissionsResponse",
"client": {
"shortName": "Client",
"fullName": "google.cloud.backupdr.v1.Client"
},
"method": {
"shortName": "TestIamPermissions",
"fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
"service": {
"shortName": "IAMPolicy",
"fullName": "google.iam.v1.IAMPolicy"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
}
]
}