#[non_exhaustive]pub struct DnsBindPermission {
pub name: String,
pub principals: Vec<Principal>,
/* private fields */
}Expand description
DnsBindPermission resource that contains the accounts having the consumer DNS bind permission on the corresponding intranet VPC of the consumer project.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Output only. The name of the resource which stores the
users/service accounts having the permission to bind to the corresponding
intranet VPC of the consumer project. DnsBindPermission is a global
resource and location can only be global. Resource names are schemeless
URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
projects/my-project/locations/global/dnsBindPermission
principals: Vec<Principal>Output only. Users/Service accounts which have access for binding on the intranet VPC project corresponding to the consumer project.
Implementations§
Source§impl DnsBindPermission
impl DnsBindPermission
pub fn new() -> Self
Sourcepub fn set_principals<T, V>(self, v: T) -> Self
pub fn set_principals<T, V>(self, v: T) -> Self
Sets the value of principals.
§Example
ⓘ
use google_cloud_vmwareengine_v1::model::Principal;
let x = DnsBindPermission::new()
.set_principals([
Principal::default()/* use setters */,
Principal::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for DnsBindPermission
impl Clone for DnsBindPermission
Source§fn clone(&self) -> DnsBindPermission
fn clone(&self) -> DnsBindPermission
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DnsBindPermission
impl Debug for DnsBindPermission
Source§impl Default for DnsBindPermission
impl Default for DnsBindPermission
Source§fn default() -> DnsBindPermission
fn default() -> DnsBindPermission
Returns the “default value” for a type. Read more
Source§impl Message for DnsBindPermission
impl Message for DnsBindPermission
Source§impl PartialEq for DnsBindPermission
impl PartialEq for DnsBindPermission
impl StructuralPartialEq for DnsBindPermission
Auto Trait Implementations§
impl Freeze for DnsBindPermission
impl RefUnwindSafe for DnsBindPermission
impl Send for DnsBindPermission
impl Sync for DnsBindPermission
impl Unpin for DnsBindPermission
impl UnwindSafe for DnsBindPermission
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more