Package com.google.cloud.config.v1
Class ConfigGrpc.ConfigBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ConfigGrpc.ConfigBlockingV2Stub>
com.google.cloud.config.v1.ConfigGrpc.ConfigBlockingV2Stub
- Enclosing class:
- ConfigGrpc
public static final class ConfigGrpc.ConfigBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ConfigGrpc.ConfigBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Config.
Infrastructure Manager is a managed service that automates the deployment and management of Google Cloud infrastructure resources.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigGrpc.ConfigBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createDeployment(CreateDeploymentRequest request) Creates a [Deployment][google.cloud.config.v1.Deployment].Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.createPreview(CreatePreviewRequest request) Creates a [Preview][google.cloud.config.v1.Preview].deleteDeployment(DeleteDeploymentRequest request) Deletes a [Deployment][google.cloud.config.v1.Deployment].Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]deletePreview(DeletePreviewRequest request) Deletes a [Preview][google.cloud.config.v1.Preview].com.google.protobuf.EmptydeleteStatefile(DeleteStatefileRequest request) Deletes Terraform state file in a given deployment.Deprovisions a deployment group.Exports Terraform state file from a given deployment.exportLockInfo(ExportLockInfoRequest request) Exports the lock info on a locked deployment.Export [Preview][google.cloud.config.v1.Preview] results.Exports Terraform state file from a given revision.Get the AutoMigrationConfig for a given project and location.getDeployment(GetDeploymentRequest request) Gets details about a [Deployment][google.cloud.config.v1.Deployment].Get a DeploymentGroup for a given project and location.Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].getPreview(GetPreviewRequest request) Gets details about a [Preview][google.cloud.config.v1.Preview].getResource(GetResourceRequest request) Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.Get a ResourceChange for a given preview.getResourceDrift(GetResourceDriftRequest request) Get a ResourceDrift for a given preview.getRevision(GetRevisionRequest request) Gets details about a [Revision][google.cloud.config.v1.Revision].Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].importStatefile(ImportStatefileRequest request) Imports Terraform state file in a given deployment.Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].List DeploymentGroups for a given project and location.listDeployments(ListDeploymentsRequest request) Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.listPreviews(ListPreviewsRequest request) Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.Lists ResourceChanges for a given preview.List ResourceDrifts for a given preview.listResources(ListResourcesRequest request) Lists [Resources][google.cloud.config.v1.Resource] in a given revision.listRevisions(ListRevisionsRequest request) Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.lockDeployment(LockDeploymentRequest request) Locks a deployment.Provisions a deployment group.unlockDeployment(UnlockDeploymentRequest request) Unlocks a locked deployment.Updates the AutoMigrationConfig for a given project and location.updateDeployment(UpdateDeploymentRequest request) Updates a [Deployment][google.cloud.config.v1.Deployment].Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ConfigGrpc.ConfigBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ConfigGrpc.ConfigBlockingV2Stub>
-
listDeployments
public ListDeploymentsResponse listDeployments(ListDeploymentsRequest request) throws io.grpc.StatusException Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.
- Throws:
io.grpc.StatusException
-
getDeployment
Gets details about a [Deployment][google.cloud.config.v1.Deployment].
- Throws:
io.grpc.StatusException
-
createDeployment
Creates a [Deployment][google.cloud.config.v1.Deployment].
- Throws:
io.grpc.StatusException
-
updateDeployment
Updates a [Deployment][google.cloud.config.v1.Deployment].
- Throws:
io.grpc.StatusException
-
deleteDeployment
Deletes a [Deployment][google.cloud.config.v1.Deployment].
- Throws:
io.grpc.StatusException
-
listRevisions
public ListRevisionsResponse listRevisions(ListRevisionsRequest request) throws io.grpc.StatusException Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.
- Throws:
io.grpc.StatusException
-
getRevision
Gets details about a [Revision][google.cloud.config.v1.Revision].
- Throws:
io.grpc.StatusException
-
getResource
Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.
- Throws:
io.grpc.StatusException
-
listResources
public ListResourcesResponse listResources(ListResourcesRequest request) throws io.grpc.StatusException Lists [Resources][google.cloud.config.v1.Resource] in a given revision.
- Throws:
io.grpc.StatusException
-
exportDeploymentStatefile
public Statefile exportDeploymentStatefile(ExportDeploymentStatefileRequest request) throws io.grpc.StatusException Exports Terraform state file from a given deployment.
- Throws:
io.grpc.StatusException
-
exportRevisionStatefile
public Statefile exportRevisionStatefile(ExportRevisionStatefileRequest request) throws io.grpc.StatusException Exports Terraform state file from a given revision.
- Throws:
io.grpc.StatusException
-
importStatefile
Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.
- Throws:
io.grpc.StatusException
-
deleteStatefile
public com.google.protobuf.Empty deleteStatefile(DeleteStatefileRequest request) throws io.grpc.StatusException Deletes Terraform state file in a given deployment.
- Throws:
io.grpc.StatusException
-
lockDeployment
Locks a deployment.
- Throws:
io.grpc.StatusException
-
unlockDeployment
Unlocks a locked deployment.
- Throws:
io.grpc.StatusException
-
exportLockInfo
Exports the lock info on a locked deployment.
- Throws:
io.grpc.StatusException
-
createPreview
Creates a [Preview][google.cloud.config.v1.Preview].
- Throws:
io.grpc.StatusException
-
getPreview
Gets details about a [Preview][google.cloud.config.v1.Preview].
- Throws:
io.grpc.StatusException
-
listPreviews
public ListPreviewsResponse listPreviews(ListPreviewsRequest request) throws io.grpc.StatusException Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.
- Throws:
io.grpc.StatusException
-
deletePreview
Deletes a [Preview][google.cloud.config.v1.Preview].
- Throws:
io.grpc.StatusException
-
exportPreviewResult
public ExportPreviewResultResponse exportPreviewResult(ExportPreviewResultRequest request) throws io.grpc.StatusException Export [Preview][google.cloud.config.v1.Preview] results.
- Throws:
io.grpc.StatusException
-
listTerraformVersions
public ListTerraformVersionsResponse listTerraformVersions(ListTerraformVersionsRequest request) throws io.grpc.StatusException Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.
- Throws:
io.grpc.StatusException
-
getTerraformVersion
public TerraformVersion getTerraformVersion(GetTerraformVersionRequest request) throws io.grpc.StatusException Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].
- Throws:
io.grpc.StatusException
-
listResourceChanges
public ListResourceChangesResponse listResourceChanges(ListResourceChangesRequest request) throws io.grpc.StatusException Lists ResourceChanges for a given preview.
- Throws:
io.grpc.StatusException
-
getResourceChange
public ResourceChange getResourceChange(GetResourceChangeRequest request) throws io.grpc.StatusException Get a ResourceChange for a given preview.
- Throws:
io.grpc.StatusException
-
listResourceDrifts
public ListResourceDriftsResponse listResourceDrifts(ListResourceDriftsRequest request) throws io.grpc.StatusException List ResourceDrifts for a given preview.
- Throws:
io.grpc.StatusException
-
getResourceDrift
public ResourceDrift getResourceDrift(GetResourceDriftRequest request) throws io.grpc.StatusException Get a ResourceDrift for a given preview.
- Throws:
io.grpc.StatusException
-
getAutoMigrationConfig
public AutoMigrationConfig getAutoMigrationConfig(GetAutoMigrationConfigRequest request) throws io.grpc.StatusException Get the AutoMigrationConfig for a given project and location.
- Throws:
io.grpc.StatusException
-
updateAutoMigrationConfig
public Operation updateAutoMigrationConfig(UpdateAutoMigrationConfigRequest request) throws io.grpc.StatusException Updates the AutoMigrationConfig for a given project and location.
- Throws:
io.grpc.StatusException
-
getDeploymentGroup
public DeploymentGroup getDeploymentGroup(GetDeploymentGroupRequest request) throws io.grpc.StatusException Get a DeploymentGroup for a given project and location.
- Throws:
io.grpc.StatusException
-
createDeploymentGroup
public Operation createDeploymentGroup(CreateDeploymentGroupRequest request) throws io.grpc.StatusException Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.
- Throws:
io.grpc.StatusException
-
updateDeploymentGroup
public Operation updateDeploymentGroup(UpdateDeploymentGroupRequest request) throws io.grpc.StatusException Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
- Throws:
io.grpc.StatusException
-
deleteDeploymentGroup
public Operation deleteDeploymentGroup(DeleteDeploymentGroupRequest request) throws io.grpc.StatusException Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]
- Throws:
io.grpc.StatusException
-
listDeploymentGroups
public ListDeploymentGroupsResponse listDeploymentGroups(ListDeploymentGroupsRequest request) throws io.grpc.StatusException List DeploymentGroups for a given project and location.
- Throws:
io.grpc.StatusException
-
provisionDeploymentGroup
public Operation provisionDeploymentGroup(ProvisionDeploymentGroupRequest request) throws io.grpc.StatusException Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.
- Throws:
io.grpc.StatusException
-
deprovisionDeploymentGroup
public Operation deprovisionDeploymentGroup(DeprovisionDeploymentGroupRequest request) throws io.grpc.StatusException Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.
- Throws:
io.grpc.StatusException
-
getDeploymentGroupRevision
public DeploymentGroupRevision getDeploymentGroupRevision(GetDeploymentGroupRevisionRequest request) throws io.grpc.StatusException Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].
- Throws:
io.grpc.StatusException
-
listDeploymentGroupRevisions
public ListDeploymentGroupRevisionsResponse listDeploymentGroupRevisions(ListDeploymentGroupRevisionsRequest request) throws io.grpc.StatusException Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].
- Throws:
io.grpc.StatusException
-