1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use serde::{Deserialize, Serialize}; /*
* Compute Engine API
*
* Creates and runs virtual machines on Google Cloud Platform.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::google_rest_apis::compute_v1::models;
/// Reference : Represents a reference to a resource.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Reference {
/// [Output Only] Type of the resource. Always compute#reference for references.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF
#[serde(rename = "referenceType", skip_serializing_if = "Option::is_none")]
pub reference_type: Option<String>,
/// URL of the resource which refers to the target.
#[serde(rename = "referrer", skip_serializing_if = "Option::is_none")]
pub referrer: Option<String>,
/// URL of the resource to which this reference points.
#[serde(rename = "target", skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
}
impl Reference {
/// Represents a reference to a resource.
pub fn new() -> Reference {
Reference {
kind: None,
reference_type: None,
referrer: None,
target: None,
}
}
}