mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(code-gen): update to latest version
Which is to be published
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-storage1"
|
||||
version = "0.1.14+20160330"
|
||||
version = "0.1.14+20160901"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with storage (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/storage1"
|
||||
@@ -18,10 +18,10 @@ build = "src/build.rs"
|
||||
[dependencies]
|
||||
hyper = "^ 0.9"
|
||||
mime = "^ 0.2.0"
|
||||
serde = "^ 0.7.5"
|
||||
serde_json = "^ 0.7.0"
|
||||
yup-oauth2 = { version = "^ 0.6.0", optional = true, default-features = false }
|
||||
serde_macros = { version = "^ 0.7.5", optional = true }
|
||||
serde = "^ 0.8"
|
||||
serde_json = "^ 0.8"
|
||||
yup-oauth2 = { version = "^ 0.6", optional = true, default-features = false }
|
||||
serde_macros = { version = "^ 0.8", optional = true }
|
||||
url = "= 0.5"
|
||||
|
||||
[features]
|
||||
@@ -30,5 +30,5 @@ nightly = ["serde_macros","yup-oauth2/nightly"]
|
||||
with-serde-codegen = ["serde_codegen","yup-oauth2/with-serde-codegen"]
|
||||
|
||||
[build-dependencies]
|
||||
serde_codegen = { version = "^ 0.7.14", optional = true }
|
||||
serde_codegen = { version = "^ 0.8", optional = true }
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-storage1` library allows access to all features of the *Google storage* service.
|
||||
|
||||
This documentation was generated from *storage* crate version *0.1.14+20160330*, where *20160330* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.14*.
|
||||
This documentation was generated from *storage* crate version *0.1.14+20160901*, where *20160901* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.14*.
|
||||
|
||||
Everything else about the *storage* *v1* API can be found at the
|
||||
[official documentation site](https://developers.google.com/storage/docs/json_api/).
|
||||
@@ -148,6 +148,7 @@ let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destina
|
||||
.if_generation_not_match("nonumy")
|
||||
.if_generation_match("dolores")
|
||||
.destination_predefined_acl("gubergren")
|
||||
.destination_kms_key_name("sadipscing")
|
||||
.doit();
|
||||
|
||||
match result {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *storage* crate version *0.1.14+20160330*, where *20160330* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.14*.
|
||||
//! This documentation was generated from *storage* crate version *0.1.14+20160901*, where *20160901* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.14*.
|
||||
//!
|
||||
//! Everything else about the *storage* *v1* API can be found at the
|
||||
//! [official documentation site](https://developers.google.com/storage/docs/json_api/).
|
||||
@@ -136,19 +136,20 @@
|
||||
//! // execute the final call using `doit()`.
|
||||
//! // Values shown here are possibly random and not representative !
|
||||
//! let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject")
|
||||
//! .source_generation("accusam")
|
||||
//! .rewrite_token("dolores")
|
||||
//! .projection("consetetur")
|
||||
//! .max_bytes_rewritten_per_call("dolor")
|
||||
//! .if_source_metageneration_not_match("aliquyam")
|
||||
//! .if_source_metageneration_match("elitr")
|
||||
//! .if_source_generation_not_match("ea")
|
||||
//! .if_source_generation_match("et")
|
||||
//! .if_metageneration_not_match("Stet")
|
||||
//! .if_metageneration_match("sed")
|
||||
//! .if_generation_not_match("dolor")
|
||||
//! .if_generation_match("sanctus")
|
||||
//! .destination_predefined_acl("dolore")
|
||||
//! .source_generation("elitr")
|
||||
//! .rewrite_token("ea")
|
||||
//! .projection("et")
|
||||
//! .max_bytes_rewritten_per_call("Stet")
|
||||
//! .if_source_metageneration_not_match("sed")
|
||||
//! .if_source_metageneration_match("dolor")
|
||||
//! .if_source_generation_not_match("sanctus")
|
||||
//! .if_source_generation_match("dolore")
|
||||
//! .if_metageneration_not_match("Lorem")
|
||||
//! .if_metageneration_match("consetetur")
|
||||
//! .if_generation_not_match("consetetur")
|
||||
//! .if_generation_match("eirmod")
|
||||
//! .destination_predefined_acl("labore")
|
||||
//! .destination_kms_key_name("gubergren")
|
||||
//! .doit();
|
||||
//!
|
||||
//! match result {
|
||||
|
||||
@@ -115,18 +115,19 @@ impl Default for Scope {
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject")
|
||||
/// .source_generation("justo")
|
||||
/// .rewrite_token("justo")
|
||||
/// .rewrite_token("et")
|
||||
/// .projection("et")
|
||||
/// .max_bytes_rewritten_per_call("et")
|
||||
/// .if_source_metageneration_not_match("diam")
|
||||
/// .if_source_metageneration_match("ipsum")
|
||||
/// .if_source_generation_not_match("Lorem")
|
||||
/// .if_source_generation_match("et")
|
||||
/// .if_metageneration_not_match("duo")
|
||||
/// .if_metageneration_match("aliquyam")
|
||||
/// .if_generation_not_match("sea")
|
||||
/// .if_generation_match("Lorem")
|
||||
/// .destination_predefined_acl("eos")
|
||||
/// .max_bytes_rewritten_per_call("diam")
|
||||
/// .if_source_metageneration_not_match("ipsum")
|
||||
/// .if_source_metageneration_match("Lorem")
|
||||
/// .if_source_generation_not_match("et")
|
||||
/// .if_source_generation_match("duo")
|
||||
/// .if_metageneration_not_match("aliquyam")
|
||||
/// .if_metageneration_match("sea")
|
||||
/// .if_generation_not_match("Lorem")
|
||||
/// .if_generation_match("eos")
|
||||
/// .destination_predefined_acl("erat")
|
||||
/// .destination_kms_key_name("sadipscing")
|
||||
/// .doit();
|
||||
///
|
||||
/// match result {
|
||||
@@ -245,7 +246,7 @@ pub struct ObjectAccessControlProjectTeam {
|
||||
/// The project number.
|
||||
#[serde(rename="projectNumber")]
|
||||
pub project_number: Option<String>,
|
||||
/// The team. Can be owners, editors, or viewers.
|
||||
/// The team.
|
||||
pub team: Option<String>,
|
||||
}
|
||||
|
||||
@@ -276,16 +277,16 @@ impl NestedType for BucketLifecycleRuleCondition {}
|
||||
impl Part for BucketLifecycleRuleCondition {}
|
||||
|
||||
|
||||
/// The bucket's website configuration.
|
||||
/// The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct BucketWebsite {
|
||||
/// The custom object to return when a requested resource is not found.
|
||||
/// If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
|
||||
#[serde(rename="notFoundPage")]
|
||||
pub not_found_page: Option<String>,
|
||||
/// Behaves as the bucket's directory index where missing objects are treated as potential directories.
|
||||
/// If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
|
||||
#[serde(rename="mainPageSuffix")]
|
||||
pub main_page_suffix: Option<String>,
|
||||
}
|
||||
@@ -407,7 +408,7 @@ pub struct Object {
|
||||
pub self_link: Option<String>,
|
||||
/// The modification time of the object metadata in RFC 3339 format.
|
||||
pub updated: Option<String>,
|
||||
/// Content-Type of the object data.
|
||||
/// Content-Type of the object data. If contentType is not specified, object downloads will be served as application/octet-stream.
|
||||
#[serde(rename="contentType")]
|
||||
pub content_type: Option<String>,
|
||||
/// The creation time of the object in RFC 3339 format.
|
||||
@@ -426,9 +427,12 @@ pub struct Object {
|
||||
/// Media download link.
|
||||
#[serde(rename="mediaLink")]
|
||||
pub media_link: Option<String>,
|
||||
/// Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
|
||||
#[serde(rename="kmsKeyName")]
|
||||
pub kms_key_name: Option<String>,
|
||||
/// The owner of the object. This will always be the uploader of the object.
|
||||
pub owner: Option<ObjectOwner>,
|
||||
/// Cache-Control directive for the object data.
|
||||
/// Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.
|
||||
#[serde(rename="cacheControl")]
|
||||
pub cache_control: Option<String>,
|
||||
/// Access controls on the object.
|
||||
@@ -551,7 +555,7 @@ pub struct BucketAccessControlProjectTeam {
|
||||
/// The project number.
|
||||
#[serde(rename="projectNumber")]
|
||||
pub project_number: Option<String>,
|
||||
/// The team. Can be owners, editors, or viewers.
|
||||
/// The team.
|
||||
pub team: Option<String>,
|
||||
}
|
||||
|
||||
@@ -609,7 +613,7 @@ impl Part for ComposeRequestSourceObjects {}
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Bucket {
|
||||
/// The bucket's website configuration.
|
||||
/// The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
|
||||
pub website: Option<BucketWebsite>,
|
||||
/// The modification time of the bucket in RFC 3339 format.
|
||||
pub updated: Option<String>,
|
||||
@@ -637,6 +641,8 @@ pub struct Bucket {
|
||||
pub logging: Option<BucketLogging>,
|
||||
/// The name of the bucket.
|
||||
pub name: Option<String>,
|
||||
/// Encryption configuration used by default for newly inserted objects, when no encryption config is specified.
|
||||
pub encryption: Option<BucketEncryption>,
|
||||
/// The project number of the project the bucket belongs to.
|
||||
#[serde(rename="projectNumber")]
|
||||
pub project_number: Option<String>,
|
||||
@@ -659,6 +665,20 @@ impl Resource for Bucket {}
|
||||
impl ResponseResult for Bucket {}
|
||||
|
||||
|
||||
/// Encryption configuration used by default for newly inserted objects, when no encryption config is specified.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct BucketEncryption {
|
||||
/// no description provided
|
||||
pub default_kms_key_name: Option<String>,
|
||||
}
|
||||
|
||||
impl NestedType for BucketEncryption {}
|
||||
impl Part for BucketEncryption {}
|
||||
|
||||
|
||||
/// Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -716,7 +736,7 @@ pub struct BucketAccessControl {
|
||||
pub email: Option<String>,
|
||||
/// HTTP 1.1 Entity tag for the access-control entry.
|
||||
pub etag: Option<String>,
|
||||
/// The access permission for the entity. Can be READER, WRITER, or OWNER.
|
||||
/// The access permission for the entity.
|
||||
pub role: Option<String>,
|
||||
/// The ID for the entity, if any.
|
||||
#[serde(rename="entityId")]
|
||||
@@ -783,7 +803,7 @@ pub struct ObjectAccessControl {
|
||||
pub email: Option<String>,
|
||||
/// HTTP 1.1 Entity tag for the access-control entry.
|
||||
pub etag: Option<String>,
|
||||
/// The access permission for the entity. Can be READER or OWNER.
|
||||
/// The access permission for the entity.
|
||||
pub role: Option<String>,
|
||||
/// The ID for the entity, if any.
|
||||
#[serde(rename="entityId")]
|
||||
@@ -1378,6 +1398,7 @@ impl<'a, C, A> ObjectMethods<'a, C, A> {
|
||||
_if_generation_not_match: Default::default(),
|
||||
_if_generation_match: Default::default(),
|
||||
_destination_predefined_acl: Default::default(),
|
||||
_destination_kms_key_name: Default::default(),
|
||||
_delegate: Default::default(),
|
||||
_scopes: Default::default(),
|
||||
_additional_params: Default::default(),
|
||||
@@ -1478,6 +1499,7 @@ impl<'a, C, A> ObjectMethods<'a, C, A> {
|
||||
_projection: Default::default(),
|
||||
_predefined_acl: Default::default(),
|
||||
_name: Default::default(),
|
||||
_kms_key_name: Default::default(),
|
||||
_if_metageneration_not_match: Default::default(),
|
||||
_if_metageneration_match: Default::default(),
|
||||
_if_generation_not_match: Default::default(),
|
||||
@@ -1504,6 +1526,7 @@ impl<'a, C, A> ObjectMethods<'a, C, A> {
|
||||
_request: request,
|
||||
_destination_bucket: destination_bucket.to_string(),
|
||||
_destination_object: destination_object.to_string(),
|
||||
_kms_key_name: Default::default(),
|
||||
_if_metageneration_match: Default::default(),
|
||||
_if_generation_match: Default::default(),
|
||||
_destination_predefined_acl: Default::default(),
|
||||
@@ -2550,8 +2573,8 @@ impl<'a, C, A> DefaultObjectAccessControlUpdateCall<'a, C, A> where C: BorrowMut
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.default_object_access_controls().list("bucket")
|
||||
/// .if_metageneration_not_match("elitr")
|
||||
/// .if_metageneration_match("amet")
|
||||
/// .if_metageneration_not_match("no")
|
||||
/// .if_metageneration_match("labore")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -5338,19 +5361,20 @@ impl<'a, C, A> ChannelStopCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().rewrite(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject")
|
||||
/// .source_generation("sed")
|
||||
/// .source_generation("dolor")
|
||||
/// .rewrite_token("dolor")
|
||||
/// .projection("dolor")
|
||||
/// .max_bytes_rewritten_per_call("dolor")
|
||||
/// .if_source_metageneration_not_match("et")
|
||||
/// .if_source_metageneration_match("consetetur")
|
||||
/// .if_source_generation_not_match("amet.")
|
||||
/// .if_source_generation_match("voluptua.")
|
||||
/// .if_metageneration_not_match("Lorem")
|
||||
/// .if_metageneration_match("gubergren")
|
||||
/// .if_generation_not_match("justo")
|
||||
/// .if_generation_match("sit")
|
||||
/// .destination_predefined_acl("vero")
|
||||
/// .projection("et")
|
||||
/// .max_bytes_rewritten_per_call("consetetur")
|
||||
/// .if_source_metageneration_not_match("amet.")
|
||||
/// .if_source_metageneration_match("voluptua.")
|
||||
/// .if_source_generation_not_match("Lorem")
|
||||
/// .if_source_generation_match("gubergren")
|
||||
/// .if_metageneration_not_match("justo")
|
||||
/// .if_metageneration_match("sit")
|
||||
/// .if_generation_not_match("vero")
|
||||
/// .if_generation_match("diam")
|
||||
/// .destination_predefined_acl("rebum.")
|
||||
/// .destination_kms_key_name("consetetur")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -5376,6 +5400,7 @@ pub struct ObjectRewriteCall<'a, C, A>
|
||||
_if_generation_not_match: Option<String>,
|
||||
_if_generation_match: Option<String>,
|
||||
_destination_predefined_acl: Option<String>,
|
||||
_destination_kms_key_name: Option<String>,
|
||||
_delegate: Option<&'a mut Delegate>,
|
||||
_additional_params: HashMap<String, String>,
|
||||
_scopes: BTreeMap<String, ()>
|
||||
@@ -5397,7 +5422,7 @@ impl<'a, C, A> ObjectRewriteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "storage.objects.rewrite",
|
||||
http_method: hyper::method::Method::Post });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((20 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((21 + self._additional_params.len()));
|
||||
params.push(("sourceBucket", self._source_bucket.to_string()));
|
||||
params.push(("sourceObject", self._source_object.to_string()));
|
||||
params.push(("destinationBucket", self._destination_bucket.to_string()));
|
||||
@@ -5441,7 +5466,10 @@ impl<'a, C, A> ObjectRewriteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
if let Some(value) = self._destination_predefined_acl {
|
||||
params.push(("destinationPredefinedAcl", value.to_string()));
|
||||
}
|
||||
for &field in ["alt", "sourceBucket", "sourceObject", "destinationBucket", "destinationObject", "sourceGeneration", "rewriteToken", "projection", "maxBytesRewrittenPerCall", "ifSourceMetagenerationNotMatch", "ifSourceMetagenerationMatch", "ifSourceGenerationNotMatch", "ifSourceGenerationMatch", "ifMetagenerationNotMatch", "ifMetagenerationMatch", "ifGenerationNotMatch", "ifGenerationMatch", "destinationPredefinedAcl"].iter() {
|
||||
if let Some(value) = self._destination_kms_key_name {
|
||||
params.push(("destinationKmsKeyName", value.to_string()));
|
||||
}
|
||||
for &field in ["alt", "sourceBucket", "sourceObject", "destinationBucket", "destinationObject", "sourceGeneration", "rewriteToken", "projection", "maxBytesRewrittenPerCall", "ifSourceMetagenerationNotMatch", "ifSourceMetagenerationMatch", "ifSourceGenerationNotMatch", "ifSourceGenerationMatch", "ifMetagenerationNotMatch", "ifMetagenerationMatch", "ifGenerationNotMatch", "ifGenerationMatch", "destinationPredefinedAcl", "destinationKmsKeyName"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -5711,6 +5739,13 @@ impl<'a, C, A> ObjectRewriteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
self._destination_predefined_acl = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
|
||||
///
|
||||
/// Sets the *destination kms key name* query property to the given value.
|
||||
pub fn destination_kms_key_name(mut self, new_value: &str) -> ObjectRewriteCall<'a, C, A> {
|
||||
self._destination_kms_key_name = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// The delegate implementation is consulted whenever there is an intermediate result, or if something goes wrong
|
||||
/// while executing the actual API request.
|
||||
///
|
||||
@@ -5795,12 +5830,12 @@ impl<'a, C, A> ObjectRewriteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().get("bucket", "object")
|
||||
/// .projection("consetetur")
|
||||
/// .if_metageneration_not_match("sadipscing")
|
||||
/// .if_metageneration_match("vero")
|
||||
/// .if_generation_not_match("sadipscing")
|
||||
/// .if_generation_match("invidunt")
|
||||
/// .generation("consetetur")
|
||||
/// .projection("sadipscing")
|
||||
/// .if_metageneration_not_match("invidunt")
|
||||
/// .if_metageneration_match("consetetur")
|
||||
/// .if_generation_not_match("dolore")
|
||||
/// .if_generation_match("duo")
|
||||
/// .generation("aliquyam")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -6141,13 +6176,13 @@ impl<'a, C, A> ObjectGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().update(req, "bucket", "object")
|
||||
/// .projection("aliquyam")
|
||||
/// .predefined_acl("Lorem")
|
||||
/// .if_metageneration_not_match("et")
|
||||
/// .if_metageneration_match("clita")
|
||||
/// .if_generation_not_match("consetetur")
|
||||
/// .if_generation_match("takimata")
|
||||
/// .generation("nonumy")
|
||||
/// .projection("clita")
|
||||
/// .predefined_acl("consetetur")
|
||||
/// .if_metageneration_not_match("takimata")
|
||||
/// .if_metageneration_match("nonumy")
|
||||
/// .if_generation_not_match("kasd")
|
||||
/// .if_generation_match("sanctus")
|
||||
/// .generation("takimata")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -6519,12 +6554,12 @@ impl<'a, C, A> ObjectUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().watch_all(req, "bucket")
|
||||
/// .versions(true)
|
||||
/// .projection("takimata")
|
||||
/// .prefix("At")
|
||||
/// .page_token("labore")
|
||||
/// .max_results(64)
|
||||
/// .delimiter("ea")
|
||||
/// .versions(false)
|
||||
/// .projection("invidunt")
|
||||
/// .prefix("ea")
|
||||
/// .page_token("sadipscing")
|
||||
/// .max_results(35)
|
||||
/// .delimiter("dolore")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -6863,14 +6898,15 @@ impl<'a, C, A> ObjectWatchAllCall<'a, C, A> where C: BorrowMut<hyper::Client>, A
|
||||
/// // execute the final call using `upload(...)`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().insert(req, "bucket")
|
||||
/// .projection("rebum.")
|
||||
/// .predefined_acl("dolore")
|
||||
/// .name("nonumy")
|
||||
/// .if_metageneration_not_match("sed")
|
||||
/// .if_metageneration_match("aliquyam")
|
||||
/// .if_generation_not_match("sit")
|
||||
/// .if_generation_match("eirmod")
|
||||
/// .content_encoding("consetetur")
|
||||
/// .projection("sed")
|
||||
/// .predefined_acl("aliquyam")
|
||||
/// .name("sit")
|
||||
/// .kms_key_name("eirmod")
|
||||
/// .if_metageneration_not_match("consetetur")
|
||||
/// .if_metageneration_match("labore")
|
||||
/// .if_generation_not_match("sed")
|
||||
/// .if_generation_match("ea")
|
||||
/// .content_encoding("gubergren")
|
||||
/// .upload(fs::File::open("file.ext").unwrap(), "application/octet-stream".parse().unwrap());
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -6883,6 +6919,7 @@ pub struct ObjectInsertCall<'a, C, A>
|
||||
_projection: Option<String>,
|
||||
_predefined_acl: Option<String>,
|
||||
_name: Option<String>,
|
||||
_kms_key_name: Option<String>,
|
||||
_if_metageneration_not_match: Option<String>,
|
||||
_if_metageneration_match: Option<String>,
|
||||
_if_generation_not_match: Option<String>,
|
||||
@@ -6910,7 +6947,7 @@ impl<'a, C, A> ObjectInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "storage.objects.insert",
|
||||
http_method: hyper::method::Method::Post });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((11 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((12 + self._additional_params.len()));
|
||||
params.push(("bucket", self._bucket.to_string()));
|
||||
if let Some(value) = self._projection {
|
||||
params.push(("projection", value.to_string()));
|
||||
@@ -6921,6 +6958,9 @@ impl<'a, C, A> ObjectInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
if let Some(value) = self._name {
|
||||
params.push(("name", value.to_string()));
|
||||
}
|
||||
if let Some(value) = self._kms_key_name {
|
||||
params.push(("kmsKeyName", value.to_string()));
|
||||
}
|
||||
if let Some(value) = self._if_metageneration_not_match {
|
||||
params.push(("ifMetagenerationNotMatch", value.to_string()));
|
||||
}
|
||||
@@ -6936,7 +6976,7 @@ impl<'a, C, A> ObjectInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
if let Some(value) = self._content_encoding {
|
||||
params.push(("contentEncoding", value.to_string()));
|
||||
}
|
||||
for &field in ["bucket", "projection", "predefinedAcl", "name", "ifMetagenerationNotMatch", "ifMetagenerationMatch", "ifGenerationNotMatch", "ifGenerationMatch", "contentEncoding"].iter() {
|
||||
for &field in ["bucket", "projection", "predefinedAcl", "name", "kmsKeyName", "ifMetagenerationNotMatch", "ifMetagenerationMatch", "ifGenerationNotMatch", "ifGenerationMatch", "contentEncoding"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -7230,6 +7270,13 @@ impl<'a, C, A> ObjectInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
self._name = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
|
||||
///
|
||||
/// Sets the *kms key name* query property to the given value.
|
||||
pub fn kms_key_name(mut self, new_value: &str) -> ObjectInsertCall<'a, C, A> {
|
||||
self._kms_key_name = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Makes the operation conditional on whether the object's current metageneration does not match the given value.
|
||||
///
|
||||
/// Sets the *if metageneration not match* query property to the given value.
|
||||
@@ -7355,9 +7402,10 @@ impl<'a, C, A> ObjectInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().compose(req, "destinationBucket", "destinationObject")
|
||||
/// .if_metageneration_match("ea")
|
||||
/// .if_generation_match("gubergren")
|
||||
/// .destination_predefined_acl("aliquyam")
|
||||
/// .kms_key_name("tempor")
|
||||
/// .if_metageneration_match("sea")
|
||||
/// .if_generation_match("labore")
|
||||
/// .destination_predefined_acl("ipsum")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -7368,6 +7416,7 @@ pub struct ObjectComposeCall<'a, C, A>
|
||||
_request: ComposeRequest,
|
||||
_destination_bucket: String,
|
||||
_destination_object: String,
|
||||
_kms_key_name: Option<String>,
|
||||
_if_metageneration_match: Option<String>,
|
||||
_if_generation_match: Option<String>,
|
||||
_destination_predefined_acl: Option<String>,
|
||||
@@ -7392,9 +7441,12 @@ impl<'a, C, A> ObjectComposeCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
};
|
||||
dlg.begin(MethodInfo { id: "storage.objects.compose",
|
||||
http_method: hyper::method::Method::Post });
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((7 + self._additional_params.len()));
|
||||
let mut params: Vec<(&str, String)> = Vec::with_capacity((8 + self._additional_params.len()));
|
||||
params.push(("destinationBucket", self._destination_bucket.to_string()));
|
||||
params.push(("destinationObject", self._destination_object.to_string()));
|
||||
if let Some(value) = self._kms_key_name {
|
||||
params.push(("kmsKeyName", value.to_string()));
|
||||
}
|
||||
if let Some(value) = self._if_metageneration_match {
|
||||
params.push(("ifMetagenerationMatch", value.to_string()));
|
||||
}
|
||||
@@ -7404,7 +7456,7 @@ impl<'a, C, A> ObjectComposeCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
if let Some(value) = self._destination_predefined_acl {
|
||||
params.push(("destinationPredefinedAcl", value.to_string()));
|
||||
}
|
||||
for &field in ["destinationBucket", "destinationObject", "ifMetagenerationMatch", "ifGenerationMatch", "destinationPredefinedAcl"].iter() {
|
||||
for &field in ["destinationBucket", "destinationObject", "kmsKeyName", "ifMetagenerationMatch", "ifGenerationMatch", "destinationPredefinedAcl"].iter() {
|
||||
if self._additional_params.contains_key(field) {
|
||||
dlg.finished(false);
|
||||
return Err(Error::FieldClash(field));
|
||||
@@ -7579,6 +7631,13 @@ impl<'a, C, A> ObjectComposeCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
self._destination_object = new_value.to_string();
|
||||
self
|
||||
}
|
||||
/// Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
|
||||
///
|
||||
/// Sets the *kms key name* query property to the given value.
|
||||
pub fn kms_key_name(mut self, new_value: &str) -> ObjectComposeCall<'a, C, A> {
|
||||
self._kms_key_name = Some(new_value.to_string());
|
||||
self
|
||||
}
|
||||
/// Makes the operation conditional on whether the object's current metageneration matches the given value.
|
||||
///
|
||||
/// Sets the *if metageneration match* query property to the given value.
|
||||
@@ -7679,11 +7738,11 @@ impl<'a, C, A> ObjectComposeCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().delete("bucket", "object")
|
||||
/// .if_metageneration_not_match("sea")
|
||||
/// .if_metageneration_match("labore")
|
||||
/// .if_generation_not_match("ipsum")
|
||||
/// .if_generation_match("aliquyam")
|
||||
/// .generation("dolores")
|
||||
/// .if_metageneration_not_match("sit")
|
||||
/// .if_metageneration_match("diam")
|
||||
/// .if_generation_not_match("ut")
|
||||
/// .if_generation_match("justo")
|
||||
/// .generation("est")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -7976,11 +8035,11 @@ impl<'a, C, A> ObjectDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().list("bucket")
|
||||
/// .versions(true)
|
||||
/// .projection("ut")
|
||||
/// .prefix("justo")
|
||||
/// .page_token("est")
|
||||
/// .max_results(55)
|
||||
/// .delimiter("accusam")
|
||||
/// .projection("clita")
|
||||
/// .prefix("diam")
|
||||
/// .page_token("justo")
|
||||
/// .max_results(44)
|
||||
/// .delimiter("clita")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -8293,17 +8352,17 @@ impl<'a, C, A> ObjectListCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().copy(req, "sourceBucket", "sourceObject", "destinationBucket", "destinationObject")
|
||||
/// .source_generation("clita")
|
||||
/// .projection("invidunt")
|
||||
/// .if_source_metageneration_not_match("ut")
|
||||
/// .if_source_metageneration_match("dolores")
|
||||
/// .if_source_generation_not_match("eos")
|
||||
/// .if_source_generation_match("voluptua.")
|
||||
/// .if_metageneration_not_match("duo")
|
||||
/// .if_metageneration_match("sed")
|
||||
/// .if_generation_not_match("aliquyam")
|
||||
/// .if_generation_match("ea")
|
||||
/// .destination_predefined_acl("ea")
|
||||
/// .source_generation("voluptua.")
|
||||
/// .projection("duo")
|
||||
/// .if_source_metageneration_not_match("sed")
|
||||
/// .if_source_metageneration_match("aliquyam")
|
||||
/// .if_source_generation_not_match("ea")
|
||||
/// .if_source_generation_match("ea")
|
||||
/// .if_metageneration_not_match("et")
|
||||
/// .if_metageneration_match("dolor")
|
||||
/// .if_generation_not_match("diam")
|
||||
/// .if_generation_match("kasd")
|
||||
/// .destination_predefined_acl("invidunt")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -8743,13 +8802,13 @@ impl<'a, C, A> ObjectCopyCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oa
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.objects().patch(req, "bucket", "object")
|
||||
/// .projection("diam")
|
||||
/// .predefined_acl("kasd")
|
||||
/// .if_metageneration_not_match("invidunt")
|
||||
/// .if_metageneration_match("rebum.")
|
||||
/// .if_generation_not_match("Lorem")
|
||||
/// .if_generation_match("clita")
|
||||
/// .generation("invidunt")
|
||||
/// .projection("clita")
|
||||
/// .predefined_acl("invidunt")
|
||||
/// .if_metageneration_not_match("eirmod")
|
||||
/// .if_metageneration_match("At")
|
||||
/// .if_generation_not_match("consetetur")
|
||||
/// .if_generation_match("et")
|
||||
/// .generation("sed")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9105,7 +9164,7 @@ impl<'a, C, A> ObjectPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().insert(req, "bucket", "object")
|
||||
/// .generation("consetetur")
|
||||
/// .generation("elitr")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9395,7 +9454,7 @@ impl<'a, C, A> ObjectAccessControlInsertCall<'a, C, A> where C: BorrowMut<hyper:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().patch(req, "bucket", "object", "entity")
|
||||
/// .generation("takimata")
|
||||
/// .generation("Lorem")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9691,7 +9750,7 @@ impl<'a, C, A> ObjectAccessControlPatchCall<'a, C, A> where C: BorrowMut<hyper::
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().list("bucket", "object")
|
||||
/// .generation("rebum.")
|
||||
/// .generation("ut")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -9950,7 +10009,7 @@ impl<'a, C, A> ObjectAccessControlListCall<'a, C, A> where C: BorrowMut<hyper::C
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().delete("bucket", "object", "entity")
|
||||
/// .generation("ut")
|
||||
/// .generation("dolor")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -10210,7 +10269,7 @@ impl<'a, C, A> ObjectAccessControlDeleteCall<'a, C, A> where C: BorrowMut<hyper:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().get("bucket", "object", "entity")
|
||||
/// .generation("ut")
|
||||
/// .generation("sanctus")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -10487,7 +10546,7 @@ impl<'a, C, A> ObjectAccessControlGetCall<'a, C, A> where C: BorrowMut<hyper::Cl
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.object_access_controls().update(req, "bucket", "object", "entity")
|
||||
/// .generation("eirmod")
|
||||
/// .generation("et")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -10789,11 +10848,11 @@ impl<'a, C, A> ObjectAccessControlUpdateCall<'a, C, A> where C: BorrowMut<hyper:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().update(req, "bucket")
|
||||
/// .projection("voluptua.")
|
||||
/// .predefined_default_object_acl("dolor")
|
||||
/// .projection("ut")
|
||||
/// .predefined_default_object_acl("sed")
|
||||
/// .predefined_acl("et")
|
||||
/// .if_metageneration_not_match("et")
|
||||
/// .if_metageneration_match("vero")
|
||||
/// .if_metageneration_not_match("ipsum")
|
||||
/// .if_metageneration_match("justo")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -11109,9 +11168,9 @@ impl<'a, C, A> BucketUpdateCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().get("bucket")
|
||||
/// .projection("sed")
|
||||
/// .if_metageneration_not_match("et")
|
||||
/// .if_metageneration_match("ipsum")
|
||||
/// .projection("vero")
|
||||
/// .if_metageneration_not_match("dolor")
|
||||
/// .if_metageneration_match("takimata")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -11380,8 +11439,8 @@ impl<'a, C, A> BucketGetCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: oau
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().delete("bucket")
|
||||
/// .if_metageneration_not_match("dolore")
|
||||
/// .if_metageneration_match("vero")
|
||||
/// .if_metageneration_not_match("nonumy")
|
||||
/// .if_metageneration_match("et")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -11634,9 +11693,9 @@ impl<'a, C, A> BucketDeleteCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().insert(req, "project")
|
||||
/// .projection("takimata")
|
||||
/// .predefined_default_object_acl("et")
|
||||
/// .predefined_acl("nonumy")
|
||||
/// .projection("no")
|
||||
/// .predefined_default_object_acl("invidunt")
|
||||
/// .predefined_acl("rebum.")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -11915,11 +11974,11 @@ impl<'a, C, A> BucketInsertCall<'a, C, A> where C: BorrowMut<hyper::Client>, A:
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().patch(req, "bucket")
|
||||
/// .projection("sed")
|
||||
/// .predefined_default_object_acl("no")
|
||||
/// .predefined_acl("invidunt")
|
||||
/// .if_metageneration_not_match("rebum.")
|
||||
/// .if_metageneration_match("labore")
|
||||
/// .projection("aliquyam")
|
||||
/// .predefined_default_object_acl("elitr")
|
||||
/// .predefined_acl("consetetur")
|
||||
/// .if_metageneration_not_match("sea")
|
||||
/// .if_metageneration_match("elitr")
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
@@ -12235,10 +12294,10 @@ impl<'a, C, A> BucketPatchCall<'a, C, A> where C: BorrowMut<hyper::Client>, A: o
|
||||
/// // execute the final call using `doit()`.
|
||||
/// // Values shown here are possibly random and not representative !
|
||||
/// let result = hub.buckets().list("project")
|
||||
/// .projection("elitr")
|
||||
/// .projection("sea")
|
||||
/// .prefix("consetetur")
|
||||
/// .page_token("sea")
|
||||
/// .max_results(58)
|
||||
/// .page_token("diam")
|
||||
/// .max_results(79)
|
||||
/// .doit();
|
||||
/// # }
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user