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
/*
* Tapis PgREST API
*
* The Tapis PgREST API provides a RESTful interface to a managed SQL-db-as-a-service.
*
* The version of the OpenAPI document: 1.0.0
* Contact: cicsupport@tacc.utexas.edu
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct View {
/// The name of the view.
#[serde(rename = "view_name", skip_serializing_if = "Option::is_none")]
pub view_name: Option<String>,
/// The url path used for the root root_url associated with the view.
#[serde(rename = "root_url", skip_serializing_if = "Option::is_none")]
pub root_url: Option<String>,
/// Which endpoints are available for the view. (This doesn't work/doesn't mean anything)
#[serde(rename = "endpoints", skip_serializing_if = "Option::is_none")]
pub endpoints: Option<String>,
/// View ID to manage the view with. Serial IDs allocated per tenant.
#[serde(rename = "manage_view_id", skip_serializing_if = "Option::is_none")]
pub manage_view_id: Option<String>,
/// The name of the tenant this view is created in.
#[serde(rename = "tenant_id", skip_serializing_if = "Option::is_none")]
pub tenant_id: Option<String>,
/// Text area to describe view. Returned when calling manage endpoints.
#[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
pub comments: Option<String>,
}
impl View {
pub fn new() -> View {
View {
view_name: None,
root_url: None,
endpoints: None,
manage_view_id: None,
tenant_id: None,
comments: None,
}
}
}