chore(json): update all apis

And bring in 5 new ones, including cloudkms.
Also update dependencies to make things compile again.
This commit is contained in:
Sebastian Thiel
2017-05-22 20:42:37 +02:00
parent 18f0cae1d0
commit 9cff808362
723 changed files with 182398 additions and 108055 deletions

View File

@@ -4,12 +4,12 @@
[package]
name = "google-cloudresourcemanager1_beta1"
version = "1.0.4+20161212"
version = "1.0.4+20170517"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
description = "A complete library to interact with Cloud Resource Manager (protocol v1beta1)"
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager1_beta1"
homepage = "https://cloud.google.com/resource-manager"
documentation = "https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212"
documentation = "https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517"
license = "MIT"
keywords = ["cloudresourcemanager", "google", "protocol", "web", "api"]

View File

@@ -5,18 +5,18 @@ DO NOT EDIT !
-->
The `google-cloudresourcemanager1_beta1` library allows access to all features of the *Google Cloud Resource Manager* service.
This documentation was generated from *Cloud Resource Manager* crate version *1.0.4+20161212*, where *20161212* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.4*.
This documentation was generated from *Cloud Resource Manager* crate version *1.0.4+20170517*, where *20170517* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.4*.
Everything else about the *Cloud Resource Manager* *v1_beta1* API can be found at the
[official documentation site](https://cloud.google.com/resource-manager).
# Features
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html) ...
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html) ...
* [organizations](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.Organization.html)
* [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationTestIamPermissionCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.OrganizationUpdateCall.html)
* [projects](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.Project.html)
* [*create*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectGetAncestryCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.ProjectUpdateCall.html)
* [organizations](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.Organization.html)
* [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationTestIamPermissionCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.OrganizationUpdateCall.html)
* [projects](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.Project.html)
* [*create*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectGetAncestryCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.ProjectUpdateCall.html)
@@ -25,17 +25,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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html)**
* **[Hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html)**
* a central object to maintain state and allow accessing all *Activities*
* creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Resource.html)**
* creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.MethodsBuilder.html) which in turn
allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.CallBuilder.html)
* **[Resources](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.Resource.html)**
* primary types that you can apply *Activities* to
* a collection of properties and *Parts*
* **[Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Part.html)**
* **[Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.Part.html)**
* a collection of properties
* never directly used in *Activities*
* **[Activities](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.CallBuilder.html)**
* **[Activities](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/enum.Result.html) enumeration as return value of
All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
[Hub Delegate](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/enum.Result.html), should be
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.ResponseResult.html), it will return that by default.
If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.Delegate.html) to the
[Method Builder](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort.
The [delegate trait](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/trait.RequestValue.html) and
[decodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.Part.html) which are identifiable by name, which will be sent to
Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods.
Using [method builders](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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-cloudresourcemanager1_beta1/1.0.4+20161212/google_cloudresourcemanager1_beta1/trait.RequestValue.html) are moved
* [request values](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.4+20170517/google_cloudresourcemanager1_beta1/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 Resource Manager* crate version *1.0.4+20161212*, where *20161212* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.4*.
//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.4+20170517*, where *20170517* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.4*.
//!
//! Everything else about the *Cloud Resource Manager* *v1_beta1* API can be found at the
//! [official documentation site](https://cloud.google.com/resource-manager).
@@ -353,6 +353,43 @@ impl<'a, C, A> CloudResourceManager<C, A>
// ############
// SCHEMAS ###
// ##########
/// Provides the configuration for logging a type of permissions.
/// Example:
///
/// {
/// "audit_log_configs": [
/// {
/// "log_type": "DATA_READ",
/// "exempted_members": [
/// "user:foo@gmail.com"
/// ]
/// },
/// {
/// "log_type": "DATA_WRITE",
/// }
/// ]
/// }
///
/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
/// foo@gmail.com from DATA_READ logging.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct AuditLogConfig {
/// Specifies the identities that do not cause logging for this type of
/// permission.
/// Follows the same format of Binding.members.
#[serde(rename="exemptedMembers")]
pub exempted_members: Option<Vec<String>>,
/// The log type that this config enables.
#[serde(rename="logType")]
pub log_type: Option<String>,
}
impl Part for AuditLogConfig {}
/// Request message for `GetIamPolicy` method.
///
/// # Activities
@@ -408,6 +445,13 @@ pub struct SetIamPolicyRequest {
/// valid policy but certain Cloud Platform services (such as Projects)
/// might reject them.
pub policy: Option<Policy>,
/// OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
/// the fields in the mask will be modified. If no mask is provided, the
/// following default mask is used:
/// paths: "bindings, etag"
/// This field is only used by Cloud IAM.
#[serde(rename="updateMask")]
pub update_mask: Option<String>,
}
impl RequestValue for SetIamPolicyRequest {}
@@ -434,7 +478,7 @@ impl ResponseResult for GetAncestryResponse {}
/// A Project is a high-level Google Cloud Platform entity. It is a
/// container for ACLs, APIs, AppEngine Apps, VMs, and other
/// container for ACLs, APIs, App Engine Apps, VMs, and other
/// Google Cloud Platform resources.
///
/// # Activities
@@ -461,7 +505,6 @@ pub struct Project {
/// hyphen, single-quote, double-quote, space, and exclamation point.
///
/// Example: <code>My Project</code>
///
/// Read-write.
pub name: Option<String>,
/// An optional reference to a parent Resource.
@@ -479,7 +522,6 @@ pub struct Project {
/// Trailing hyphens are prohibited.
///
/// Example: <code>tokyo-rain-123</code>
///
/// Read-only after creation.
#[serde(rename="projectId")]
pub project_id: Option<String>,
@@ -497,21 +539,19 @@ pub struct Project {
/// depend on specific characters being disallowed.
///
/// Example: <code>"environment" : "dev"</code>
///
/// Read-write.
pub labels: Option<HashMap<String, String>>,
/// The number uniquely identifying the project.
///
/// Example: <code>415104041262</code>
/// Read-only.
#[serde(rename="projectNumber")]
pub project_number: Option<String>,
/// Creation time.
///
/// Read-only.
#[serde(rename="createTime")]
pub create_time: Option<String>,
/// The number uniquely identifying the project.
///
/// Example: <code>415104041262</code>
///
/// Read-only.
#[serde(rename="projectNumber")]
pub project_number: Option<String>,
/// The Project lifecycle state.
///
/// Read-only.
@@ -600,6 +640,9 @@ pub struct Policy {
/// If no `etag` is provided in the call to `setIamPolicy`, then the existing
/// policy is overwritten blindly.
pub etag: Option<String>,
/// Specifies cloud audit logging configuration for this policy.
#[serde(rename="auditConfigs")]
pub audit_configs: Option<Vec<AuditConfig>>,
/// Version of the `Policy`. The default version is 0.
pub version: Option<i32>,
}
@@ -629,8 +672,8 @@ pub struct Organization {
/// This field is required.
pub owner: Option<OrganizationOwner>,
/// A friendly string to be used to refer to the Organization in the UI.
/// Assigned by the server, set to the firm name of the Google For Work
/// customer that owns this organization.
/// Assigned by the server, set to the primary domain of the G Suite
/// customer that owns the organization.
/// @OutputOnly
#[serde(rename="displayName")]
pub display_name: Option<String>,
@@ -659,42 +702,18 @@ impl Resource for Organization {}
impl ResponseResult for Organization {}
/// A page of the response received from the
/// ListProjects
/// method.
/// Identifying information for a single ancestor of a project.
///
/// A paginated response where more pages are available has
/// `next_page_token` set. This token can be used in a subsequent request to
/// retrieve the next request page.
///
/// # 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 projects](struct.ProjectListCall.html) (response)
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct ListProjectsResponse {
/// Pagination token.
///
/// If the result set is too large to fit in a single response, this token
/// is returned. It encodes the position of the current result cursor.
/// Feeding this value into a new list request with the `page_token` parameter
/// gives the next page of the results.
///
/// When `next_page_token` is not filled in, there is no next page and
/// the list returned is the last page in the result set.
///
/// Pagination tokens have a limited lifetime.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
/// The list of Projects that matched the list filter. This list can
/// be paginated.
pub projects: Option<Vec<Project>>,
pub struct Ancestor {
/// Resource id of the ancestor.
#[serde(rename="resourceId")]
pub resource_id: Option<ResourceId>,
}
impl ResponseResult for ListProjectsResponse {}
impl Part for Ancestor {}
/// A generic empty message that you can re-use to avoid defining duplicated
@@ -782,23 +801,47 @@ pub struct TestIamPermissionsResponse {
impl ResponseResult for TestIamPermissionsResponse {}
/// Identifying information for a single ancestor of a project.
/// A page of the response received from the
/// ListProjects
/// method.
///
/// This type is not used in any activity, and only used as *part* of another schema.
/// A paginated response where more pages are available has
/// `next_page_token` set. This token can be used in a subsequent request to
/// retrieve the next request page.
///
/// # 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 projects](struct.ProjectListCall.html) (response)
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct Ancestor {
/// Resource id of the ancestor.
#[serde(rename="resourceId")]
pub resource_id: Option<ResourceId>,
pub struct ListProjectsResponse {
/// Pagination token.
///
/// If the result set is too large to fit in a single response, this token
/// is returned. It encodes the position of the current result cursor.
/// Feeding this value into a new list request with the `page_token` parameter
/// gives the next page of the results.
///
/// When `next_page_token` is not filled in, there is no next page and
/// the list returned is the last page in the result set.
///
/// Pagination tokens have a limited lifetime.
#[serde(rename="nextPageToken")]
pub next_page_token: Option<String>,
/// The list of Projects that matched the list filter. This list can
/// be paginated.
pub projects: Option<Vec<Project>>,
}
impl Part for Ancestor {}
impl ResponseResult for ListProjectsResponse {}
/// A container to reference an id for any resource type. A `resource` in Google
/// Cloud Platform is a generic term for something you (a developer) may want to
/// interact with through one of our API's. Some examples are an AppEngine app,
/// interact with through one of our API's. Some examples are an App Engine app,
/// a Compute Engine instance, a Cloud SQL database, and so on.
///
/// This type is not used in any activity, and only used as *part* of another schema.
@@ -846,6 +889,7 @@ pub struct Binding {
/// * `group:{emailid}`: An email address that represents a Google group.
/// For example, `admins@example.com`.
///
///
/// * `domain:{domain}`: A Google Apps domain name that represents all the
/// users of that domain. For example, `google.com` or `example.com`.
///
@@ -856,6 +900,75 @@ pub struct Binding {
impl Part for Binding {}
/// Specifies the audit configuration for a service.
/// The configuration determines which permission types are logged, and what
/// identities, if any, are exempted from logging.
/// An AuditConfig must have one or more AuditLogConfigs.
///
/// If there are AuditConfigs for both `allServices` and a specific service,
/// the union of the two AuditConfigs is used for that service: the log_types
/// specified in each AuditConfig are enabled, and the exempted_members in each
/// AuditConfig are exempted.
///
/// Example Policy with multiple AuditConfigs:
///
/// {
/// "audit_configs": [
/// {
/// "service": "allServices"
/// "audit_log_configs": [
/// {
/// "log_type": "DATA_READ",
/// "exempted_members": [
/// "user:foo@gmail.com"
/// ]
/// },
/// {
/// "log_type": "DATA_WRITE",
/// },
/// {
/// "log_type": "ADMIN_READ",
/// }
/// ]
/// },
/// {
/// "service": "fooservice.googleapis.com"
/// "audit_log_configs": [
/// {
/// "log_type": "DATA_READ",
/// },
/// {
/// "log_type": "DATA_WRITE",
/// "exempted_members": [
/// "user:bar@gmail.com"
/// ]
/// }
/// ]
/// }
/// ]
/// }
///
/// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
/// logging. It also exempts foo@gmail.com from DATA_READ logging, and
/// bar@gmail.com from DATA_WRITE logging.
///
/// This type is not used in any activity, and only used as *part* of another schema.
///
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
pub struct AuditConfig {
/// The configuration for logging of each type of permission.
/// Next ID: 4
#[serde(rename="auditLogConfigs")]
pub audit_log_configs: Option<Vec<AuditLogConfig>>,
/// Specifies a service that will be enabled for audit logging.
/// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
/// `allServices` is a special value that covers all services.
pub service: Option<String>,
}
impl Part for AuditConfig {}
/// The entity that owns an Organization. The lifetime of the Organization and
/// all of its descendants are bound to the `OrganizationOwner`. If the
/// `OrganizationOwner` is deleted, the Organization and all its descendants will
@@ -926,8 +1039,7 @@ impl<'a, C, A> OrganizationMethods<'a, C, A> {
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy is being specified.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn set_iam_policy(&self, request: SetIamPolicyRequest, resource: &str) -> OrganizationSetIamPolicyCall<'a, C, A> {
OrganizationSetIamPolicyCall {
hub: self.hub,
@@ -949,8 +1061,7 @@ impl<'a, C, A> OrganizationMethods<'a, C, A> {
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn get_iam_policy(&self, request: GetIamPolicyRequest, resource: &str) -> OrganizationGetIamPolicyCall<'a, C, A> {
OrganizationGetIamPolicyCall {
hub: self.hub,
@@ -972,8 +1083,7 @@ impl<'a, C, A> OrganizationMethods<'a, C, A> {
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy detail is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn test_iam_permissions(&self, request: TestIamPermissionsRequest, resource: &str) -> OrganizationTestIamPermissionCall<'a, C, A> {
OrganizationTestIamPermissionCall {
hub: self.hub,
@@ -1090,8 +1200,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy detail is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn test_iam_permissions(&self, request: TestIamPermissionsRequest, resource: &str) -> ProjectTestIamPermissionCall<'a, C, A> {
ProjectTestIamPermissionCall {
hub: self.hub,
@@ -1174,15 +1283,15 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
/// must be granted the owner role using the Cloud Platform Console and must
/// explicitly accept the invitation.
///
/// + Invitations to grant the owner role cannot be sent using `setIamPolicy()`;
/// they must be sent only using the Cloud Platform Console.
/// + Invitations to grant the owner role cannot be sent using
/// `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
///
/// + Membership changes that leave the project without any owners that have
/// accepted the Terms of Service (ToS) will be rejected.
///
/// + There must be at least one owner who has accepted the Terms of
/// Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
/// to remove the last ToS-accepted owner from the policy will fail. This
/// remove the last ToS-accepted owner from the policy will fail. This
/// restriction also applies to legacy projects that no longer have owners
/// who have accepted the ToS. Edits to IAM policies will be rejected until
/// the lack of a ToS-accepting owner is rectified.
@@ -1191,14 +1300,14 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// Note: Removing service accounts from policies or changing their roles
/// can render services completely inoperable. It is important to understand
/// how the service account is being used before removing or updating its roles.
/// how the service account is being used before removing or updating its
/// roles.
///
/// # Arguments
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy is being specified.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn set_iam_policy(&self, request: SetIamPolicyRequest, resource: &str) -> ProjectSetIamPolicyCall<'a, C, A> {
ProjectSetIamPolicyCall {
hub: self.hub,
@@ -1286,8 +1395,7 @@ impl<'a, C, A> ProjectMethods<'a, C, A> {
///
/// * `request` - No description provided.
/// * `resource` - REQUIRED: The resource for which the policy is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
pub fn get_iam_policy(&self, request: GetIamPolicyRequest, resource: &str) -> ProjectGetIamPolicyCall<'a, C, A> {
ProjectGetIamPolicyCall {
hub: self.hub,
@@ -1577,8 +1685,7 @@ impl<'a, C, A> OrganizationSetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::
self
}
/// REQUIRED: The resource for which the policy is being specified.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -1857,8 +1964,7 @@ impl<'a, C, A> OrganizationGetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::
self
}
/// REQUIRED: The resource for which the policy is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -2137,8 +2243,7 @@ impl<'a, C, A> OrganizationTestIamPermissionCall<'a, C, A> where C: BorrowMut<hy
self
}
/// REQUIRED: The resource for which the policy detail is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -3208,8 +3313,7 @@ impl<'a, C, A> ProjectTestIamPermissionCall<'a, C, A> where C: BorrowMut<hyper::
self
}
/// REQUIRED: The resource for which the policy detail is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -3833,15 +3937,15 @@ impl<'a, C, A> ProjectCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
/// must be granted the owner role using the Cloud Platform Console and must
/// explicitly accept the invitation.
///
/// + Invitations to grant the owner role cannot be sent using `setIamPolicy()`;
/// they must be sent only using the Cloud Platform Console.
/// + Invitations to grant the owner role cannot be sent using
/// `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
///
/// + Membership changes that leave the project without any owners that have
/// accepted the Terms of Service (ToS) will be rejected.
///
/// + There must be at least one owner who has accepted the Terms of
/// Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
/// to remove the last ToS-accepted owner from the policy will fail. This
/// remove the last ToS-accepted owner from the policy will fail. This
/// restriction also applies to legacy projects that no longer have owners
/// who have accepted the ToS. Edits to IAM policies will be rejected until
/// the lack of a ToS-accepting owner is rectified.
@@ -3850,7 +3954,8 @@ impl<'a, C, A> ProjectCreateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
///
/// Note: Removing service accounts from policies or changing their roles
/// can render services completely inoperable. It is important to understand
/// how the service account is being used before removing or updating its roles.
/// how the service account is being used before removing or updating its
/// roles.
///
/// A builder for the *setIamPolicy* method supported by a *project* resource.
/// It is not used directly, but through a `ProjectMethods` instance.
@@ -4055,8 +4160,7 @@ impl<'a, C, A> ProjectSetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::Clien
self
}
/// REQUIRED: The resource for which the policy is being specified.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -5130,8 +5234,7 @@ impl<'a, C, A> ProjectGetIamPolicyCall<'a, C, A> where C: BorrowMut<hyper::Clien
self
}
/// REQUIRED: The resource for which the policy is being requested.
/// `resource` is usually specified as a path. For example, a Project
/// resource is specified as `projects/{project}`.
/// See the operation documentation for the appropriate value for this field.
///
/// Sets the *resource* path property to the given value.
///
@@ -5664,13 +5767,14 @@ impl<'a, C, A> ProjectListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
///
/// |Filter|Description|
/// |------|-----------|
/// |name:*|The project has a name.|
/// |name:how*|The project's name starts with "how".|
/// |name:Howl|The project's name is `Howl` or `howl`.|
/// |name:HOWL|Equivalent to above.|
/// |NAME:howl|Equivalent to above.|
/// |labels.color:*|The project has the label `color`.|
/// |labels.color:red|The project's label `color` has the value `red`.|
/// |labels.color:red&nbsp;label.size:big|The project's label `color` has the value `red` and its label `size` has the value `big`.
/// |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
/// value `red` and its label `size` has the value `big`.
///
/// Optional.
///