Mercurial > lbo > hg > async-google-apis
changeset 156:3b1d9866f158
regenerate code
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Tue, 27 Oct 2020 19:55:10 +0100 |
parents | 30e5944e74de |
children | dc324831e47e |
files | drive_example/src/drive_v3_types.rs gcs_example/src/storage_v1_types.rs |
diffstat | 2 files changed, 30 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/drive_example/src/drive_v3_types.rs Tue Oct 27 19:54:48 2020 +0100 +++ b/drive_example/src/drive_v3_types.rs Tue Oct 27 19:55:10 2020 +0100 @@ -3902,7 +3902,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4002,7 +4002,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4164,7 +4164,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4265,7 +4265,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4509,7 +4509,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4800,7 +4800,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5398,7 +5398,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5642,7 +5642,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5883,7 +5883,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -6095,7 +6095,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; }
--- a/gcs_example/src/storage_v1_types.rs Tue Oct 27 19:54:48 2020 +0100 +++ b/gcs_example/src/storage_v1_types.rs Tue Oct 27 19:55:10 2020 +0100 @@ -21,39 +21,39 @@ /// View and manage your data across Google Cloud Platform services /// /// URL: https://www.googleapis.com/auth/cloud-platform - Cloudplatform, + CloudPlatform, /// View your data across Google Cloud Platform services /// /// URL: https://www.googleapis.com/auth/cloud-platform.read-only - CloudplatformReadonly, + CloudPlatformReadOnly, /// Manage your data and permissions in Google Cloud Storage /// /// URL: https://www.googleapis.com/auth/devstorage.full_control - DevstorageFull_control, + DevstorageFullControl, /// View your data in Google Cloud Storage /// /// URL: https://www.googleapis.com/auth/devstorage.read_only - DevstorageRead_only, + DevstorageReadOnly, /// Manage your data in Google Cloud Storage /// /// URL: https://www.googleapis.com/auth/devstorage.read_write - DevstorageRead_write, + DevstorageReadWrite, } impl std::convert::AsRef<str> for StorageScopes { fn as_ref(&self) -> &'static str { match self { - StorageScopes::Cloudplatform => "https://www.googleapis.com/auth/cloud-platform", - StorageScopes::CloudplatformReadonly => { + StorageScopes::CloudPlatform => "https://www.googleapis.com/auth/cloud-platform", + StorageScopes::CloudPlatformReadOnly => { "https://www.googleapis.com/auth/cloud-platform.read-only" } - StorageScopes::DevstorageFull_control => { + StorageScopes::DevstorageFullControl => { "https://www.googleapis.com/auth/devstorage.full_control" } - StorageScopes::DevstorageRead_only => { + StorageScopes::DevstorageReadOnly => { "https://www.googleapis.com/auth/devstorage.read_only" } - StorageScopes::DevstorageRead_write => { + StorageScopes::DevstorageReadWrite => { "https://www.googleapis.com/auth/devstorage.read_write" } } @@ -4441,7 +4441,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -4729,7 +4729,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5128,7 +5128,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5229,7 +5229,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5517,7 +5517,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -5723,7 +5723,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -6017,7 +6017,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -6646,7 +6646,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -6717,7 +6717,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; } @@ -6956,7 +6956,7 @@ #[cfg(test)] /// Override API URLs. `base` is the base path relative to which (relative) method paths are interpreted, /// whereas `root` is the URL relative to which absolute paths are interpreted. - fn set_urls(&mut self, base: String, root: String) { + pub fn set_urls(&mut self, base: String, root: String) { self.base_url = base; self.root_url = root; }