#[non_exhaustive]pub struct Partner {
pub name: String,
pub skus: Vec<Sku>,
pub ekm_solutions: Vec<EkmMetadata>,
pub operated_cloud_regions: Vec<String>,
pub partner_project_id: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Expand description
Message describing Partner resource
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The resource name of the partner.
Format: organizations/{organization}/locations/{location}/partner
Example: “organizations/123456/locations/us-central1/partner”
skus: Vec<Sku>List of SKUs the partner is offering
ekm_solutions: Vec<EkmMetadata>List of Google Cloud supported EKM partners supported by the partner
operated_cloud_regions: Vec<String>List of Google Cloud regions that the partner sells services to customers. Valid Google Cloud regions found here: https://cloud.google.com/compute/docs/regions-zones
partner_project_id: StringGoogle Cloud project ID in the partner’s Google Cloud organization for receiving enhanced Logs for Partners.
create_time: Option<Timestamp>Output only. Time the resource was created
update_time: Option<Timestamp>Output only. The last time the resource was updated
Implementations§
Source§impl Partner
impl Partner
pub fn new() -> Self
Sourcepub fn set_ekm_solutions<T, V>(self, v: T) -> Self
pub fn set_ekm_solutions<T, V>(self, v: T) -> Self
Sets the value of ekm_solutions.
§Example
use google_cloud_cloudcontrolspartner_v1::model::EkmMetadata;
let x = Partner::new()
.set_ekm_solutions([
EkmMetadata::default()/* use setters */,
EkmMetadata::default()/* use (different) setters */,
]);Sourcepub fn set_operated_cloud_regions<T, V>(self, v: T) -> Self
pub fn set_operated_cloud_regions<T, V>(self, v: T) -> Self
Sets the value of operated_cloud_regions.
§Example
let x = Partner::new().set_operated_cloud_regions(["a", "b", "c"]);Sourcepub fn set_partner_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_partner_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of partner_project_id.
§Example
let x = Partner::new().set_partner_project_id("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Partner::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Partner::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Partner::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = Partner::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = Partner::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Partner::new().set_or_clear_update_time(None::<Timestamp>);