Service Client: Google::Cloud::Assuredworkloads::V1::Assuredworkloads::AssuredWorkloadsServiceClient
Client stub representing the remote AssuredWorkloadsService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to assuredworkloads.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Assuredworkloads::V1::Assuredworkloads - Compiled Protocol Buffers messages for google/cloud/assuredworkloads/v1/assuredworkloads.proto
SYNOPSIS
use Google::Cloud::Assuredworkloads::V1::Assuredworkloads;
my $msg = Google::Cloud::Assuredworkloads::V1::Assuredworkloads::CreateWorkloadRequest->new({
parent => $parent,
workload => $workload,
external_id => $external_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Assuredworkloads::V1::Assuredworkloads::CreateWorkloadRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/assuredworkloads/v1/assuredworkloads.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::CreateWorkloadRequest
Request for creating a workload.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the new Workload's parent. Must be of the form `organizations/{org_id}/locations/{location_id}`.
$msg->workload()/$msg->workload($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload)Required. Assured Workload to create
$msg->external_id()/$msg->external_id($value)Type:
StringOptional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::UpdateWorkloadRequest
Request for Updating a workload.
Inherits from Protobuf::Message.
Accessors
$msg->workload()/$msg->workload($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload)Required. The workload to update. The workload's `name` field is used to identify the workload to be updated. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The list of fields to be updated.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::DeleteWorkloadRequest
Request for deleting a Workload.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
$msg->etag()/$msg->etag($value)Type:
StringOptional. The etag of the workload. If this is provided, it must match the server's etag.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::GetWorkloadRequest
Request for fetching a workload.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Workload to fetch. This is the workload's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::ListWorkloadsRequest
Request for fetching workloads in an organization.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent Resource to list workloads from. Must be of the form `organizations/{org_id}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.
$msg->filter()/$msg->filter($value)Type:
StringA custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::ListWorkloadsResponse
Response of ListWorkloads endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->workloads()/$msg->workloads($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload)List of Workloads under a given parent.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token. Return empty if reached the last page.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload
A Workload object for managing highly regulated workloads of cloud customers.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload}
Read-only.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces.
Example: My Workload
$msg->resources()/$msg->resources($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload::ResourceInfo)Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
$msg->compliance_regime()/$msg->compliance_regime($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::Workload::ComplianceRegime)Required. Immutable. Compliance Regime associated with this workload.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Immutable. The Workload creation timestamp.
$msg->billing_account()/$msg->billing_account($value)Type:
StringOptional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
$msg->etag()/$msg->etag($value)Type:
StringOptional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload::LabelsEntry)Optional. Labels applied to the workload.
$msg->provisioned_resources_parent()/$msg->provisioned_resources_parent($value)Type:
StringInput only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
$msg->kms_settings()/$msg->kms_settings($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload::KMSSettings)Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
$msg->resource_settings()/$msg->resource_settings($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload::ResourceSettings)Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
$msg->kaj_enrollment_state()/$msg->kaj_enrollment_state($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::Workload::KajEnrollmentState)Output only. Represents the KAJ enrollment state of the given workload.
$msg->enable_sovereign_controls()/$msg->enable_sovereign_controls($value)Type:
BoolOptional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
$msg->saa_enrollment_response()/$msg->saa_enrollment_response($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Workload::SaaEnrollmentResponse)Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
$msg->compliant_but_disallowed_services()/$msg->compliant_but_disallowed_services($value)Type:
StringOutput only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."
$msg->partner()/$msg->partner($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::Workload::Partner)Optional. Compliance Regime associated with this workload.
Enum: Workload::ComplianceRegime
COMPLIANCE_REGIME_UNSPECIFIED=>0IL4=>1CJIS=>2FEDRAMP_HIGH=>3FEDRAMP_MODERATE=>4US_REGIONAL_ACCESS=>5HIPAA=>6HITRUST=>7EU_REGIONS_AND_SUPPORT=>8CA_REGIONS_AND_SUPPORT=>9ITAR=>10AU_REGIONS_AND_US_SUPPORT=>11ASSURED_WORKLOADS_FOR_PARTNERS=>12
Enum: Workload::KajEnrollmentState
KAJ_ENROLLMENT_STATE_UNSPECIFIED=>0KAJ_ENROLLMENT_STATE_PENDING=>1KAJ_ENROLLMENT_STATE_COMPLETE=>2
Enum: Workload::Partner
PARTNER_UNSPECIFIED=>0LOCAL_CONTROLS_BY_S3NS=>1
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::CreateWorkloadOperationMetadata
Operation metadata to give request details of CreateWorkload.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Time when the operation was created.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. The display name of the workload.
$msg->parent()/$msg->parent($value)Type:
StringOptional. The parent of the workload.
$msg->compliance_regime()/$msg->compliance_regime($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::Workload::ComplianceRegime)Optional. Compliance controls that should be applied to the resources managed by the workload.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::RestrictAllowedResourcesRequest
Request for restricting list of available resources in Workload environment.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Workload. This is the workloads's relative path in the API, formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
$msg->restriction_type()/$msg->restriction_type($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::RestrictAllowedResourcesRequest::RestrictionType)Required. The type of restriction for using gcp products in the Workload environment.
Enum: RestrictAllowedResourcesRequest::RestrictionType
RESTRICTION_TYPE_UNSPECIFIED=>0ALLOW_ALL_GCP_RESOURCES=>1ALLOW_COMPLIANT_RESOURCES=>2
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::RestrictAllowedResourcesResponse
Response for restricting the list of allowed resources.
Inherits from Protobuf::Message.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::AcknowledgeViolationRequest
Request for acknowledging the violation Next Id: 4
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
$msg->comment()/$msg->comment($value)Type:
StringRequired. Business justification explaining the need for violation acknowledgement
$msg->non_compliant_org_policy()/$msg->non_compliant_org_policy($value)Type:
StringOptional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::AcknowledgeViolationResponse
Response for violation acknowledgement
Inherits from Protobuf::Message.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::TimeWindow
Interval defining a time window.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start of the time window.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The end of the time window.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::ListViolationsRequest
Request for fetching violations in an organization.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`.
$msg->interval()/$msg->interval($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::TimeWindow)Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between start_time and end_time.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. Page token returned from previous request.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A custom filter for filtering by the Violations properties.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::ListViolationsResponse
Response of ListViolations endpoint.
Inherits from Protobuf::Message.
Accessors
$msg->violations()/$msg->violations($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Violation)List of Violations under a Workload.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe next page token. Returns empty if reached the last page.
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::GetViolationRequest
Request for fetching a Workload Violation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Violation
Workload monitoring Violation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
$msg->description()/$msg->description($value)Type:
StringOutput only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
$msg->begin_time()/$msg->begin_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time of the event which triggered the Violation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The last time when the Violation record was updated.
$msg->resolve_time()/$msg->resolve_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
$msg->category()/$msg->category($value)Type:
StringOutput only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Assuredworkloads::V1::Violation::State)Output only. State of the violation
$msg->org_policy_constraint()/$msg->org_policy_constraint($value)Type:
StringOutput only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
$msg->audit_log_link()/$msg->audit_log_link($value)Type:
StringOutput only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
$msg->non_compliant_org_policy()/$msg->non_compliant_org_policy($value)Type:
StringOutput only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
$msg->remediation()/$msg->remediation($value)Type:
Message(Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Violation::Remediation)Output only. Compliance violation remediation
$msg->acknowledged()/$msg->acknowledged($value)Type:
BoolOutput only. A boolean that indicates if the violation is acknowledged
$msg->acknowledgement_time()/$msg->acknowledgement_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.
$msg->exception_audit_log_link()/$msg->exception_audit_log_link($value)Type:
StringOutput only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
Enum: Violation::State
STATE_UNSPECIFIED=>0RESOLVED=>2UNRESOLVED=>3EXCEPTION=>4
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Assuredworkloads::V1::Assuredworkloads::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.