mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(json): fetch latest json and re-gen all code
This commit is contained in:
@@ -716,8 +716,8 @@ impl<'n> Engine<'n> {
|
||||
|
||||
let type_info: Option<(&'static str, JsonTypeInfo)> =
|
||||
match &temp_cursor.to_string()[..] {
|
||||
"policy.version" => Some(("policy.version", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
"policy.etag" => Some(("policy.etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
|
||||
"policy.version" => Some(("policy.version", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
_ => {
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec!["etag", "policy", "version"]);
|
||||
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
|
||||
@@ -1271,8 +1271,8 @@ impl<'n> Engine<'n> {
|
||||
|
||||
let type_info: Option<(&'static str, JsonTypeInfo)> =
|
||||
match &temp_cursor.to_string()[..] {
|
||||
"policy.version" => Some(("policy.version", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
"policy.etag" => Some(("policy.etag", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
|
||||
"policy.version" => Some(("policy.version", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
_ => {
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec!["etag", "policy", "version"]);
|
||||
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
|
||||
@@ -1639,7 +1639,13 @@ fn main() {
|
||||
let arg_data = [
|
||||
("projects", "methods: 'subscriptions-acknowledge', 'subscriptions-create', 'subscriptions-delete', 'subscriptions-get', 'subscriptions-get-iam-policy', 'subscriptions-list', 'subscriptions-modify-ack-deadline', 'subscriptions-modify-push-config', 'subscriptions-pull', 'subscriptions-set-iam-policy', 'subscriptions-test-iam-permissions', 'topics-create', 'topics-delete', 'topics-get', 'topics-get-iam-policy', 'topics-list', 'topics-publish', 'topics-set-iam-policy', 'topics-subscriptions-list' and 'topics-test-iam-permissions'", vec![
|
||||
("subscriptions-acknowledge",
|
||||
Some(r##"Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error."##),
|
||||
Some(r##"Acknowledges the messages associated with the `ack_ids` in the
|
||||
`AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
||||
from the subscription.
|
||||
|
||||
Acknowledging a message whose ack deadline has expired may succeed,
|
||||
but such a message may be redelivered later. Acknowledging a message more
|
||||
than once will not result in an error."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-acknowledge",
|
||||
vec![
|
||||
(Some(r##"subscription"##),
|
||||
@@ -1667,12 +1673,23 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-create",
|
||||
Some(r##"Creates a subscription to a given topic. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic."##),
|
||||
Some(r##"Creates a subscription to a given topic.
|
||||
If the subscription already exists, returns `ALREADY_EXISTS`.
|
||||
If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
||||
|
||||
If the name is not provided in the request, the server will assign a random
|
||||
name for this subscription on the same project as the topic. Note that
|
||||
for REST API requests, you must specify a name."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-create",
|
||||
vec![
|
||||
(Some(r##"name"##),
|
||||
None,
|
||||
Some(r##"The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`."##),
|
||||
Some(r##"The name of the subscription. It must have the format
|
||||
`"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
|
||||
start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
||||
(`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
||||
plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
||||
in length, and it must not start with `"goog"`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1695,7 +1712,11 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-delete",
|
||||
Some(r##"Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified."##),
|
||||
Some(r##"Deletes an existing subscription. All pending messages in the subscription
|
||||
are immediately dropped. Calls to `Pull` after deletion will return
|
||||
`NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
||||
the same name, but the new one has no association with the old
|
||||
subscription, or its topic unless the same topic is specified."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-delete",
|
||||
vec![
|
||||
(Some(r##"subscription"##),
|
||||
@@ -1739,12 +1760,16 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-get-iam-policy",
|
||||
Some(r##"Gets the access control policy for a `resource`. Returns an empty policy if the resource exists and does not have a policy set."##),
|
||||
Some(r##"Gets the access control policy for a resource.
|
||||
Returns an empty policy if the resource exists and does not have a policy
|
||||
set."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-get-iam-policy",
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `getIamPolicy` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1783,7 +1808,11 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-modify-ack-deadline",
|
||||
Some(r##"Modifies the ack deadline for a specific message. This method is useful to indicate that more time is needed to process a message by the subscriber, or to make the message available for redelivery if the processing was interrupted."##),
|
||||
Some(r##"Modifies the ack deadline for a specific message. This method is useful
|
||||
to indicate that more time is needed to process a message by the
|
||||
subscriber, or to make the message available for redelivery if the
|
||||
processing was interrupted. Note that this does not modify the
|
||||
subscription-level `ackDeadlineSeconds` used for subsequent messages."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-modify-ack-deadline",
|
||||
vec![
|
||||
(Some(r##"subscription"##),
|
||||
@@ -1811,7 +1840,12 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-modify-push-config",
|
||||
Some(r##"Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`."##),
|
||||
Some(r##"Modifies the `PushConfig` for a specified subscription.
|
||||
|
||||
This may be used to change a push subscription to a pull one (signified by
|
||||
an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
||||
attributes of a push subscription. Messages will accumulate for delivery
|
||||
continuously through the call regardless of changes to the `PushConfig`."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-modify-push-config",
|
||||
vec![
|
||||
(Some(r##"subscription"##),
|
||||
@@ -1839,7 +1873,10 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-pull",
|
||||
Some(r##"Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription."##),
|
||||
Some(r##"Pulls messages from the server. Returns an empty list if there are no
|
||||
messages available in the backlog. The server may return `UNAVAILABLE` if
|
||||
there are too many concurrent pull requests pending for the given
|
||||
subscription."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-pull",
|
||||
vec![
|
||||
(Some(r##"subscription"##),
|
||||
@@ -1867,12 +1904,15 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("subscriptions-set-iam-policy",
|
||||
Some(r##"Sets the access control policy on the specified resource. Replaces any existing policy."##),
|
||||
Some(r##"Sets the access control policy on the specified resource. Replaces any
|
||||
existing policy."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_subscriptions-set-iam-policy",
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `setIamPolicy` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1900,7 +1940,9 @@ fn main() {
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `testIamPermissions` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1928,7 +1970,12 @@ fn main() {
|
||||
vec![
|
||||
(Some(r##"name"##),
|
||||
None,
|
||||
Some(r##"The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`."##),
|
||||
Some(r##"The name of the topic. It must have the format
|
||||
`"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
|
||||
and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
||||
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
||||
signs (`%`). It must be between 3 and 255 characters in length, and it
|
||||
must not start with `"goog"`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -1951,7 +1998,11 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("topics-delete",
|
||||
Some(r##"Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`."##),
|
||||
Some(r##"Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
||||
does not exist. After a topic is deleted, a new topic may be created with
|
||||
the same name; this is an entirely new topic with none of the old
|
||||
configuration or subscriptions. Existing subscriptions to this topic are
|
||||
not deleted, but their `topic` field is set to `_deleted-topic_`."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_topics-delete",
|
||||
vec![
|
||||
(Some(r##"topic"##),
|
||||
@@ -1995,12 +2046,16 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("topics-get-iam-policy",
|
||||
Some(r##"Gets the access control policy for a `resource`. Returns an empty policy if the resource exists and does not have a policy set."##),
|
||||
Some(r##"Gets the access control policy for a resource.
|
||||
Returns an empty policy if the resource exists and does not have a policy
|
||||
set."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_topics-get-iam-policy",
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `getIamPolicy` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -2039,7 +2094,9 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("topics-publish",
|
||||
Some(r##"Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute."##),
|
||||
Some(r##"Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
||||
does not exist. The message payload must not be empty; it must contain
|
||||
either a non-empty data field, or at least one attribute."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_topics-publish",
|
||||
vec![
|
||||
(Some(r##"topic"##),
|
||||
@@ -2067,12 +2124,15 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("topics-set-iam-policy",
|
||||
Some(r##"Sets the access control policy on the specified resource. Replaces any existing policy."##),
|
||||
Some(r##"Sets the access control policy on the specified resource. Replaces any
|
||||
existing policy."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli/projects_topics-set-iam-policy",
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `setIamPolicy` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -2122,7 +2182,9 @@ fn main() {
|
||||
vec![
|
||||
(Some(r##"resource"##),
|
||||
None,
|
||||
Some(r##"REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `testIamPermissions` documentation."##),
|
||||
Some(r##"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}`."##),
|
||||
Some(true),
|
||||
Some(false)),
|
||||
|
||||
@@ -2150,8 +2212,9 @@ fn main() {
|
||||
|
||||
let mut app = App::new("pubsub1-beta2")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("1.0.0+20160317")
|
||||
.about("Provides reliable, many-to-many, asynchronous messaging between applications.")
|
||||
.version("1.0.0+20161122")
|
||||
.about("Provides reliable, many-to-many, asynchronous messaging between applications.
|
||||
")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
.long("scope")
|
||||
|
||||
Reference in New Issue
Block a user