Struct gapi_grpc::google::cloud::orgpolicy::v2::Policy[][src]

pub struct Policy {
    pub name: String,
    pub spec: Option<PolicySpec>,
    pub alternate: Option<AlternatePolicySpec>,
}

Defines a Cloud Organization Policy which is used to specify Constraints for configurations of Cloud Platform resources.

Fields

name: String

Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures:

For example, “projects/123/policies/compute.disableSerialPortAccess”.

Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.

spec: Option<PolicySpec>

Basic information about the Organization Policy.

alternate: Option<AlternatePolicySpec>

An alternate policy configuration that will be used instead of the baseline policy configurations as determined by the launch. Currently the only way the launch can trigger the alternate configuration is via dry-run/darklaunch.

Trait Implementations

impl Clone for Policy[src]

impl Debug for Policy[src]

impl Default for Policy[src]

impl Message for Policy[src]

impl PartialEq<Policy> for Policy[src]

impl StructuralPartialEq for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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]