Package com.google.cloud.assuredworkloads.v1beta1 (0.9.0)

A client to Assured Workloads API

The interfaces provided are listed below, along with usage samples.

AssuredWorkloadsServiceClient

Service Description: Service to manage AssuredWorkloads.

Sample for AssuredWorkloadsServiceClient:


 try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
     AssuredWorkloadsServiceClient.create()) {
   Workload workload = Workload.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Workload response = assuredWorkloadsServiceClient.updateWorkload(workload, updateMask);
 }
 

Classes

AssuredWorkloadsServiceClient

Service Description: Service to manage AssuredWorkloads.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
     AssuredWorkloadsServiceClient.create()) {
   Workload workload = Workload.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   Workload response = assuredWorkloadsServiceClient.updateWorkload(workload, updateMask);
 }
 

Note: close() needs to be called on the AssuredWorkloadsServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of AssuredWorkloadsServiceSettings to create(). For example:

To customize credentials:


 AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings =
     AssuredWorkloadsServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
     AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings);
 

To customize the endpoint:


 AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings =
     AssuredWorkloadsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
     AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

AssuredWorkloadsServiceClient.ListWorkloadsFixedSizeCollection

AssuredWorkloadsServiceClient.ListWorkloadsPage

AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse

AssuredWorkloadsServiceGrpc

Service to manage AssuredWorkloads.

AssuredWorkloadsServiceGrpc.AssuredWorkloadsServiceBlockingStub

Service to manage AssuredWorkloads.

AssuredWorkloadsServiceGrpc.AssuredWorkloadsServiceFutureStub

Service to manage AssuredWorkloads.

AssuredWorkloadsServiceGrpc.AssuredWorkloadsServiceImplBase

Service to manage AssuredWorkloads.

AssuredWorkloadsServiceGrpc.AssuredWorkloadsServiceStub

Service to manage AssuredWorkloads.

AssuredWorkloadsServiceSettings

Settings class to configure an instance of AssuredWorkloadsServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (assuredworkloads.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of updateWorkload to 30 seconds:


 AssuredWorkloadsServiceSettings.Builder assuredWorkloadsServiceSettingsBuilder =
     AssuredWorkloadsServiceSettings.newBuilder();
 assuredWorkloadsServiceSettingsBuilder
     .updateWorkloadSettings()
     .setRetrySettings(
         assuredWorkloadsServiceSettingsBuilder
             .updateWorkloadSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 AssuredWorkloadsServiceSettings assuredWorkloadsServiceSettings =
     assuredWorkloadsServiceSettingsBuilder.build();
 

AssuredWorkloadsServiceSettings.Builder

Builder for AssuredWorkloadsServiceSettings.

AssuredworkloadsProto

CreateWorkloadOperationMetadata

Operation metadata to give request details of CreateWorkload.

Protobuf type google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata

CreateWorkloadOperationMetadata.Builder

Operation metadata to give request details of CreateWorkload.

Protobuf type google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata

CreateWorkloadRequest

Request for creating a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest

CreateWorkloadRequest.Builder

Request for creating a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.CreateWorkloadRequest

DeleteWorkloadRequest

Request for deleting a Workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest

DeleteWorkloadRequest.Builder

Request for deleting a Workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest

GetWorkloadRequest

Request for fetching a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest

GetWorkloadRequest.Builder

Request for fetching a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.GetWorkloadRequest

ListWorkloadsRequest

Request for fetching workloads in an organization.

Protobuf type google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest

ListWorkloadsRequest.Builder

Request for fetching workloads in an organization.

Protobuf type google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest

ListWorkloadsResponse

Response of ListWorkloads endpoint.

Protobuf type google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse

ListWorkloadsResponse.Builder

Response of ListWorkloads endpoint.

Protobuf type google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse

LocationName

LocationName.Builder

Builder for organizations/{organization}/locations/{location}.

UpdateWorkloadRequest

Request for Updating a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest

UpdateWorkloadRequest.Builder

Request for Updating a workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest

Workload

An Workload object for managing highly regulated workloads of cloud customers.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload

Workload.Builder

An Workload object for managing highly regulated workloads of cloud customers.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload

Workload.CJISSettings

Settings specific to resources needed for CJIS.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings

Workload.CJISSettings.Builder

Settings specific to resources needed for CJIS.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings

Workload.FedrampHighSettings

Settings specific to resources needed for FedRAMP High.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings

Workload.FedrampHighSettings.Builder

Settings specific to resources needed for FedRAMP High.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings

Workload.FedrampModerateSettings

Settings specific to resources needed for FedRAMP Moderate.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings

Workload.FedrampModerateSettings.Builder

Settings specific to resources needed for FedRAMP Moderate.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings

Workload.IL4Settings

Settings specific to resources needed for IL4.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings

Workload.IL4Settings.Builder

Settings specific to resources needed for IL4.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings

Workload.KMSSettings

Settings specific to the Key Management Service.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings

Workload.KMSSettings.Builder

Settings specific to the Key Management Service.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings

Workload.ResourceInfo

Represent the resources that are children of this Workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo

Workload.ResourceInfo.Builder

Represent the resources that are children of this Workload.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo

Workload.ResourceSettings

Represent the custom settings for the resources to be created.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings

Workload.ResourceSettings.Builder

Represent the custom settings for the resources to be created.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings

Workload.SaaEnrollmentResponse

Signed Access Approvals (SAA) enrollment response.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse

Workload.SaaEnrollmentResponse.Builder

Signed Access Approvals (SAA) enrollment response.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse

WorkloadName

WorkloadName.Builder

Builder for organizations/{organization}/locations/{location}/workloads/{workload}.

Interfaces

CreateWorkloadOperationMetadataOrBuilder

CreateWorkloadRequestOrBuilder

DeleteWorkloadRequestOrBuilder

GetWorkloadRequestOrBuilder

ListWorkloadsRequestOrBuilder

ListWorkloadsResponseOrBuilder

UpdateWorkloadRequestOrBuilder

Workload.CJISSettingsOrBuilder

Workload.FedrampHighSettingsOrBuilder

Workload.FedrampModerateSettingsOrBuilder

Workload.IL4SettingsOrBuilder

Workload.KMSSettingsOrBuilder

Workload.ResourceInfoOrBuilder

Workload.ResourceSettingsOrBuilder

Workload.SaaEnrollmentResponseOrBuilder

WorkloadOrBuilder

Enums

Workload.ComplianceRegime

Supported Compliance Regimes.

Protobuf enum google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime

Workload.ComplianceRegimeSettingsCase

Workload.KajEnrollmentState

Key Access Justifications(KAJ) Enrollment State.

Protobuf enum google.cloud.assuredworkloads.v1beta1.Workload.KajEnrollmentState

Workload.ResourceInfo.ResourceType

The type of resource.

Protobuf enum google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType

Workload.SaaEnrollmentResponse.SetupError

Setup error of SAA enrollment.

Protobuf enum google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError

Workload.SaaEnrollmentResponse.SetupState

Setup state of SAA enrollment.

Protobuf enum google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState