{ "clientLibrary": { "name": "cloud.google.com/go/backupdr/apiv1", "version": "1.4.0", "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_CreateBackupPlan_sync", "title": "backupdr CreateBackupPlan Sample", "description": "CreateBackupPlan create a BackupPlan", "file": "Client/CreateBackupPlan/main.go", "language": "GO", "clientMethod": { "shortName": "CreateBackupPlan", "fullName": "google.cloud.backupdr.v1.Client.CreateBackupPlan", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.CreateBackupPlanRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateBackupPlanOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "CreateBackupPlan", "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlan", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_CreateBackupPlanAssociation_sync", "title": "backupdr CreateBackupPlanAssociation Sample", "description": "CreateBackupPlanAssociation create a BackupPlanAssociation", "file": "Client/CreateBackupPlanAssociation/main.go", "language": "GO", "clientMethod": { "shortName": "CreateBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.Client.CreateBackupPlanAssociation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.CreateBackupPlanAssociationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateBackupPlanAssociationOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "CreateBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlanAssociation", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_CreateBackupVault_sync", "title": "backupdr CreateBackupVault Sample", "description": "CreateBackupVault creates a new BackupVault in a given project and location.", "file": "Client/CreateBackupVault/main.go", "language": "GO", "clientMethod": { "shortName": "CreateBackupVault", "fullName": "google.cloud.backupdr.v1.Client.CreateBackupVault", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.CreateBackupVaultRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateBackupVaultOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "CreateBackupVault", "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupVault", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "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_DeleteBackup_sync", "title": "backupdr DeleteBackup Sample", "description": "DeleteBackup deletes a Backup.", "file": "Client/DeleteBackup/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteBackup", "fullName": "google.cloud.backupdr.v1.Client.DeleteBackup", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.DeleteBackupRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteBackupOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "DeleteBackup", "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackup", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupPlan_sync", "title": "backupdr DeleteBackupPlan Sample", "description": "DeleteBackupPlan deletes a single BackupPlan.", "file": "Client/DeleteBackupPlan/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteBackupPlan", "fullName": "google.cloud.backupdr.v1.Client.DeleteBackupPlan", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.DeleteBackupPlanRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteBackupPlanOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "DeleteBackupPlan", "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlan", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_sync", "title": "backupdr DeleteBackupPlanAssociation Sample", "description": "DeleteBackupPlanAssociation deletes a single BackupPlanAssociation.", "file": "Client/DeleteBackupPlanAssociation/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.Client.DeleteBackupPlanAssociation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.DeleteBackupPlanAssociationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteBackupPlanAssociationOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "DeleteBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlanAssociation", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupVault_sync", "title": "backupdr DeleteBackupVault Sample", "description": "DeleteBackupVault deletes a BackupVault.", "file": "Client/DeleteBackupVault/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteBackupVault", "fullName": "google.cloud.backupdr.v1.Client.DeleteBackupVault", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.DeleteBackupVaultRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteBackupVaultOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "DeleteBackupVault", "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupVault", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "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_FetchBackupPlanAssociationsForResourceType_sync", "title": "backupdr FetchBackupPlanAssociationsForResourceType Sample", "description": "FetchBackupPlanAssociationsForResourceType list BackupPlanAssociations for a given resource type.", "file": "Client/FetchBackupPlanAssociationsForResourceType/main.go", "language": "GO", "clientMethod": { "shortName": "FetchBackupPlanAssociationsForResourceType", "fullName": "google.cloud.backupdr.v1.Client.FetchBackupPlanAssociationsForResourceType", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.FetchBackupPlanAssociationsForResourceTypeRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupPlanAssociationIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "FetchBackupPlanAssociationsForResourceType", "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupPlanAssociationsForResourceType", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_FetchDataSourceReferencesForResourceType_sync", "title": "backupdr FetchDataSourceReferencesForResourceType Sample", "description": "FetchDataSourceReferencesForResourceType fetch DataSourceReferences for a given project, location and resource type.", "file": "Client/FetchDataSourceReferencesForResourceType/main.go", "language": "GO", "clientMethod": { "shortName": "FetchDataSourceReferencesForResourceType", "fullName": "google.cloud.backupdr.v1.Client.FetchDataSourceReferencesForResourceType", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.FetchDataSourceReferencesForResourceTypeRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DataSourceReferenceIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "FetchDataSourceReferencesForResourceType", "fullName": "google.cloud.backupdr.v1.BackupDR.FetchDataSourceReferencesForResourceType", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_FetchUsableBackupVaults_sync", "title": "backupdr FetchUsableBackupVaults Sample", "description": "FetchUsableBackupVaults fetchUsableBackupVaults lists usable BackupVaults in a given project and\nlocation. Usable BackupVault are the ones that user has\nbackupdr.backupVaults.get permission.", "file": "Client/FetchUsableBackupVaults/main.go", "language": "GO", "clientMethod": { "shortName": "FetchUsableBackupVaults", "fullName": "google.cloud.backupdr.v1.Client.FetchUsableBackupVaults", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.FetchUsableBackupVaultsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupVaultIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "FetchUsableBackupVaults", "fullName": "google.cloud.backupdr.v1.BackupDR.FetchUsableBackupVaults", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackup_sync", "title": "backupdr GetBackup Sample", "description": "GetBackup gets details of a Backup.", "file": "Client/GetBackup/main.go", "language": "GO", "clientMethod": { "shortName": "GetBackup", "fullName": "google.cloud.backupdr.v1.Client.GetBackup", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetBackupRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.Backup", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetBackup", "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackup", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlan_sync", "title": "backupdr GetBackupPlan Sample", "description": "GetBackupPlan gets details of a single BackupPlan.", "file": "Client/GetBackupPlan/main.go", "language": "GO", "clientMethod": { "shortName": "GetBackupPlan", "fullName": "google.cloud.backupdr.v1.Client.GetBackupPlan", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetBackupPlanRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.BackupPlan", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetBackupPlan", "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlan", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlanAssociation_sync", "title": "backupdr GetBackupPlanAssociation Sample", "description": "GetBackupPlanAssociation gets details of a single BackupPlanAssociation.", "file": "Client/GetBackupPlanAssociation/main.go", "language": "GO", "clientMethod": { "shortName": "GetBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.Client.GetBackupPlanAssociation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetBackupPlanAssociationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.BackupPlanAssociation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanAssociation", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlanRevision_sync", "title": "backupdr GetBackupPlanRevision Sample", "description": "GetBackupPlanRevision gets details of a single BackupPlanRevision.", "file": "Client/GetBackupPlanRevision/main.go", "language": "GO", "clientMethod": { "shortName": "GetBackupPlanRevision", "fullName": "google.cloud.backupdr.v1.Client.GetBackupPlanRevision", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetBackupPlanRevisionRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.BackupPlanRevision", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetBackupPlanRevision", "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanRevision", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetBackupVault_sync", "title": "backupdr GetBackupVault Sample", "description": "GetBackupVault gets details of a BackupVault.", "file": "Client/GetBackupVault/main.go", "language": "GO", "clientMethod": { "shortName": "GetBackupVault", "fullName": "google.cloud.backupdr.v1.Client.GetBackupVault", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetBackupVaultRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.BackupVault", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetBackupVault", "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupVault", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetDataSource_sync", "title": "backupdr GetDataSource Sample", "description": "GetDataSource gets details of a DataSource.", "file": "Client/GetDataSource/main.go", "language": "GO", "clientMethod": { "shortName": "GetDataSource", "fullName": "google.cloud.backupdr.v1.Client.GetDataSource", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetDataSourceRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.DataSource", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetDataSource", "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSource", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_GetDataSourceReference_sync", "title": "backupdr GetDataSourceReference Sample", "description": "GetDataSourceReference gets details of a single DataSourceReference.", "file": "Client/GetDataSourceReference/main.go", "language": "GO", "clientMethod": { "shortName": "GetDataSourceReference", "fullName": "google.cloud.backupdr.v1.Client.GetDataSourceReference", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.GetDataSourceReferenceRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*backupdrpb.DataSourceReference", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "GetDataSourceReference", "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSourceReference", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "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_InitializeService_sync", "title": "backupdr InitializeService Sample", "description": "InitializeService initializes the service related config for a project.", "file": "Client/InitializeService/main.go", "language": "GO", "clientMethod": { "shortName": "InitializeService", "fullName": "google.cloud.backupdr.v1.Client.InitializeService", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.InitializeServiceRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "InitializeServiceOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "InitializeService", "fullName": "google.cloud.backupdr.v1.BackupDR.InitializeService", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlanAssociations_sync", "title": "backupdr ListBackupPlanAssociations Sample", "description": "ListBackupPlanAssociations lists BackupPlanAssociations in a given project and location.", "file": "Client/ListBackupPlanAssociations/main.go", "language": "GO", "clientMethod": { "shortName": "ListBackupPlanAssociations", "fullName": "google.cloud.backupdr.v1.Client.ListBackupPlanAssociations", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListBackupPlanAssociationsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupPlanAssociationIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListBackupPlanAssociations", "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanAssociations", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlanRevisions_sync", "title": "backupdr ListBackupPlanRevisions Sample", "description": "ListBackupPlanRevisions lists BackupPlanRevisions in a given project and location.", "file": "Client/ListBackupPlanRevisions/main.go", "language": "GO", "clientMethod": { "shortName": "ListBackupPlanRevisions", "fullName": "google.cloud.backupdr.v1.Client.ListBackupPlanRevisions", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListBackupPlanRevisionsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupPlanRevisionIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListBackupPlanRevisions", "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanRevisions", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlans_sync", "title": "backupdr ListBackupPlans Sample", "description": "ListBackupPlans lists BackupPlans in a given project and location.", "file": "Client/ListBackupPlans/main.go", "language": "GO", "clientMethod": { "shortName": "ListBackupPlans", "fullName": "google.cloud.backupdr.v1.Client.ListBackupPlans", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListBackupPlansRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupPlanIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListBackupPlans", "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlans", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListBackupVaults_sync", "title": "backupdr ListBackupVaults Sample", "description": "ListBackupVaults lists BackupVaults in a given project and location.", "file": "Client/ListBackupVaults/main.go", "language": "GO", "clientMethod": { "shortName": "ListBackupVaults", "fullName": "google.cloud.backupdr.v1.Client.ListBackupVaults", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListBackupVaultsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupVaultIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListBackupVaults", "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupVaults", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListBackups_sync", "title": "backupdr ListBackups Sample", "description": "ListBackups lists Backups in a given project and location.", "file": "Client/ListBackups/main.go", "language": "GO", "clientMethod": { "shortName": "ListBackups", "fullName": "google.cloud.backupdr.v1.Client.ListBackups", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListBackupsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "BackupIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListBackups", "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackups", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_ListDataSources_sync", "title": "backupdr ListDataSources Sample", "description": "ListDataSources lists DataSources in a given project and location.", "file": "Client/ListDataSources/main.go", "language": "GO", "clientMethod": { "shortName": "ListDataSources", "fullName": "google.cloud.backupdr.v1.Client.ListDataSources", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.ListDataSourcesRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DataSourceIterator", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "ListDataSources", "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSources", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "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_RestoreBackup_sync", "title": "backupdr RestoreBackup Sample", "description": "RestoreBackup restore from a Backup", "file": "Client/RestoreBackup/main.go", "language": "GO", "clientMethod": { "shortName": "RestoreBackup", "fullName": "google.cloud.backupdr.v1.Client.RestoreBackup", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.RestoreBackupRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "RestoreBackupOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "RestoreBackup", "fullName": "google.cloud.backupdr.v1.BackupDR.RestoreBackup", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "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" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_TriggerBackup_sync", "title": "backupdr TriggerBackup Sample", "description": "TriggerBackup triggers a new Backup.", "file": "Client/TriggerBackup/main.go", "language": "GO", "clientMethod": { "shortName": "TriggerBackup", "fullName": "google.cloud.backupdr.v1.Client.TriggerBackup", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.TriggerBackupRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "TriggerBackupOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "TriggerBackup", "fullName": "google.cloud.backupdr.v1.BackupDR.TriggerBackup", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackup_sync", "title": "backupdr UpdateBackup Sample", "description": "UpdateBackup updates the settings of a Backup.", "file": "Client/UpdateBackup/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateBackup", "fullName": "google.cloud.backupdr.v1.Client.UpdateBackup", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.UpdateBackupRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateBackupOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "UpdateBackup", "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackup", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupPlan_sync", "title": "backupdr UpdateBackupPlan Sample", "description": "UpdateBackupPlan update a BackupPlan.", "file": "Client/UpdateBackupPlan/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateBackupPlan", "fullName": "google.cloud.backupdr.v1.Client.UpdateBackupPlan", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.UpdateBackupPlanRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateBackupPlanOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "UpdateBackupPlan", "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlan", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupPlanAssociation_sync", "title": "backupdr UpdateBackupPlanAssociation Sample", "description": "UpdateBackupPlanAssociation update a BackupPlanAssociation.", "file": "Client/UpdateBackupPlanAssociation/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.Client.UpdateBackupPlanAssociation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.UpdateBackupPlanAssociationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateBackupPlanAssociationOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "UpdateBackupPlanAssociation", "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlanAssociation", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupVault_sync", "title": "backupdr UpdateBackupVault Sample", "description": "UpdateBackupVault updates the settings of a BackupVault.", "file": "Client/UpdateBackupVault/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateBackupVault", "fullName": "google.cloud.backupdr.v1.Client.UpdateBackupVault", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.UpdateBackupVaultRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateBackupVaultOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "UpdateBackupVault", "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupVault", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "backupdr_v1_generated_BackupDR_UpdateDataSource_sync", "title": "backupdr UpdateDataSource Sample", "description": "UpdateDataSource updates the settings of a DataSource.", "file": "Client/UpdateDataSource/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateDataSource", "fullName": "google.cloud.backupdr.v1.Client.UpdateDataSource", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "backupdrpb.UpdateDataSourceRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateDataSourceOperation", "client": { "shortName": "Client", "fullName": "google.cloud.backupdr.v1.Client" }, "method": { "shortName": "UpdateDataSource", "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateDataSource", "service": { "shortName": "BackupDR", "fullName": "google.cloud.backupdr.v1.BackupDR" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] } ] }