{ "clientLibrary": { "name": "cloud.google.com/go/rapidmigrationassessment/apiv1", "version": "1.1.7", "language": "GO", "apis": [ { "id": "google.cloud.rapidmigrationassessment.v1", "version": "v1" } ] }, "snippets": [ { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_CancelOperation_sync", "title": "rapidmigrationassessment 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.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_CreateAnnotation_sync", "title": "rapidmigrationassessment CreateAnnotation Sample", "description": "CreateAnnotation creates an Annotation", "file": "Client/CreateAnnotation/main.go", "language": "GO", "clientMethod": { "shortName": "CreateAnnotation", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.CreateAnnotation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.CreateAnnotationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateAnnotationOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "CreateAnnotation", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateAnnotation", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_CreateCollector_sync", "title": "rapidmigrationassessment CreateCollector Sample", "description": "CreateCollector create a Collector to manage the on-prem appliance which collects\ninformation about Customer assets.", "file": "Client/CreateCollector/main.go", "language": "GO", "clientMethod": { "shortName": "CreateCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.CreateCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.CreateCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CreateCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "CreateCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_DeleteCollector_sync", "title": "rapidmigrationassessment DeleteCollector Sample", "description": "DeleteCollector deletes a single Collector - changes state of collector to \"Deleting\".\nBackground jobs does final deletion through producer API.", "file": "Client/DeleteCollector/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.DeleteCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.DeleteCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "DeleteCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.DeleteCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_DeleteOperation_sync", "title": "rapidmigrationassessment 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.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetAnnotation_sync", "title": "rapidmigrationassessment GetAnnotation Sample", "description": "GetAnnotation gets details of a single Annotation.", "file": "Client/GetAnnotation/main.go", "language": "GO", "clientMethod": { "shortName": "GetAnnotation", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.GetAnnotation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.GetAnnotationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*rapidmigrationassessmentpb.Annotation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "GetAnnotation", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetAnnotation", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetCollector_sync", "title": "rapidmigrationassessment GetCollector Sample", "description": "GetCollector gets details of a single Collector.", "file": "Client/GetCollector/main.go", "language": "GO", "clientMethod": { "shortName": "GetCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.GetCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.GetCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*rapidmigrationassessmentpb.Collector", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "GetCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetLocation_sync", "title": "rapidmigrationassessment GetLocation Sample", "description": "GetLocation gets information about a location.", "file": "Client/GetLocation/main.go", "language": "GO", "clientMethod": { "shortName": "GetLocation", "fullName": "google.cloud.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetOperation_sync", "title": "rapidmigrationassessment 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.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ListCollectors_sync", "title": "rapidmigrationassessment ListCollectors Sample", "description": "ListCollectors lists Collectors in a given project and location.", "file": "Client/ListCollectors/main.go", "language": "GO", "clientMethod": { "shortName": "ListCollectors", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.ListCollectors", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.ListCollectorsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "CollectorIterator", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "ListCollectors", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ListCollectors", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ListLocations_sync", "title": "rapidmigrationassessment 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.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ListOperations_sync", "title": "rapidmigrationassessment 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.rapidmigrationassessment.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.rapidmigrationassessment.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": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_PauseCollector_sync", "title": "rapidmigrationassessment PauseCollector Sample", "description": "PauseCollector pauses the given collector.", "file": "Client/PauseCollector/main.go", "language": "GO", "clientMethod": { "shortName": "PauseCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.PauseCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.PauseCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "PauseCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "PauseCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.PauseCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_RegisterCollector_sync", "title": "rapidmigrationassessment RegisterCollector Sample", "description": "RegisterCollector registers the given collector.", "file": "Client/RegisterCollector/main.go", "language": "GO", "clientMethod": { "shortName": "RegisterCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.RegisterCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.RegisterCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "RegisterCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "RegisterCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.RegisterCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ResumeCollector_sync", "title": "rapidmigrationassessment ResumeCollector Sample", "description": "ResumeCollector resumes the given collector.", "file": "Client/ResumeCollector/main.go", "language": "GO", "clientMethod": { "shortName": "ResumeCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.ResumeCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.ResumeCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ResumeCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "ResumeCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ResumeCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] }, { "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_UpdateCollector_sync", "title": "rapidmigrationassessment UpdateCollector Sample", "description": "UpdateCollector updates the parameters of a single Collector.", "file": "Client/UpdateCollector/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.Client.UpdateCollector", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "rapidmigrationassessmentpb.UpdateCollectorRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "UpdateCollectorOperation", "client": { "shortName": "Client", "fullName": "google.cloud.rapidmigrationassessment.v1.Client" }, "method": { "shortName": "UpdateCollector", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.UpdateCollector", "service": { "shortName": "RapidMigrationAssessment", "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 58, "type": "FULL" } ] } ] }