Regen all APIs from new JSON

This commit is contained in:
Guy Taylor
2019-04-04 18:16:26 +01:00
committed by Sebastian Thiel
parent 86a884c48b
commit 2ad9f3781d
1212 changed files with 440610 additions and 142417 deletions

View File

@@ -4,12 +4,12 @@
[package]
name = "google-runtimeconfig1"
version = "1.0.8+20180924"
version = "1.0.8+20190330"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Cloud RuntimeConfig (protocol v1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/runtimeconfig1"
homepage = "https://cloud.google.com/deployment-manager/runtime-configurator/"
documentation = "https://docs.rs/google-runtimeconfig1/1.0.8+20180924"
documentation = "https://docs.rs/google-runtimeconfig1/1.0.8+20190330"
license = "MIT"
keywords = ["runtimeconfig", "google", "protocol", "web", "api"]
autobins = false
@@ -25,7 +25,7 @@ serde = "^ 1.0"
serde_json = "^ 1.0"
serde_derive = "^ 1.0"
yup-oauth2 = "^ 1.0"
url = "= 0.5"
url = "= 1.7"
[features]

View File

@@ -5,16 +5,16 @@ DO NOT EDIT !
-->
The `google-runtimeconfig1` library allows access to all features of the *Google Cloud RuntimeConfig* service.
This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.8+20180924*, where *20180924* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.8+20190330*, where *20190330* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
Everything else about the *Cloud RuntimeConfig* *v1* API can be found at the
[official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/).
# Features
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.CloudRuntimeConfig.html) ...
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.CloudRuntimeConfig.html) ...
* [operations](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.Operation.html)
* [*cancel*](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.OperationDeleteCall.html) and [*list*](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.OperationListCall.html)
* [operations](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.Operation.html)
* [*cancel*](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.OperationDeleteCall.html) and [*list*](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.OperationListCall.html)
@@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r
The API is structured into the following primary items:
* **[Hub](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/struct.CloudRuntimeConfig.html)**
* **[Hub](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/struct.CloudRuntimeConfig.html)**
* a central object to maintain state and allow accessing all *Activities*
* creates [*Method Builders*](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Resource.html)**
* creates [*Method Builders*](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Resource.html)**
* primary types that you can apply *Activities* to
* a collection of properties and *Parts*
* **[Parts](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Part.html)**
* **[Parts](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Part.html)**
* a collection of properties
* never directly used in *Activities*
* **[Activities](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.CallBuilder.html)**
* **[Activities](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.CallBuilder.html)**
* operations to apply to *Resources*
All *structures* are marked with applicable traits to further categorize them and ease browsing.
@@ -129,17 +129,17 @@ match result {
```
## Handling Errors
All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/enum.Result.html) enumeration as return value of
All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/enum.Result.html) enumeration as return value of
the doit() methods, or handed as possibly intermediate results to either the
[Hub Delegate](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
[Hub Delegate](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
makes the system potentially resilient to all kinds of errors.
## Uploads and Downloads
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/enum.Result.html), should be
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/enum.Result.html), should be
read by you to obtain the media.
If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.ResponseResult.html), it will return that by default.
If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.ResponseResult.html), it will return that by default.
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
this call: `.param("alt", "media")`.
@@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols:
## Customization and Callbacks
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.CallBuilder.html) before making the final `doit()` call.
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.CallBuilder.html) before making the final `doit()` call.
Respective methods will be called to provide progress information, as well as determine whether the system should
retry on failure.
The [delegate trait](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
The [delegate trait](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
## Optional Parts in Server-Requests
All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses
are valid.
Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.Part.html) which are identifiable by name, which will be sent to
Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.Part.html) which are identifiable by name, which will be sent to
the server to indicate either the set parts of the request or the desired parts in the response.
## Builder Arguments
Using [method builders](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
Using [method builders](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
These will always take a single argument, for which the following statements are true.
* [PODs][wiki-pod] are handed by copy
* strings are passed as `&str`
* [request values](https://docs.rs/google-runtimeconfig1/1.0.8+20180924/google_runtimeconfig1/trait.RequestValue.html) are moved
* [request values](https://docs.rs/google-runtimeconfig1/1.0.8+20190330/google_runtimeconfig1/trait.RequestValue.html) are moved
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.8+20180924*, where *20180924* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.8+20190330*, where *20190330* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.8*.
//!
//! Everything else about the *Cloud RuntimeConfig* *v1* API can be found at the
//! [official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/).
@@ -370,17 +370,17 @@ impl<'a, C, A> CloudRuntimeConfig<C, A>
// ############
// SCHEMAS ###
// ##########
/// The `Status` type defines a logical error model that is suitable for different
/// programming environments, including REST APIs and RPC APIs. It is used by
/// [gRPC](https://github.com/grpc). The error model is designed to be:
/// The `Status` type defines a logical error model that is suitable for
/// different programming environments, including REST APIs and RPC APIs. It is
/// used by [gRPC](https://github.com/grpc). The error model is designed to be:
///
/// - Simple to use and understand for most users
/// - Flexible enough to meet unexpected needs
///
/// # Overview
///
/// The `Status` message contains three pieces of data: error code, error message,
/// and error details. The error code should be an enum value of
/// The `Status` message contains three pieces of data: error code, error
/// message, and error details. The error code should be an enum value of
/// google.rpc.Code, but it may accept additional error codes if needed. The
/// error message should be a developer-facing English message that helps
/// developers *understand* and *resolve* the error. If a localized user-facing
@@ -441,21 +441,6 @@ pub struct Status {
impl Part for Status {}
/// The request message for Operations.CancelOperation.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [cancel operations](struct.OperationCancelCall.html) (request)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct CancelOperationRequest { _never_set: Option<bool> }
impl RequestValue for CancelOperationRequest {}
/// This resource represents a long-running operation that is the result of a
/// network API call.
///
@@ -499,25 +484,19 @@ pub struct Operation {
impl Resource for Operation {}
/// The response message for Operations.ListOperations.
/// The request message for Operations.CancelOperation.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [list operations](struct.OperationListCall.html) (response)
/// * [cancel operations](struct.OperationCancelCall.html) (request)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListOperationsResponse {
/// The standard List next-page token.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
/// A list of operations that matches the specified filter in the request.
pub operations: Option<Vec<Operation>>,
}
pub struct CancelOperationRequest { _never_set: Option<bool> }
impl ResponseResult for ListOperationsResponse {}
impl RequestValue for CancelOperationRequest {}
/// A generic empty message that you can re-use to avoid defining duplicated
@@ -544,6 +523,27 @@ pub struct Empty { _never_set: Option<bool> }
impl ResponseResult for Empty {}
/// The response message for Operations.ListOperations.
///
/// # Activities
///
/// This type is used in activities, which are methods you may call on this type or where this type is involved in.
/// The list links the activity name, along with information about where it is used (one of *request* and *response*).
///
/// * [list operations](struct.OperationListCall.html) (response)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListOperationsResponse {
/// The standard List next-page token.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
/// A list of operations that matches the specified filter in the request.
pub operations: Option<Vec<Operation>>,
}
impl ResponseResult for ListOperationsResponse {}
// ###################
// MethodBuilders ###
@@ -784,7 +784,7 @@ impl<'a, C, A> OperationListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
}
}
if find_this.as_bytes()[1] == '+' as u8 {
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET);
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET).to_string();
}
url = url.replace(find_this, &replace_with);
}
@@ -800,10 +800,7 @@ impl<'a, C, A> OperationListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
}
}
if params.len() > 0 {
url.push('?');
url.push_str(&url::form_urlencoded::serialize(params));
}
let url = hyper::Url::parse_with_params(&url, params).unwrap();
@@ -823,7 +820,7 @@ impl<'a, C, A> OperationListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
let auth_header = Authorization(Bearer { token: token.access_token });
let mut req_result = {
let mut client = &mut *self.hub.client.borrow_mut();
let mut req = client.borrow_mut().request(hyper::method::Method::Get, &url)
let mut req = client.borrow_mut().request(hyper::method::Method::Get, url.clone())
.header(UserAgent(self.hub._user_agent.clone()))
.header(auth_header.clone());
@@ -922,7 +919,7 @@ impl<'a, C, A> OperationListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
/// It should be used to set parameters which are not yet available through their own
/// setters.
///
/// Please note that this method must not be used to set any of the known paramters
/// Please note that this method must not be used to set any of the known parameters
/// which have their own setter method. If done anyway, the request will fail.
///
/// # Additional Parameters
@@ -1059,7 +1056,7 @@ impl<'a, C, A> OperationDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
}
}
if find_this.as_bytes()[1] == '+' as u8 {
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET);
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET).to_string();
}
url = url.replace(find_this, &replace_with);
}
@@ -1075,10 +1072,7 @@ impl<'a, C, A> OperationDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
}
}
if params.len() > 0 {
url.push('?');
url.push_str(&url::form_urlencoded::serialize(params));
}
let url = hyper::Url::parse_with_params(&url, params).unwrap();
@@ -1098,7 +1092,7 @@ impl<'a, C, A> OperationDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
let auth_header = Authorization(Bearer { token: token.access_token });
let mut req_result = {
let mut client = &mut *self.hub.client.borrow_mut();
let mut req = client.borrow_mut().request(hyper::method::Method::Delete, &url)
let mut req = client.borrow_mut().request(hyper::method::Method::Delete, url.clone())
.header(UserAgent(self.hub._user_agent.clone()))
.header(auth_header.clone());
@@ -1176,7 +1170,7 @@ impl<'a, C, A> OperationDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>,
/// It should be used to set parameters which are not yet available through their own
/// setters.
///
/// Please note that this method must not be used to set any of the known paramters
/// Please note that this method must not be used to set any of the known parameters
/// which have their own setter method. If done anyway, the request will fail.
///
/// # Additional Parameters
@@ -1326,7 +1320,7 @@ impl<'a, C, A> OperationCancelCall<'a, C, A> where C: BorrowMut<hyper::Client>,
}
}
if find_this.as_bytes()[1] == '+' as u8 {
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET);
replace_with = percent_encode(replace_with.as_bytes(), DEFAULT_ENCODE_SET).to_string();
}
url = url.replace(find_this, &replace_with);
}
@@ -1342,10 +1336,7 @@ impl<'a, C, A> OperationCancelCall<'a, C, A> where C: BorrowMut<hyper::Client>,
}
}
if params.len() > 0 {
url.push('?');
url.push_str(&url::form_urlencoded::serialize(params));
}
let url = hyper::Url::parse_with_params(&url, params).unwrap();
let mut json_mime_type = mime::Mime(mime::TopLevel::Application, mime::SubLevel::Json, Default::default());
let mut request_value_reader =
@@ -1377,7 +1368,7 @@ impl<'a, C, A> OperationCancelCall<'a, C, A> where C: BorrowMut<hyper::Client>,
request_value_reader.seek(io::SeekFrom::Start(0)).unwrap();
let mut req_result = {
let mut client = &mut *self.hub.client.borrow_mut();
let mut req = client.borrow_mut().request(hyper::method::Method::Post, &url)
let mut req = client.borrow_mut().request(hyper::method::Method::Post, url.clone())
.header(UserAgent(self.hub._user_agent.clone()))
.header(auth_header.clone())
.header(ContentType(json_mime_type.clone()))
@@ -1467,7 +1458,7 @@ impl<'a, C, A> OperationCancelCall<'a, C, A> where C: BorrowMut<hyper::Client>,
/// It should be used to set parameters which are not yet available through their own
/// setters.
///
/// Please note that this method must not be used to set any of the known paramters
/// Please note that this method must not be used to set any of the known parameters
/// which have their own setter method. If done anyway, the request will fail.
///
/// # Additional Parameters