lib: bump scaleway api lib version (#386)

This commit is contained in:
Benjamin
2021-09-12 15:48:37 +02:00
committed by GitHub
parent b7458b7b76
commit c418c0b7a6
4 changed files with 7 additions and 7 deletions

4
Cargo.lock generated
View File

@@ -2739,9 +2739,9 @@ dependencies = [
[[package]]
name = "scaleway_api_rs"
version = "0.1.1"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5ef902879597f20dc6319fe7203d05c98066a48301ec9d383f23b483c881f95"
checksum = "d20620dd2a8b440dcd2b6777c75c845217115ce69f0c1a9575cb9f7af1e7b49d"
dependencies = [
"reqwest 0.11.4",
"serde",

View File

@@ -62,7 +62,7 @@ rusoto_iam = "0.46.0"
digitalocean = "0.1.1"
# Scaleway Deps
scaleway_api_rs = "=0.1.1"
scaleway_api_rs = "=0.1.2"
[dev-dependencies]
test-utilities = { path = "test_utilities" }

View File

@@ -99,7 +99,7 @@ impl ScalewayCR {
pub fn get_image(&self, image: &Image) -> Option<scaleway_api_rs::models::ScalewayRegistryV1Image> {
// https://developers.scaleway.com/en/products/registry/api/#get-a6f1bc
let scaleway_images = match block_on(scaleway_api_rs::apis::images_api::list_images1(
let scaleway_images = match block_on(scaleway_api_rs::apis::images_api::list_images(
&self.get_configuration(),
self.zone.region().to_string().as_str(),
None,
@@ -145,7 +145,7 @@ impl ScalewayCR {
let image_to_delete = image_to_delete.unwrap();
match block_on(scaleway_api_rs::apis::images_api::delete_image1(
match block_on(scaleway_api_rs::apis::images_api::delete_image(
&self.get_configuration(),
self.zone.region().to_string().as_str(),
image_to_delete.id.unwrap().as_str(),
@@ -212,7 +212,7 @@ impl ScalewayCR {
match block_on(scaleway_api_rs::apis::namespaces_api::create_namespace(
&self.get_configuration(),
self.zone.region().to_string().as_str(),
scaleway_api_rs::models::inline_object_23::InlineObject23 {
scaleway_api_rs::models::inline_object_29::InlineObject29 {
name: image.name.clone(),
description: None,
project_id: Some(self.default_project_id.clone()),

View File

@@ -29,4 +29,4 @@ hashicorp_vault = "2.0.1"
digitalocean = "0.1.1"
# Scaleway Deps
scaleway_api_rs = "=0.1.1"
scaleway_api_rs = "=0.1.2"