Struct gapi_grpc::google::cloud::assuredworkloads::v1beta1::Workload[][src]

pub struct Workload {
    pub name: String,
    pub display_name: String,
    pub resources: Vec<ResourceInfo>,
    pub compliance_regime: i32,
    pub create_time: Option<Timestamp>,
    pub billing_account: String,
    pub etag: String,
    pub labels: HashMap<String, String>,
    pub provisioned_resources_parent: String,
    pub kms_settings: Option<KmsSettings>,
    pub resource_settings: Vec<ResourceSettings>,
    pub compliance_regime_settings: Option<ComplianceRegimeSettings>,
}

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

Fields

name: String

Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload}

Read-only.

display_name: String

Required. 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

resources: Vec<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.

compliance_regime: i32

Required. Immutable. Compliance Regime associated with this workload.

create_time: Option<Timestamp>

Output only. Immutable. The Workload creation timestamp.

billing_account: String

Required. Input only. 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.

etag: String

Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations.

labels: HashMap<String, String>

Optional. Labels applied to the workload.

provisioned_resources_parent: String

Input only. The parent resource for the resources managed by this Assured Workload. May be either an organization or a folder. Must be the same or a child of the Workload parent. If not specified all resources are created under the Workload parent. Formats: folders/{folder_id} organizations/{organization_id}

kms_settings: Option<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 mandatory for a subset of Compliance Regimes.

resource_settings: Vec<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.

compliance_regime_settings: Option<ComplianceRegimeSettings>

Settings specific to the selected [compliance_regime]

Implementations

impl Workload[src]

pub fn compliance_regime(&self) -> ComplianceRegime[src]

Returns the enum value of compliance_regime, or the default if the field is set to an invalid enum value.

pub fn set_compliance_regime(&mut self, value: ComplianceRegime)[src]

Sets compliance_regime to the provided enum value.

Trait Implementations

impl Clone for Workload[src]

impl Debug for Workload[src]

impl Default for Workload[src]

impl Message for Workload[src]

impl PartialEq<Workload> for Workload[src]

impl StructuralPartialEq for Workload[src]

Auto Trait Implementations

impl RefUnwindSafe for Workload

impl Send for Workload

impl Sync for Workload

impl Unpin for Workload

impl UnwindSafe for Workload

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]