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}; /*
* Service Control API
*
* Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
*
* The version of the OpenAPI document: v2
*
* Generated by: https://openapi-generator.tech
*/
use crate::google_rest_apis::servicecontrol_v2::models;
/// Api : This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Api {
/// The API operation name. For gRPC requests, it is the fully qualified API method name, such as \"google.pubsub.v1.Publisher.Publish\". For OpenAPI requests, it is the `operationId`, such as \"getPet\".
#[serde(rename = "operation", skip_serializing_if = "Option::is_none")]
pub operation: Option<String>,
/// The API protocol used for sending the request, such as \"http\", \"https\", \"grpc\", or \"internal\".
#[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
/// The API service name. It is a logical identifier for a networked API, such as \"pubsub.googleapis.com\". The naming syntax depends on the API management system being used for handling the request.
#[serde(rename = "service", skip_serializing_if = "Option::is_none")]
pub service: Option<String>,
/// The API version associated with the API operation above, such as \"v1\" or \"v1alpha1\".
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
impl Api {
/// This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.
pub fn new() -> Api {
Api {
operation: None,
protocol: None,
service: None,
version: None,
}
}
}