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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
use serde::{Deserialize, Serialize}; /*
* Cloud SQL Admin API
*
* API for Cloud SQL database instance management
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::google_rest_apis::sqladmin_v1::models;
/// Database : Represents a SQL database on the Cloud SQL instance.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Database {
/// The Cloud SQL charset value.
#[serde(rename = "charset", skip_serializing_if = "Option::is_none")]
pub charset: Option<String>,
/// The Cloud SQL collation value.
#[serde(rename = "collation", skip_serializing_if = "Option::is_none")]
pub collation: Option<String>,
/// This field is deprecated and will be removed from a future version of the API.
#[serde(rename = "etag", skip_serializing_if = "Option::is_none")]
pub etag: Option<String>,
/// The name of the Cloud SQL instance. This does not include the project ID.
#[serde(rename = "instance", skip_serializing_if = "Option::is_none")]
pub instance: Option<String>,
/// This is always `sql#database`.
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
#[serde(rename = "project", skip_serializing_if = "Option::is_none")]
pub project: Option<String>,
/// The URI of this resource.
#[serde(rename = "selfLink", skip_serializing_if = "Option::is_none")]
pub self_link: Option<String>,
#[serde(
rename = "sqlserverDatabaseDetails",
skip_serializing_if = "Option::is_none"
)]
pub sqlserver_database_details: Option<Box<models::SqlServerDatabaseDetails>>,
}
impl Database {
/// Represents a SQL database on the Cloud SQL instance.
pub fn new() -> Database {
Database {
charset: None,
collation: None,
etag: None,
instance: None,
kind: None,
name: None,
project: None,
self_link: None,
sqlserver_database_details: None,
}
}
}