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

@@ -480,12 +480,15 @@ fn main() {
let arg_data = [
("billing-accounts", "methods: 'get', 'list' and 'projects-list'", vec![
("get",
Some(r##"Gets information about a billing account. The current authenticated user must be an [owner of the billing account](https://support.google.com/cloud/answer/4430947)."##),
Some(r##"Gets information about a billing account. The current authenticated user
must be an [owner of the billing
account](https://support.google.com/cloud/answer/4430947)."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli/billing-accounts_get",
vec![
(Some(r##"name"##),
None,
Some(r##"The resource name of the billing account to retrieve. For example, `billingAccounts/012345-567890-ABCDEF`."##),
Some(r##"The resource name of the billing account to retrieve. For example,
`billingAccounts/012345-567890-ABCDEF`."##),
Some(true),
Some(false)),
@@ -502,7 +505,8 @@ fn main() {
Some(false)),
]),
("list",
Some(r##"Lists the billing accounts that the current authenticated user [owns](https://support.google.com/cloud/answer/4430947)."##),
Some(r##"Lists the billing accounts that the current authenticated user
[owns](https://support.google.com/cloud/answer/4430947)."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli/billing-accounts_list",
vec![
(Some(r##"v"##),
@@ -518,12 +522,15 @@ fn main() {
Some(false)),
]),
("projects-list",
Some(r##"Lists the projects associated with a billing account. The current authenticated user must be an [owner of the billing account](https://support.google.com/cloud/answer/4430947)."##),
Some(r##"Lists the projects associated with a billing account. The current
authenticated user must be an [owner of the billing
account](https://support.google.com/cloud/answer/4430947)."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli/billing-accounts_projects-list",
vec![
(Some(r##"name"##),
None,
Some(r##"The resource name of the billing account associated with the projects that you want to list. For example, `billingAccounts/012345-567890-ABCDEF`."##),
Some(r##"The resource name of the billing account associated with the projects that
you want to list. For example, `billingAccounts/012345-567890-ABCDEF`."##),
Some(true),
Some(false)),
@@ -543,12 +550,16 @@ fn main() {
("projects", "methods: 'get-billing-info' and 'update-billing-info'", vec![
("get-billing-info",
Some(r##"Gets the billing information for a project. The current authenticated user must have [permission to view the project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo )."##),
Some(r##"Gets the billing information for a project. The current authenticated user
must have [permission to view the
project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
)."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli/projects_get-billing-info",
vec![
(Some(r##"name"##),
None,
Some(r##"The resource name of the project for which billing information is retrieved. For example, `projects/tokyo-rain-123`."##),
Some(r##"The resource name of the project for which billing information is
retrieved. For example, `projects/tokyo-rain-123`."##),
Some(true),
Some(false)),
@@ -565,12 +576,43 @@ fn main() {
Some(false)),
]),
("update-billing-info",
Some(r##"Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. *Note:* Incurred charges that have not yet been reported in the transaction history of the Google Developers Console may be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing account](https://support.google.com/cloud/answer/4430947). You can disable billing on the project by setting the `billing_account_name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an *open* billing account."##),
Some(r##"Sets or updates the billing account associated with a project. You specify
the new billing account by setting the `billing_account_name` in the
`ProjectBillingInfo` resource to the resource name of a billing account.
Associating a project with an open billing account enables billing on the
project and allows charges for resource usage. If the project already had a
billing account, this method changes the billing account used for resource
usage charges.
*Note:* Incurred charges that have not yet been reported in the transaction
history of the Google Cloud Console may be billed to the new billing
account, even if the charge occurred before the new billing account was
assigned to the project.
The current authenticated user must have ownership privileges for both the
[project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
) and the [billing
account](https://support.google.com/cloud/answer/4430947).
You can disable billing on the project by setting the
`billing_account_name` field to empty. This action disassociates the
current billing account from the project. Any billable activity of your
in-use services will stop, and your application could stop functioning as
expected. Any unbilled charges to date will be billed to the previously
associated account. The current authenticated user must be either an owner
of the project or an owner of the billing account for the project.
Note that associating a project with a *closed* billing account will have
much the same effect as disabling billing on the project: any paid
resources used by the project will be shut down. Thus, unless you wish to
disable billing, you should always call this method with the name of an
*open* billing account."##),
"Details at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli/projects_update-billing-info",
vec![
(Some(r##"name"##),
None,
Some(r##"The resource name of the project associated with the billing information that you want to update. For example, `projects/tokyo-rain-123`."##),
Some(r##"The resource name of the project associated with the billing information
that you want to update. For example, `projects/tokyo-rain-123`."##),
Some(true),
Some(false)),
@@ -598,8 +640,9 @@ fn main() {
let mut app = App::new("cloudbilling1")
.author("Sebastian Thiel <byronimo@gmail.com>")
.version("1.0.4+20151222")
.about("Retrieves Google Developers Console billing accounts and associates them with projects.")
.version("1.0.4+20170504")
.about("Allows developers to manage billing for their Google Cloud Platform projects
programmatically.")
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli")
.arg(Arg::with_name("url")
.long("scope")