mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-06 11:34:34 +01:00
Bump version to 1.0.9; update JSON schemas; add new APIs
This commit is contained in:
@@ -67,6 +67,17 @@ pub fn remove_json_null_values(value: &mut Value) {
|
||||
map.remove(key);
|
||||
}
|
||||
}
|
||||
json::value::Value::Array(ref mut arr) => {
|
||||
let mut i = 0;
|
||||
while i < arr.len() {
|
||||
if arr[i].is_null() {
|
||||
arr.remove(i);
|
||||
} else {
|
||||
remove_json_null_values(&mut arr[i]);
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,8 +125,9 @@ impl<'n> Engine<'n> {
|
||||
|
||||
let type_info: Option<(&'static str, JsonTypeInfo)> =
|
||||
match &temp_cursor.to_string()[..] {
|
||||
"options.requested-policy-version" => Some(("options.requestedPolicyVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
_ => {
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec![]);
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec!["options", "requested-policy-version"]);
|
||||
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
|
||||
None
|
||||
}
|
||||
@@ -817,8 +818,9 @@ impl<'n> Engine<'n> {
|
||||
|
||||
let type_info: Option<(&'static str, JsonTypeInfo)> =
|
||||
match &temp_cursor.to_string()[..] {
|
||||
"options.requested-policy-version" => Some(("options.requestedPolicyVersion", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
|
||||
_ => {
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec![]);
|
||||
let suggestion = FieldCursor::did_you_mean(key, &vec!["options", "requested-policy-version"]);
|
||||
err.issues.push(CLIError::Field(FieldError::Unknown(temp_cursor.to_string(), suggestion, value.map(|v| v.to_string()))));
|
||||
None
|
||||
}
|
||||
@@ -1665,8 +1667,9 @@ fn main() {
|
||||
However, you cannot update the project.
|
||||
|
||||
After the deletion completes, the Project is not retrievable by
|
||||
the GetProject and
|
||||
ListProjects methods.
|
||||
the GetProject
|
||||
and ListProjects
|
||||
methods.
|
||||
|
||||
The caller must have modify permissions for this Project."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_cloudresourcemanager1_beta1_cli/projects_delete",
|
||||
@@ -1785,12 +1788,22 @@ fn main() {
|
||||
Some(false)),
|
||||
]),
|
||||
("list",
|
||||
Some(r##"Lists Projects that are visible to the user and satisfy the
|
||||
specified filter. This method returns Projects in an unspecified order.
|
||||
Some(r##"Lists Projects that the caller has the `resourcemanager.projects.get`
|
||||
permission on and satisfy the specified filter.
|
||||
|
||||
This method returns Projects in an unspecified order.
|
||||
This method is eventually consistent with project mutations; this means
|
||||
that a newly created project may not appear in the results or recent
|
||||
updates to an existing project may not be reflected in the results. To
|
||||
retrieve the latest state of a project, use the GetProjectmethod."##),
|
||||
retrieve the latest state of a project, use the
|
||||
GetProject method.
|
||||
|
||||
NOTE: If the request filter contains a `parent.type` and `parent.id` and
|
||||
the caller has the `resourcemanager.projects.list` permission on the
|
||||
parent, the results will be drawn from an alternate index which provides
|
||||
more consistent results. In future versions of this API, this List method
|
||||
will be split into List and Search to properly capture the behavorial
|
||||
difference."##),
|
||||
"Details at http://byron.github.io/google-apis-rs/google_cloudresourcemanager1_beta1_cli/projects_list",
|
||||
vec![
|
||||
(Some(r##"v"##),
|
||||
@@ -1976,7 +1989,7 @@ fn main() {
|
||||
|
||||
let mut app = App::new("cloudresourcemanager1-beta1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("1.0.8+20190401")
|
||||
.version("1.0.9+20190701")
|
||||
.about("Creates, reads, and updates metadata for Google Cloud Platform resource containers.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudresourcemanager1_beta1_cli")
|
||||
.arg(Arg::with_name("url")
|
||||
|
||||
Reference in New Issue
Block a user